PO_matlab
|
Models a Hertzian dipole for far-field calculations. More...
Public Member Functions | |
function | SimpleDipole (in I0, in l, in loc_vec, in dir_vec) |
Constructor for SimpleDipole. | |
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. | |
function get | dir_vec (in obj) |
Returns normalized direction vector. |
Public Attributes | |
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_. |
Private Attributes | |
Constant Property | ep0 = 8.85418782e |
Vacuum permittivity in F/m. | |
Constant Property | mu0 = 1.25663706e |
Vacuum permeability in H/m. |
Models a Hertzian dipole for far-field calculations.
This class represents an idealized electric dipole located at a given position in space, with a specific orientation and current. It provides methods to compute the far-field components of the electric field using the dipole parameters and observation angles.
function SimpleDipole | ( | in | I0, |
in | l, | ||
in | loc_vec, | ||
in | dir_vec ) |
Constructor for SimpleDipole.
I0 | Current in Amperes |
l | Length in meters |
loc_vec | 3x1 position vector |
dir_vec | 3x1 direction vector (not necessarily normalized) |
function get dir_vec | ( | in | obj | ) |
Returns normalized direction vector.
dir_vec | Normalized 3x1 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.
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) |
Etheta | Theta-polarized electric field |
Ephi | Phi-polarized electric field |
function point_towards_target | ( | in | obj, |
in | r, | ||
in | theta, | ||
in | phi ) |
Reorients dipole to point toward a spherical target.
r | Radius to the target |
theta | Elevation angle in radians |
phi | Azimuth angle in radians |
Property dir_vec |
Normalized version of dir_vec_.
Property dir_vec_ |
Dipole direction vector (unnormalized)
|
private |
Vacuum permittivity in F/m.
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].
|
private |
Vacuum permeability in H/m.