tidy3d.rf.CustomImpedanceSpec#
- class CustomImpedanceSpec[source]#
Bases:
MicrowaveBaseModelSpecification for custom transmission line voltages and currents in mode solvers.
- Parameters:
attrs (dict = {}) β Dictionary storing arbitrary metadata for a Tidy3D object. This dictionary can be freely used by the user for storing data without affecting the operation of Tidy3D as it is not used internally. Note that, unlike regular Tidy3D fields,
attrsare mutable. For example, the following is allowed for setting anattrobj.attrs['foo'] = bar. Also note that Tidy3D will raise aTypeErrorifattrscontain objects that can not be serialized. One can check ifattrsare serializable by callingobj.json().voltage_spec (Union[AxisAlignedVoltageIntegralSpec, Custom2DVoltageIntegralSpec, NoneType] = None) β Path specification for computing the voltage associated with a mode profile.
current_spec (Union[AxisAlignedCurrentIntegralSpec, Custom2DCurrentIntegralSpec, CompositeCurrentIntegralSpec, NoneType] = None) β Path specification for computing the current associated with a mode profile.
:param The
CustomImpedanceSpecclass specifies how quantities related to transmission line: :param modes are computed. It defines the paths for line integrals: :param which are used to: :param compute voltage: :param current: :param and characteristic impedance of the transmission line.: :param Users must supply at least one of voltage or current path specifications to control where these integrals: :param are evaluated. Both voltage_spec and current_spec cannot beNonesimultaneously.:Example
>>> from tidy3d.components.microwave.path_integrals.specs.voltage import AxisAlignedVoltageIntegralSpec >>> from tidy3d.components.microwave.path_integrals.specs.current import AxisAlignedCurrentIntegralSpec >>> voltage_spec = AxisAlignedVoltageIntegralSpec( ... center=(0, 0, 0), size=(0, 0, 1), sign="+" ... ) >>> current_spec = AxisAlignedCurrentIntegralSpec( ... center=(0, 0, 0), size=(2, 1, 0), sign="+" ... ) >>> impedance_spec = CustomImpedanceSpec( ... voltage_spec=voltage_spec, ... current_spec=current_spec ... )
Attributes
Methods
check_path_spec_combinations(val,Β values)Validate that at least one of voltage_spec or current_spec is provided.
Inherited Common Usage
- voltage_spec#
- current_spec#
- classmethod check_path_spec_combinations(val, values)[source]#
Validate that at least one of voltage_spec or current_spec is provided.
In order to define voltage/current/impedance, either a voltage or current path specification must be provided. Both cannot be
Nonesimultaneously.
- __hash__()#
Hash method.