Subclass of SimpleDipole that automatically points toward a target.
More...
|
function | DirectedDipole (in I0, in l, in loc_vec, in r_targ, in theta_targ, in phi_targ) |
| Constructor for DirectedDipole.
|
function get | dir_vec (in obj) |
| Returns normalized direction vector.
|
function | E_calc (in obj, in r, in theta, in phi, in freq, in usegreen) |
| Computes the Etheta and Ephi far-field components.
|
function | point_towards_target (in obj, in r, in theta, in phi) |
| Reorients dipole to point toward a spherical target.
|
|
Property | I0 |
| Current magnitude in Amperes.
|
Property | l |
| Dipole length in meters.
|
Property | loc_vec |
| Dipole location as a 3x1 Cartesian vector [x; y; z].
|
Property | dir_vec_ |
| Dipole direction vector (unnormalized)
|
Property | dir_vec |
| Normalized version of dir_vec_.
|
|
Constant Property | ep0 = 8.85418782e |
| Vacuum permittivity in F/m.
|
Constant Property | mu0 = 1.25663706e |
| Vacuum permeability in H/m.
|
Subclass of SimpleDipole that automatically points toward a target.
This class initializes a SimpleDipole with a default upward orientation, and then redirects it toward a specified target direction given in spherical coordinates.
◆ DirectedDipole()
function DirectedDipole |
( |
in | I0, |
|
|
in | l, |
|
|
in | loc_vec, |
|
|
in | r_targ, |
|
|
in | theta_targ, |
|
|
in | phi_targ ) |
Constructor for DirectedDipole.
- Parameters
-
I0 | Current amplitude [A] |
l | Dipole length [m] |
loc_vec | 3x1 position vector [x; y; z] |
r_targ | Radial distance to target [m] |
theta_targ | Elevation angle of target [rad] |
phi_targ | Azimuth angle of target [rad] |
◆ dir_vec()
function get dir_vec |
( |
in | obj | ) |
|
|
inherited |
Returns normalized direction vector.
- Return values
-
dir_vec | Normalized 3x1 direction vector |
◆ E_calc()
function E_calc |
( |
in | obj, |
|
|
in | r, |
|
|
in | theta, |
|
|
in | phi, |
|
|
in | freq, |
|
|
in | usegreen ) |
|
inherited |
Computes the Etheta and Ephi far-field components.
- Parameters
-
r | Radial distance(s) |
theta | Elevation angle(s) in radians |
phi | Azimuth angle(s) in radians |
freq | Frequency in Hz |
usegreen | Optional flag to use the Green's function (default = 1) |
- Return values
-
Etheta | Theta-polarized electric field |
Ephi | Phi-polarized electric field |
◆ point_towards_target()
function point_towards_target |
( |
in | obj, |
|
|
in | r, |
|
|
in | theta, |
|
|
in | phi ) |
|
inherited |
Reorients dipole to point toward a spherical target.
- Parameters
-
r | Radius to the target |
theta | Elevation angle in radians |
phi | Azimuth angle in radians |
◆ dir_vec
Normalized version of dir_vec_.
◆ dir_vec_
Dipole direction vector (unnormalized)
◆ ep0
Constant Property ep0 = 8.85418782e |
|
privateinherited |
Vacuum permittivity in F/m.
◆ I0
Current magnitude in Amperes.
◆ loc_vec
Dipole location as a 3x1 Cartesian vector [x; y; z].
◆ mu0
Constant Property mu0 = 1.25663706e |
|
privateinherited |
Vacuum permeability in H/m.
The documentation for this class was generated from the following file: