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

nec_context Class Reference

#include <nec_context.h>

List of all members.


Detailed Description

A nec_context object is the container for an nec2++ simulation. A c_geometry object is associated with the nec_context, and then after the simulation is done, the results can be requested from this object.

Definition at line 67 of file nec_context.h.


Public Member Functions

void all_jobs_completed ()
void all_jobs_completed ()
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 calc_prepare ()
void calc_prepare ()
 After the geometry has been specified, this function prepares for calculations.
void cp_card (int itmp1, int itmp2, int itmp3, int itmp4)
void cp_card (int itmp1, int itmp2, int itmp3, int itmp4)
void ex_card (enum excitation_type itmp1, int itmp2, int itmp3, int itmp4, nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4, nec_float tmp5, nec_float tmp6)
void ex_card (enum excitation_type itmp1, int itmp2, int itmp3, int itmp4, nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4, nec_float tmp5, nec_float tmp6)
void ffld (nec_float thet, nec_float phi, nec_complex *eth, nec_complex *eph, nec_float _wavelength)
void ffld (nec_float thet, nec_float phi, nec_complex *eth, nec_complex *eph, nec_float _wavelength)
void fr_card (int in_ifrq, int in_nfrq, nec_float in_freq_mhz, nec_float in_del_freq)
void fr_card (int in_ifrq, int in_nfrq, nec_float in_freq_mhz, nec_float in_del_freq)
void gd_card (nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4)
void gd_card (nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4)
void geometry_complete (int card_int_1, int card_int_2)
 Signal the end of a geometry description.
void geometry_complete (int card_int_1, int card_int_2)
 Signal the end of a geometry description.
c_geometryget_geometry ()
c_geometryget_geometry ()
int get_inc ()
int get_inc ()
nec_antenna_inputget_input_parameters (int index)
 Get Antenna Input Parameter Results.
nec_antenna_inputget_input_parameters (int index)
 Get Antenna Input Parameter Results.
double get_maximum_gain (int index=0)
 Get the maximum gain in dB.
double get_maximum_gain (int index=0)
 Get the maximum gain in dB.
nec_near_field_pattern * get_near_field_pattern (int index)
 Get near field pattern results.
nec_near_field_pattern * get_near_field_pattern (int index)
 Get near field pattern results.
nec_norm_rx_patternget_norm_rx_pattern (int index)
 Get Normalized Receiving Pattern Results.
nec_norm_rx_patternget_norm_rx_pattern (int index)
 Get Normalized Receiving Pattern Results.
nec_radiation_pattern * get_radiation_pattern (int index)
 Get Radiation Pattern results.
nec_radiation_pattern * get_radiation_pattern (int index)
 Get Radiation Pattern results.
nec_structure_currents * get_structure_currents (int index)
 Get structure currents results.
nec_structure_currents * get_structure_currents (int index)
 Get structure currents results.
nec_structure_excitationget_structure_excitation (int index)
 Get structure excitation results.
nec_structure_excitationget_structure_excitation (int index)
 Get structure excitation results.
nec_float get_xpr1 ()
nec_float get_xpr1 ()
nec_float get_xpr2 ()
nec_float get_xpr2 ()
void gfld (nec_float rho, nec_float phi, nec_float rz, nec_complex *eth, nec_complex *epi, nec_complex *erd, bool space_only, nec_float _wavelength)
void gfld (nec_float rho, nec_float phi, nec_float rz, nec_complex *eth, nec_complex *epi, nec_complex *erd, bool space_only, nec_float _wavelength)
 gfld computes the radiated field including ground wave.
void gn_card (int ground_type, int rad_wire_count, nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4, nec_float tmp5, nec_float tmp6)
 Ground parameters under the antenna.
void gn_card (int ground_type, int rad_wire_count, nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4, nec_float tmp5, nec_float tmp6)
 Ground parameters under the antenna.
void helix (int tag_id, int segment_count, nec_float s, nec_float hl, nec_float a1, nec_float b1, nec_float a2, nec_float b2, nec_float rad)
 Add an helix to the geometry,.
void helix (int tag_id, int segment_count, nec_float s, nec_float hl, nec_float a1, nec_float b1, nec_float a2, nec_float b2, nec_float rad)
 Add an helix to the geometry,.
void initialize ()
void initialize ()
 Initialize everything, called after construction so that we can tell the geometry object what nec_context object to point to.
void kh_card (nec_float tmp1)
void kh_card (nec_float tmp1)
void ld_card (int itmp1, int itmp2, int itmp3, int itmp4, nec_float tmp1, nec_float tmp2, nec_float tmp3)
void ld_card (int itmp1, int itmp2, int itmp3, int itmp4, nec_float tmp1, nec_float tmp2, nec_float tmp3)
void medium_parameters (nec_float permittivity, nec_float permeability)
void ne_card (int itmp1, int itmp2, int itmp3, int itmp4, nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4, nec_float tmp5, nec_float tmp6)
void ne_card (int itmp1, int itmp2, int itmp3, int itmp4, nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4, nec_float tmp5, nec_float tmp6)
void nh_card (int itmp1, int itmp2, int itmp3, int itmp4, nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4, nec_float tmp5, nec_float tmp6)
void nh_card (int itmp1, int itmp2, int itmp3, int itmp4, nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4, nec_float tmp5, nec_float tmp6)
void nt_card (int itmp1, int itmp2, int itmp3, int itmp4, nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4, nec_float tmp5, nec_float tmp6)
void nt_card (int itmp1, int itmp2, int itmp3, int itmp4, nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4, nec_float tmp5, nec_float tmp6)
void pl_card (const char *ploutput_filename, int itmp1, int itmp2, int itmp3, int itmp4)
void pl_card (const char *ploutput_filename, int itmp1, int itmp2, int itmp3, int itmp4)
void pq_card (int itmp1, int itmp2, int itmp3, int itmp4)
void pq_card (int itmp1, int itmp2, int itmp3, int itmp4)
void pt_card (int itmp1, int itmp2, int itmp3, int itmp4)
void pt_card (int itmp1, int itmp2, int itmp3, int itmp4)
void rp_card (int calc_mode, int n_theta, int n_phi, int output_format, int normalization, int D, int A, nec_float theta0, nec_float phi0, nec_float delta_theta, nec_float delta_phi, nec_float radial_distance, nec_float gain_norm)
 Standard radiation pattern parameters.
void rp_card (int calc_mode, int n_theta, int n_phi, int output_format, int normalization, int D, int A, nec_float theta0, nec_float phi0, nec_float delta_theta, nec_float delta_phi, nec_float radial_distance, nec_float gain_norm)
 Standard radiation pattern parameters.
void set_extended_thin_wire_kernel (bool ekflag)
void set_extended_thin_wire_kernel (bool ekflag)
void set_gain_only (bool flag)
void set_gain_only (bool flag)
void set_isave (int in_isave)
void set_isave (int in_isave)
void set_output (nec_output_file in_output, nec_output_flags in_output_flags)
void set_output (nec_output_file in_output, nec_output_flags in_output_flags)
void set_results_format (enum RESULT_FORMAT result_format)
void set_results_format (enum RESULT_FORMAT result_format)
void set_results_stdout (bool flag)
void set_results_stdout (bool flag)
void simulate (bool far_field_flag=false)
 Start a simulation.
void simulate (bool far_field_flag=false)
 Start a simulation.
void tl_card (int itmp1, int itmp2, int itmp3, int itmp4, nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4, nec_float tmp5, nec_float tmp6)
void tl_card (int itmp1, int itmp2, int itmp3, int itmp4, nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4, nec_float tmp5, nec_float tmp6)
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)
void xq_card (int itmp1)
void xq_card (int itmp1)

Static Public Member Functions

static nec_float benchmark ()
 Benchmark the libnecpp engine. A score of 100 is roughly an Athlon XP 1800.
static nec_float benchmark ()
 Benchmark the libnecpp engine. A score of 100 is roughly an Athlon XP 1800.

Public Attributes

real_array aii
real_array air
real_array bii
real_array bir
 coefficients of the constant terms in the current interpolation functions for the current vector
nec_float cabj
real_array cii
real_array cir
 coefficients of the sine terms in the current interpolation functions
complex_array cm
complex_array current_vector
 coefficients of the cosine terms in the current interpolation functions
nec_float delfrq
nec_float dph
nec_float dth
nec_float dxnr
nec_float dynr
nec_float dznr
nec_complex exc
nec_complex exk
nec_complex exs
nec_complex eyc
nec_complex eyk
nec_complex eys
nec_complex ezc
nec_complex ezk
nec_complex ezs
real_array fnorm
nec_float freq_mhz
c_ggrid ggrid
nec_float gnor
nec_ground ground
c_ground_wave ground_wave
int iavp
int icase
int icoup
int ifar
 the current vector
int iflow
int ifrq
int ija
int imat
int ind1
int ind2
int indd1
int indd2
nec_float input_power
int_array ip
int ipd
int iptag
int iptagf
int iptagt
int iptaq
int iptaqf
int iptaqt
int iptflg
 pt card flags...
int iptflq
 pq card flags
int_array iqds
int_array iseg1
int_array iseg2
int isnor
int_array ivqd
int_array ldtag
int_array ldtagf
int_array ldtagt
int_array ldtyp
nec_float m_b
enum excitation_type m_excitation_type
c_geometrym_geometry
int m_near
nec_output_file m_output
 an object to pipe output through...
nec_output_flags m_output_flags
 an object to pipe output through...
nec_results m_results
 The results object that holds all the specific results.
int m_rp_normalization
int m_rp_output_format
nec_float m_s
bool m_use_exk
int masym
int nbbl
int nbbx
int ncoup
int_array ncseg
int_array nctag
int neq
int neq2
int network_count
nec_float network_power_loss
int nfeh
int nfrq
int nlast
int nlbl
int nlbx
int nload
 input integer flag (from RP card) specifies type of field computation, or type of ground system for far fields
int nop
int npbl
int npblk
int npbx
int npeq
int nph
int nphi
int nprint
int nqds
int nrx
int nry
int nrz
int nth
int nthi
int ntsol
int_array ntyp
int nvqd
nec_float phis
nec_float phiss
c_plot_card plot_card
nec_float rfld
nec_float rhks
nec_float rkb2
nec_float rkh
nec_float sabj
nec_float salpj
nec_float sn
int_array source_segment_array
complex_array source_voltage_array
nec_float structure_power_loss
complex_array symmetry_array
nec_float t1xj
nec_float t1yj
nec_float t1zj
nec_float t2xj
nec_float t2yj
nec_float t2zj
nec_float thetis
nec_float thets
int voltage_source_count
complex_array vqd
complex_array vqds
nec_float wavelength
real_array x11i
real_array x11r
real_array x12i
real_array x12r
real_array x22i
real_array x22r
nec_float xj
nec_float xnr
nec_float xo
nec_float xpr6
nec_float xsn
complex_array y11a
complex_array y12a
nec_float yj
nec_float ynr
nec_float yo
nec_float ysn
complex_array zarray
nec_float zj
real_array zlc
real_array zli
real_array zlr
nec_float znr
nec_float zo
nec_complex zped
nec_float zpk
nec_float zpka

Private Member Functions

void antenna_env (void)
void antenna_env (void)
void calculate_network_data (void)
 Calculate network data such as the lengths of transmission lines.
void calculate_network_data (void)
 Calculate network data such as the lengths of transmission lines.
void cmset (int nrow, complex_array &in_cm, nec_float rkhx)
void cmset (int nrow, complex_array &in_cm, nec_float rkhx)
void cmsw (int j1, int j2, int i1, int i2, complex_array &in_cm, complex_array &cw, int ncw, int nrow, int itrp)
void cmsw (int j1, int j2, int i1, int i2, complex_array &in_cm, complex_array &cw, int ncw, int nrow, int itrp)
void cmws (int j, int i1, int i2, complex_array &in_cm, int nr, complex_array &cw, int itrp)
void cmws (int j, int i1, int i2, complex_array &in_cm, int nr, complex_array &cw, int itrp)
void cmww (int j, int i1, int i2, complex_array &in_cm, int nr, complex_array &cw, int nw, int itrp)
void cmww (int j, int i1, int i2, complex_array &in_cm, int nr, complex_array &cw, int nw, int itrp)
void compute_matrix_ss (int j1, int j2, int im1, int im2, complex_array &in_cm, int nrow, int itrp)
void compute_matrix_ss (int j1, int j2, int im1, int im2, complex_array &in_cm, int nrow, int itrp)
void couple (complex_array &cur, nec_float wlam)
void couple (complex_array &cur, nec_float wlam)
void efld (nec_float xi, nec_float yi, nec_float zi, nec_float ai, bool on_source_segment)
void efld (nec_float xi, nec_float yi, nec_float zi, nec_float ai, bool on_source_segment)
 Compute near E-fields of a segment due to constant sine and cosine currents distributions. The ground effect is included.
void eksc (nec_float s, nec_float z, nec_float rh, nec_float xk, int ij, nec_complex *ezs, nec_complex *ers, nec_complex *ezc, nec_complex *erc, nec_complex *ezk, nec_complex *erk)
void eksc (nec_float s, nec_float z, nec_float rh, nec_float xk, int ij, nec_complex *ezs, nec_complex *ers, nec_complex *ezc, nec_complex *erc, nec_complex *ezk, nec_complex *erk)
void ekscx (nec_float bx, nec_float s, nec_float z, nec_float rhx, nec_float xk, int ij, int inx1, int inx2, nec_complex *ezs, nec_complex *ers, nec_complex *ezc, nec_complex *erc, nec_complex *ezk, nec_complex *erk)
void ekscx (nec_float bx, nec_float s, nec_float z, nec_float rhx, nec_float xk, int ij, int inx1, int inx2, nec_complex *ezs, nec_complex *ers, nec_complex *ezc, nec_complex *erc, nec_complex *ezk, nec_complex *erk)
void etmns (nec_float p1, nec_float p2, nec_float p3, nec_float p4, nec_float p5, nec_float p6, nec_float incident_amplitude, enum excitation_type excite_type, complex_array &e)
void etmns (nec_float p1, nec_float p2, nec_float p3, nec_float p4, nec_float p5, nec_float p6, nec_float incident_amplitude, enum excitation_type excite_type, complex_array &e)
 Fills the array e with the negative of the electric field tangent to the segments and the tangential magnetic field on the surfaces.
enum excitation_return excitation_loop (int in_freq_loop_state, int mhz, int iptflg, int iptflq, int iptag, int iptagf, int iptagt, int iptaq, int iptaqf, int iptaqt, nec_float thetis, int nfrq, int iflow, int nthi, int nphi, int iped)
enum excitation_return excitation_loop (int in_freq_loop_state, int mhz, int iptflg, int iptflq, int iptag, int iptagf, int iptagt, int iptaq, int iptaqf, int iptaqt, nec_float thetis, int nfrq, int iflow, int nthi, int nphi, int iped)
void fblock (int nrow, int ncol, int imax, int ipsym)
void fblock (int nrow, int ncol, int imax, int ipsym)
void gf (nec_float zk, nec_float *co, nec_float *si)
void gf (nec_float zk, nec_float *co, nec_float *si)
 Computes the integrand exp(jkr)/(kr) for numerical integration.
void gh (nec_float zk, nec_float *hr, nec_float *hi)
void gh (nec_float zk, nec_float *hr, nec_float *hi)
void gx (nec_float zz, nec_float rh, nec_float xk, nec_complex *gz, nec_complex *gzp)
void gx (nec_float zz, nec_float rh, nec_float xk, nec_complex *gz, nec_complex *gzp)
void gxx (nec_float zz, nec_float rh, nec_float a, nec_float a2, nec_float xk, int ira, nec_complex *g1, nec_complex *g1p, nec_complex *g2, nec_complex *g2p, nec_complex *g3, nec_complex *gzp)
void gxx (nec_float zz, nec_float rh, nec_float a, nec_float a2, nec_float xk, int ira, nec_complex *g1, nec_complex *g1p, nec_complex *g2, nec_complex *g2p, nec_complex *g3, nec_complex *gzp)
 Segment end contributions for extended thin wire approx.
void hfk (nec_float el1, nec_float el2, nec_float rhk, nec_float zpkx, nec_float *sgr, nec_float *sgi)
void hfk (nec_float el1, nec_float el2, nec_float rhk, nec_float zpkx, nec_float *sgr, nec_float *sgi)
void hintg (nec_float xi, nec_float yi, nec_float zi)
void hintg (nec_float xi, nec_float yi, nec_float zi)
void hsfld (nec_float xi, nec_float yi, nec_float zi, nec_float ai)
void hsfld (nec_float xi, nec_float yi, nec_float zi, nec_float ai)
 hsfld computes the h field for constant, sine, and cosine current on a segment including ground effects.
void hsflx (nec_float s, nec_float rh, nec_float zpx, nec_complex *hpk, nec_complex *hps, nec_complex *hpc)
void hsflx (nec_float s, nec_float rh, nec_float zpx, nec_complex *hpk, nec_complex *hps, nec_complex *hpc)
void impedance_print (int in1, int in2, int in3, nec_float fl1, nec_float fl2, nec_float fl3, nec_float fl4, nec_float fl5, nec_float fl6, char *ia)
void impedance_print (int in1, int in2, int in3, nec_float fl1, nec_float fl2, nec_float fl3, nec_float fl4, nec_float fl5, nec_float fl6, char *ia)
void init_voltage_sources ()
void init_voltage_sources ()
 Private method to initialize the voltage source buffers.
void intx (nec_float el1, nec_float el2, nec_float b, int ij, nec_float *sgr, nec_float *sgi)
void intx (nec_float el1, nec_float el2, nec_float b, int ij, nec_float *sgr, nec_float *sgi)
void load ()
void load ()
void ne_nh_card (int in_nfeh, int itmp1, int itmp2, int itmp3, int itmp4, nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4, nec_float tmp5, nec_float tmp6)
 A private convenience function called by ne_card() and nh_card().
void ne_nh_card (int in_nfeh, int itmp1, int itmp2, int itmp3, int itmp4, nec_float tmp1, nec_float tmp2, nec_float tmp3, nec_float tmp4, nec_float tmp5, nec_float tmp6)
 A private convenience function called by ne_card() and nh_card().
void nefld (nec_float xob, nec_float yob, nec_float zob, nec_complex *ex, nec_complex *ey, nec_complex *ez)
void nefld (nec_float xob, nec_float yob, nec_float zob, nec_complex *ex, nec_complex *ey, nec_complex *ez)
 nefld computes the near field at specified points in space after the structure currents have been computed.
void netwk (complex_array &in_cm, int_array &in_ip, complex_array &einc)
void netwk (complex_array &in_cm, int_array &in_ip, complex_array &einc)
void nfpat (void)
void nfpat (void)
void nhfld (nec_float xob, nec_float yob, nec_float zob, nec_complex *hx, nec_complex *hy, nec_complex *hz)
void nhfld (nec_float xob, nec_float yob, nec_float zob, nec_complex *hx, nec_complex *hy, nec_complex *hz)
 Computes the near field at specified points in space after the structure currents have been computed.
void pcint (nec_float xi, nec_float yi, nec_float zi, nec_float cabi, nec_float sabi, nec_float salpi, complex_array &e)
void pcint (nec_float xi, nec_float yi, nec_float zi, nec_float cabi, nec_float sabi, nec_float salpi, complex_array &e)
 Integrate over patches at wire connection point.
void print_freq_int_krnl (nec_float f, nec_float lambda, nec_float int_dist, bool using_extended_kernel)
void print_freq_int_krnl (nec_float f, nec_float lambda, nec_float int_dist, bool using_extended_kernel)
void print_input_impedance (int iped, int ifrq, int nfrq, nec_float delfrq)
void print_input_impedance (int iped, int ifrq, int nfrq, nec_float delfrq)
void print_network_data (void)
void print_network_data (void)
void print_norm_rx_pattern (int iptflg, int nthi, int nphi, nec_float thetis, nec_float phiss)
void print_norm_rx_pattern (int iptflg, int nthi, int nphi, nec_float thetis, nec_float phiss)
void print_power_budget (void)
void print_power_budget (void)
void print_structure_currents (char *pattype, int iptflg, int iptflq, int iptag, int iptagf, int iptagt, int iptaq, int iptaqf, int iptaqt)
void print_structure_currents (char *pattype, int iptflg, int iptflq, int iptag, int iptagf, int iptagt, int iptaq, int iptaqf, int iptaqt)
void qdsrc (int is, nec_complex v, complex_array &e)
void qdsrc (int is, nec_complex v, complex_array &e)
void rom2 (nec_float a, nec_float b, complex_array &sum, nec_float dmin)
void rom2 (nec_float a, nec_float b, complex_array &sum, nec_float dmin)
void setup_excitation (int iptflg)
void setup_excitation (int iptflg)
void sflds (nec_float t, complex_array &e)
void sflds (nec_float t, complex_array &e)
void solgf (nec_complex *a, nec_complex *b, nec_complex *c, nec_complex *d, nec_complex *xy, int *ip, int np, int n1, int n, int mp, int m1, int m, int n1c, int n2c, int n2cz)
void solgf (nec_complex *a, nec_complex *b, nec_complex *c, nec_complex *d, nec_complex *xy, int *ip, int np, int n1, int n, int mp, int m1, int m, int n1c, int n2c, int n2cz)
void structure_segment_loading ()
void structure_segment_loading ()
void unere (nec_float xob, nec_float yob, nec_float zob, bool ground_reflection)
void unere (nec_float xob, nec_float yob, nec_float zob, bool ground_reflection)
 Calculates the electric field due to unit current in the t1 and t2 directions on a patch.
nec_complex zint (nec_float sigl, nec_float rolam)
nec_complex zint (nec_float sigl, nec_float rolam)

Private Attributes

int _newclass = 1
 _object = types.ObjectType
nec_float impedance_norm_factor
int inc
int iped
int isave
FILE * m_output_fp
int nphic
int nthic
int processing_state
nec_structure_currents * structure_currents
nec_float xpr1
nec_float xpr2
nec_float xpr3
nec_float xpr4
nec_float xpr5
nec_float xpr7

Classes

class  _object
class  nec_context
class  nec_contextPtr

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

Generated by  Doxygen 1.6.0   Back to index