Sources
- lyceanem.electromagnetics.sources.antenna_pattern_source(radius, import_antenna=False, antenna_file=None)[source]
This function generates an antenna pattern and `opaque’ sphere as the base, representing an inserted antenna with measured pattern.
This function is not yet complete
- Parameters:
radius (float) – radius of the sphere, setting the minimum enclosing volume of the antenna
import_antenna (bool) – if [True] the provided antenna_file location will be used to import an antenna file to populate the variable
antenna_file (pathlib.Path) – a file location for the antenna file to be used. The initial set will be based upon the .dat files used by the University of Bristol Anechoic Chamber
- Returns:
solid (
meshio.Mesh) – the enclosing sphere for the antennapattern (numpy.ndarray of float) – array of the sample points of the antenna pattern, specified as Ex,Ey,Ez components
- lyceanem.electromagnetics.sources.electriccurrentsource(prime_vector, theta, phi)[source]
Create an idealised electric current source based upon the provided electric field vector
- Parameters:
prime_vector (numpy.ndarray of float) – orientation of the electric current source in xyz
theta (numpy.ndarray of float) – theta angles of desired pattern in degrees
phi (:numpy.ndarray of float) – phi angles of desired pattern in degrees
- Returns:
etheta (numpy.ndarray of complex) – Etheta polarisation
ephi (numpy.ndarray of complex) – Ephi polarisation