add_excitation_model#
- TwinBuilder.add_excitation_model(project, design, use_default_values=True, setup=None, start=None, stop=None, export_uniform_points=False, export_uniform_points_step=1e-05, excitations=None)[source]#
Use the excitation component to assign output quantities in a Twin Builder design to a windings in a Maxwell design. This method works only with AEDT 2025 R1 and later.
- Parameters:
- project
str
Name or path to the project to provide.
- design
str
Name of the design to import the excitations from.
- use_default_valuesbool,
optional
Whether to use the default values for the start and stop times for the chosen TR setup. The default value is
True
.- setup
str
,optional
Name of the Twinbuilder setup. If not provided, the default value is the first setup in the design.
- start
str
,optional
Start time provided as value + units. The default value is
None
. If not provided anduse_default_values=True
, the value is chosen from the TR setup.- stop
float
,optional
Stop time provided as value + units. The default value is
None
. If not provided anduse_default_values=True
, the value is chosen from the TR setup.- export_uniform_pointsbool,
optional
Whether Twin Builder is to perform linear interpolation to uniformly space out time and data points. The interpolation is based on the step size provided. The default is
False
.- export_uniform_points_step
float
,optional
Step size to use for the uniform interpolation. The default value is
1E-5
.- excitations
dict
,optional
List of excitations to extract from the Maxwell design. It is a dictionary where the keys are the excitation names and value a list containing respectively: - The excitation value to assign to the winding, provided as a string. - A boolean whether to enable the component or not. - The excitation type. Possible options are
Current
orVoltage
. - A boolean to enable the pin. IfTrue
the pin will be used to make connection on the schematic and the excitation value will be zeroed, since the expectation is that the value is provided through schematic connections. To know which excitations will be extracted from the Maxwell design useapp.excitations_by_type["Winding Group"]
whereapp
is the Maxwell instance. If not provided, the method automatically retrieves the excitations from the Maxwell Design and sets the default excitation settings.
- project
- Returns:
pyaedt.modeler.cad.object3dcircuit.CircuitComponent
or boolCircuit component object if successful or
False
if fails.
References
>>> oComponentManager.AddExcitationModel