LumpedPort
Description
Applies a rectangular lumped port boundary condition to selected surfaces of the electromagnetic model.
A lumped port provides an excitation and reference impedance for electromagnetic analysis. The port is characterized by its dimensions, voltage, impedance, and orientation.
Construction
port = LumpedPort()port = LumpedPort(boundary)port = LumpedPort(boundary, property_name = property_value)port = LumpedPort()
port = LumpedPort() Creates a rectangular lumped port with default
parameters and without a boundary assignment.
port = LumpedPort(boundary)
port = LumpedPort(boundary) Creates a rectangular lumped port and
assigns it to the specified mesh boundary.
port = LumpedPort(boundary, property_name = property_value)
port = LumpedPort(boundary, property_name = property_value) Creates a
rectangular lumped port with the specified property value.
Constructor Inputs
boundary
int | list[int]
None
Mesh boundary IDs identifying the surfaces where the lumped port is applied.
width
float
m
1e-3
Width of the rectangular port perpendicular to the voltage direction.
height
float
m
1e-3
Height of the rectangular port along the voltage direction.
impedance
float | complex
Ω
50.0
Reference impedance of the lumped port.
voltage
float
V
1.0
Excitation voltage applied to the lumped port.
voltage_direction
list[float] | str
[0.0, 0.0, 1.0]
Direction from the ground conductor to the signal conductor. Specify a direction vector or one of “x”, “y”, “z”, “-x”, “-y”, “-z”.
power_flow_direction
list[float] | str
[1.0, 0.0, 0.0]
Positive power propagation direction toward the device under test. Specify a direction vector or one of “x”, “y”, “z”, “-x”, “-y”, “-z”.
Properties
boundary- Type
int | list[int]Access read/writeMesh boundary IDs identifying the surfaces where the lumped port is applied.
width- Type
floatAccess read/writeUnit mWidth of the rectangular port perpendicular to the voltage direction. Must be positive.
height- Type
floatAccess read/writeUnit mHeight of the rectangular port along the voltage direction. Must be positive.
impedance- Type
float | complexAccess read/writeUnit ΩReference impedance of the lumped port.
voltage- Type
floatAccess read/writeUnit VExcitation voltage applied to the lumped port.
voltage_direction- Type
list[float] | strAccess read/writeDirection from the ground conductor to the signal conductor. Accepts a direction vector or an axis string.
power_flow_direction- Type
list[float] | strAccess read/writePositive power propagation direction toward the device under test. Accepts a direction vector or an axis string.
Examples
Define a rectangular lumped port
port = LumpedPort(
boundary=1,
width=1e-3,
height=2e-3,
impedance=50.0,
voltage=1.0,
voltage_direction="z",
power_flow_direction="x"
)
Mathematical Definition
For a rectangular lumped port, the port voltage is defined by the electric field across the port surface:
where is the port voltage, is the port width, is the rectangular port surface, is the electric field, and is the unit vector along the voltage direction. The port height is measured along .
Notes
The lumped port formulation assumes a rectangular port surface. The
specified width and height should correspond to the dimensions of
the assigned mesh boundary.
The current implementation does not validate whether the assigned boundary surface is rectangular. Users are responsible for ensuring that the port geometry is consistent with the rectangular lumped port formulation.
The voltage_direction and power_flow_direction parameters accept the
axis strings "x", "y", "z", "-x", "-y", and "-z", in
addition to direction vectors.
Errors / Exceptions
Error / Exceptions List
tanager:validatormessage: MustBeDataType - Condition
boundary,width,height,impedance,voltage,voltage_direction, orpower_flow_directionhas an invalid data type.ResolutionUse the supported data type specified in the corresponding input argument.
tanager:validatormessage: MustBePositive - Condition
widthorheightis zero or negative.ResolutionSpecify a positive floating-point value for
widthandheight. tanager:validatormessage: mustBeValidDirection - Condition
voltage_directionorpower_flow_directioncontains an unsupported direction string.ResolutionUse “x”, “y”, “z”, “-x”, “-y”, or “-z”, or specify a numeric direction vector.