23#include "nec_output.h"
25#include "nec_results.h"
72 iperf = in_ground.iperf;
74 epsr = in_ground.epsr;
78 radial_wire_count = in_ground.radial_wire_count;
79 radial_wire_length = in_ground.radial_wire_length;
80 radial_wire_radius = in_ground.radial_wire_radius;
83 cliff_edge_distance = in_ground.cliff_edge_distance;
84 cliff_height = in_ground.cliff_height;
85 epsr2 = in_ground.epsr2;
86 sig2 = in_ground.sig2;
89 void default_values() {
92 radial_wire_count = 0;
93 radial_wire_length = 0.0;
94 radial_wire_radius = 0.0;
104 void parse_gn(
int itmp1,
int itmp2,
105 nec_float tmp1, nec_float tmp2,
106 nec_float tmp3, nec_float tmp4,
107 nec_float tmp5, nec_float tmp6
113 void setup_cliff(nec_float in_eprs2,
115 nec_float clt, nec_float cht);
117 nec_complex get_zrati2(nec_float _wavelength);
134 return this->radial_wire_count;
140 return this->radial_wire_length;
146 return this->radial_wire_radius;
163 return this->cliff_edge_distance;
169 return this->cliff_height;
187 nec_float
get_cl(nec_float _wavelength)
const {
188 return cliff_edge_distance / _wavelength;
193 nec_float
get_ch(nec_float _wavelength)
const {
194 return cliff_height / _wavelength;
197 nec_complex get_zrati_sqr()
const {
202 inline bool type_finite_reflection() {
return (0 == iperf); }
203 inline bool type_perfect() {
return (1 == iperf); }
204 inline bool type_sommerfeld_norton() {
return (2 == iperf); }
207 bool is_valid()
const {
208 if (iperf < 0)
return false;
209 if (iperf > 2)
return false;
211 if (
ksymp < 1)
return false;
212 if (
ksymp > 2)
return false;
227 void ggrid_interpolate( nec_float x, nec_float y,
228 nec_complex *f1, nec_complex *f2,
229 nec_complex *f3, nec_complex *f4 ) {
233 void write_to_file_aux(std::ostream& os,
output_helper& oh,
int _ifar);
236 void calculate_antenna_environment(
c_ground_wave& ground_wave, nec_float freq_mhz);
239 nec_complex zrati, frati;
262 int radial_wire_count;
263 nec_float radial_wire_length;
264 nec_float radial_wire_radius;
267 nec_float cliff_edge_distance;
268 nec_float cliff_height;
void interpolate(nec_float x, nec_float y, nec_complex *f1, nec_complex *f2, nec_complex *f3, nec_complex *f4)
interpolate (was intrp) uses bivariate cubic interpolation to obtain the values of 4 functions at the...
Definition c_ggrid.cpp:38
Definition nec_ground.h:63
nec_float get_cliff_height() const
Definition nec_ground.h:168
int get_radial_wire_count() const
Returns the number of radial wires in the ground screen approximation. If it's zero then this approxi...
Definition nec_ground.h:133
nec_float get_radial_wire_length_wavelengths() const
Returns the length of radial wires used in the ground screen approximation - provided this approximat...
Definition nec_ground.h:151
int ksymp
Definition nec_ground.h:245
bool present() const
Return true if a ground is present.
Definition nec_ground.h:218
nec_float get_relative_dielectric_constant() const
Returns the relative dielectric constant (no units) of the ground medium 1.
Definition nec_ground.h:121
nec_float get_radial_wire_radius() const
Returns the radius of radial wires in the ground screen approximation - provided this approximation h...
Definition nec_ground.h:145
nec_float get_relative_dielectric_constant2() const
Definition nec_ground.h:174
nec_float get_cl(nec_float _wavelength) const
Cliff edge in wavelengths,.
Definition nec_ground.h:187
nec_float get_ch(nec_float _wavelength) const
Cliff Height in wavelengths.
Definition nec_ground.h:193
nec_float get_radial_wire_length() const
Returns the length of radial wires used in the ground screen approximation - provided this approximat...
Definition nec_ground.h:139
nec_float get_cliff_edge_distance() const
Return cliff edge distance (meters)
Definition nec_ground.h:162
nec_float get_conductivity2() const
Definition nec_ground.h:180
nec_float get_conductivity() const
Returns the conductivity in Siemens/meter of the ground medium 1.
Definition nec_ground.h:127
Definition nec_output.h:53
A class that handles various standard output functions for the results.
Definition nec_results.h:41