HighFrequency
Description
Performs three-dimensional full-wave electromagnetic analysis in the frequency-domain using the finite element method (FEM).
By solving Maxwell’s equations, Hado captures electromagnetic wave propagation, reflection, and interactions with materials and boundaries. The resulting solution provides electric and magnetic field distributions and quantities such as S-parameters for evaluating the electromagnetic response of the model.
The model brings together the computational mesh, material assignments, boundary conditions, and operating frequency in a single Python interface. Once configured, the model can be solved to obtain the electromagnetic response for further analysis and visualization.
Construction
model = HighFrequency()
model = HighFrequency() Creates a high-frequency electromagnetic
model. Set frequency before solving the model.
model = HighFrequency(frequency)
model = HighFrequency(frequency) Creates a high-frequency
electromagnetic model and sets its analysis frequency.
Constructor Inputs
frequency
int | float | list | tuple | numpy.ndarray
Hz
None
Operating frequency for the electromagnetic analysis.
Properties
frequency- Type
int | float | list | tuple | numpy.ndarrayAccess read/writeUnit HzOperating frequency for the electromagnetic analysis.
mesh- Type
MeshAccess read/write boundary- Type
list[BoundaryCondition]Access read/writeBoundary conditions describing how electromagnetic fields behave on selected surfaces, including conducting surfaces, absorbing boundaries, and excitation ports.
material- Type
list[Material]Access read-onlyMaterials assigned to the computational domains of the model. Each material defines the electromagnetic properties of its corresponding region. Use assign_material to associate a material with one or more mesh domains.
Methods
Solve the electromagnetic model and return the simulation results.
Associate a material with selected mesh domains to define their electromagnetic properties.
Visualize the geometry, material regions, and boundary conditions in 3D.
Examples
Create and solve a high-frequency model
Create a high frequency model object.
#import tanager as tn
#model = tn.HighFrequency(1e9)
#print(model)
Mathematical Definition
HighFrequency solves the three-dimensional, time-harmonic Maxwell
equation for the electric field :
where is the free-space wavenumber, is the relative permittivity, and is the relative permeability.
The electromagnetic formulation and finite element formulation used by Hado are described in the theory documentation.
Errors / Exceptions
Error / Exceptions List
hado:highfrequencymessage: EmptyFrequency - Condition
solveis called without an assigned frequency.ResolutionSet
model.frequencybefore callingsolve. tanager:modelmessage: EmptyMesh - Condition
solveis called without an assigned mesh.ResolutionAssign a
Meshtomodel.meshbefore callingsolve. tanager:modelmessage: InvalidSweepDimension - Condition
A multidimensional NumPy array is assigned to
frequency.ResolutionUse a one-dimensional NumPy array.
tanager:modelmessage: InvalidSweepType - Condition
A Boolean value is assigned to
frequency.ResolutionUse numeric frequency values.
Notes
The accuracy and computational cost of a finite element solution depend on the mesh resolution, material properties, operating frequency, and numerical solver configuration.
References
- J.-M. Jin. “The Finite Element Method in Electromagnetics.” Wiley–IEEE Press, 2014. 3rd ed.