18 #ifndef __nec_ground__
19 #define __nec_ground__
22 #include "math_util.h"
23 #include "nec_debug.h"
70 iperf = in_ground.iperf;
72 epsr = in_ground.epsr;
76 radial_wire_count = in_ground.radial_wire_count;
77 radial_wire_length = in_ground.radial_wire_length;
78 radial_wire_radius = in_ground.radial_wire_radius;
81 cliff_edge_distance = in_ground.cliff_edge_distance;
82 cliff_height = in_ground.cliff_height;
83 epsr2 = in_ground.epsr2;
84 sig2 = in_ground.sig2;
91 radial_wire_count = 0;
92 radial_wire_length = 0.0;
93 radial_wire_radius = 0.0;
103 void parse_gn(
int itmp1,
int itmp2,
104 nec_float tmp1, nec_float tmp2,
105 nec_float tmp3, nec_float tmp4,
106 nec_float tmp5, nec_float tmp6
112 void setup_cliff(nec_float in_eprs2,
114 nec_float clt, nec_float cht);
116 nec_complex get_zrati2(nec_float wavelength);
118 nec_float get_cl(nec_float wavelength)
120 return cliff_edge_distance / wavelength;
123 nec_float get_ch(nec_float wavelength)
125 return cliff_height / wavelength;
128 nec_complex get_zrati_sqr()
const
134 inline bool type_finite_reflection() {
return (0 == iperf); }
135 inline bool type_perfect() {
return (1 == iperf); }
136 inline bool type_sommerfeld_norton() {
return (2 == iperf); }
139 bool is_valid()
const
141 if (iperf < 0)
return false;
142 if (iperf > 2)
return false;
144 if (
ksymp < 1)
return false;
145 if (
ksymp > 2)
return false;
165 int radial_wire_count;
166 nec_float radial_wire_length;
167 nec_float radial_wire_radius;
170 nec_float cliff_edge_distance;
171 nec_float cliff_height;
183 nec_complex zrati, frati;
int ksymp
Definition: nec_ground.h:188
bool present() const
Return true if a ground is present.
Definition: nec_ground.h:151
Definition: nec_ground.h:59