Logo Search packages:      
Sourcecode: necpp version File versions  Download package

c_geometry Class Reference

#include <c_geometry.h>

List of all members.


Detailed Description

Use of the c_geometry class.

! c_geometry g = new c_geometry(); g.parse_geometry(file);

OR

c_geometry g = new c_geometry(); g.wire(xxxxxxx); g.arc(); ... g.geometry_complete();

Definition at line 47 of file c_geometry.h.


Public Member Functions

void arc (int tag_id, int segment_count, nec_float rada, nec_float ang1, nec_float ang2, nec_float rad)
void arc (int tag_id, int segment_count, nec_float rada, nec_float ang1, nec_float ang2, nec_float rad)
void fflds (nec_float rox, nec_float roy, nec_float roz, complex_array &scur, nec_complex *in_ex, nec_complex *in_ey, nec_complex *in_ez)
 Calculate the xyz components of the electric field due to surface currents.
void fflds (nec_float rox, nec_float roy, nec_float roz, complex_array &scur, nec_complex *in_ex, nec_complex *in_ey, nec_complex *in_ez)
 Calculate the xyz components of the electric field due to surface currents.
void frequency_scale (nec_float freq_mhz)
void frequency_scale (nec_float freq_mhz)
void geometry_complete (nec_context *m_context, int card_int_1, int card_int_2)
 Geometry is complete
Exceptions:
nec_exception* If there is an error with the geometry.

void geometry_complete (nec_context *m_context, int card_int_1, int card_int_2)
 Geometry is complete
Exceptions:
nec_exception* If there is an error with the geometry.

void get_current_coefficients (nec_float wavelength, complex_array &curx, real_array &air, real_array &aii, real_array &bir, real_array &bii, real_array &cir, real_array &cii, complex_array &vqds, int nqds, int_array &iqds)
void get_current_coefficients (nec_float wavelength, complex_array &curx, real_array &air, real_array &aii, real_array &bir, real_array &bii, real_array &cir, real_array &cii, complex_array &vqds, int nqds, int_array &iqds)
int get_segment_number (int in_tag, int m)
int get_segment_number (int in_tag, int m)
 Get a segment number for a specified tag.
void helix (nec_float s, nec_float hl, nec_float a1, nec_float b1, nec_float a2, nec_float b2, nec_float rad, int segment_count, int tag_id)
void helix (nec_float s, nec_float hl, nec_float a1, nec_float b1, nec_float a2, nec_float b2, nec_float rad, int segment_count, int tag_id)
void move (nec_float rox, nec_float roy, nec_float roz, nec_float xs, nec_float ys, nec_float zs, int its, int nrpt, int itgi)
void move (nec_float rox, nec_float roy, nec_float roz, nec_float xs, nec_float ys, nec_float zs, int its, int nrpt, int itgi)
void parse_geometry (nec_context *m_context, FILE *input_fp)
 Parse an NEC geometry description contained in the file input_fp.
void parse_geometry (nec_context *m_context, FILE *input_fp)
 Parse an NEC geometry description contained in the file input_fp.
void patch (int nx, int ny, nec_float ax1, nec_float ay1, nec_float az1, nec_float ax2, nec_float ay2, nec_float az2, nec_float ax3, nec_float ay3, nec_float az3, nec_float ax4, nec_float ay4, nec_float az4)
void patch (int nx, int ny, nec_float ax1, nec_float ay1, nec_float az1, nec_float ax2, nec_float ay2, nec_float az2, nec_float ax3, nec_float ay3, nec_float az3, nec_float ax4, nec_float ay4, nec_float az4)
 patch generates and modifies patch geometry data.
nec_float patch_angle (int patch_index, nec_float in_ax, nec_float in_ay, nec_float in_az)
nec_float patch_angle (int patch_index, nec_float in_ax, nec_float in_ay, nec_float in_az)
void reflect (int ix, int iy, int iz, int itx, int nop)
void reflect (int ix, int iy, int iz, int itx, int nop)
void scale (nec_float xw1)
void scale (nec_float xw1)
void set_context (nec_context *m_context)
void set_context (nec_context *m_context)
void tbf (int i, int icap)
void tbf (int i, int icap)
int test_ek_approximation (int seg1, int seg2)
 Helper method to decide whether extended. thin-wire approximation can be used.
int test_ek_approximation (int seg1, int seg2)
 Helper method to decide whether extended. thin-wire approximation can be used.
void trio (int j)
void trio (int j)
void wire (int tag_id, int segment_count, nec_float xw1, nec_float yw1, nec_float zw1, nec_float xw2, nec_float yw2, nec_float zw2, nec_float rad, nec_float rdel, nec_float rrad)
void wire (int tag_id, int segment_count, nec_float xw1, nec_float yw1, nec_float zw1, nec_float xw2, nec_float yw2, nec_float zw2, nec_float rad, nec_float rdel, nec_float rrad)

Public Attributes

real_array ax
real_array bx
real_array cab
real_array cx
int_array icon1
int_array icon2
int_array jco
int jsno
int m
int m_ipsym
int maxcon
int mp
int n
int n_plus_2m
int n_plus_3m
int n_plus_m
int np
int nscon
real_array pbi
real_array psalp
real_array px
real_array py
real_array pz
real_array sab
real_array salp
real_array segment_length
real_array segment_radius
int_array segment_tags
real_array t1x
real_array t1y
real_array t1z
real_array t2x
real_array t2y
real_array t2z
real_array x
real_array x2
real_array y
real_array y2
real_array z
real_array z2

Private Member Functions

void connect_segments (int ignd)
void connect_segments (int ignd)
void divide_patch (int nx)
void divide_patch (int nx)
 Divide a patch into four (was subph). Used when a patch is connected to a wire. The patch nx is divided into 4 patches that become nx, nx+1, nx+2, nx+3. The other patches are shifted to make room for the three new patches.
void read_geometry_card (FILE *input_fp, char *gm, int *i1, int *i2, nec_float *x1, nec_float *y1, nec_float *z1, nec_float *x2, nec_float *y2, nec_float *z2, nec_float *rad)
void read_geometry_card (FILE *input_fp, char *gm, int *i1, int *i2, nec_float *x1, nec_float *y1, nec_float *z1, nec_float *x2, nec_float *y2, nec_float *z2, nec_float *rad)
void sbf (int i, int is, nec_float *aa, nec_float *bb, nec_float *cc)
void sbf (int i, int is, nec_float *aa, nec_float *bb, nec_float *cc)
 compute component of basis function i on segment is. This is a version of the tbf() method that does not store the basis functions

Private Attributes

int _newclass = 1
 _object = types.ObjectType
real_array bi_unscaled
nec_contextm_context
nec_output_file * m_output
real_array pbi_unscaled
real_array px_unscaled
real_array py_unscaled
real_array pz_unscaled
real_array si_unscaled
real_array x_unscaled
real_array y_unscaled
real_array z_unscaled

Classes

class  _object
class  c_geometry
class  c_geometryPtr

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index