File: nec_ground.i

package info (click to toggle)
necpp 1.2.6%2Bcvs20070816-1.3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,772 kB
  • ctags: 5,989
  • sloc: cpp: 30,761; ansic: 10,162; fortran: 8,339; python: 2,948; makefile: 189; sh: 1
file content (72 lines) | stat: -rw-r--r-- 2,039 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
%nodefault;
class nec_ground
{
public:
	%extend
	{
		/*! Returns the relative dielectric constant (no units) of the ground medium 1. */
		nec_float get_relative_dielectric_constant()
		{
			return self->epsr;
		}
		
		
		/*! Returns the conductivity in Siemens/meter of the ground medium 1. */
		nec_float get_conductivity()
		{
			return self->sig;
		}
		
		
		/*! Returns the number of radial wires in the ground screen approximation. If it's zero then this approximation has not been used.*/
		int get_radial_wire_count()
		{
			return self->radial_wire_count;
		}
		
		
		/*! Returns the length of radial wires used in the ground screen approximation - provided this approximation has been used. */
		nec_float get_radial_wire_length()
		{
			return self->radial_wire_count;
		}
		
		
		/*! Returns the radius of radial wires in the ground screen approximation - provided this approximation has been used. */
		nec_float get_radial_wire_radius()
		{
			return self->radial_wire_radius;
		}
		
		
		/*! If there's a cliff problem, returns the distance from the origin of the coordinate system to join between medium 1 and 2.
			This distance is either	the radius of the circle where the two media join or the distance from the X axis to where
			the two media join in a line parallel to the Y axis. Specification of the circular or linear option is on the RP card.
		*/		
		nec_float get_cliff_edge_distance()
		{
			return self->cliff_edge_distance;
		}
		
		
		/*! If there's a cliff problem, returns the distance (positive or zero) by which the surface of medium 2 is below medium 1. */
		nec_float get_cliff_height()
		{
			return self->cliff_height;
		}
		
		
		/*! If there's a cliff problem, returns the relative dielectric constant (no units) of the ground medium 2. */
		nec_float get_relative_dielectric_constant2()
		{
			return self->epsr2;
		}
		
		
		/*! If there's a cliff problem, returns the conductivity in Siemens/meter of the ground medium 2. */
		nec_float get_conductivity2()
		{
			return self->sig2;
		}		
	}
};