add_q3d_dynamic_component#
- TwinBuilder.add_q3d_dynamic_component(source_project, source_design_name, setup, sweep, coupling_matrix_name, model_depth='1meter', maximum_order=10000, error_tolerance=0.005, z_ref=50, state_space_dynamic_link_type=None, component_name=None, save_project=True)#
Add a Q2D or Q3D dynamic component to a Twin Builder design.
- Parameters:
- source_project
str Source project name or project path.
- source_design_name
str Source design name.
- setup
str Setup name.
- sweep
str Sweep name.
- coupling_matrix_name
str Coupling matrix name.
- model_depth
str,optional 2D model depth specified as value with unit. To be provided if design is Q2D. The default value is
1meter- maximum_order
float,optional The Maximum Order value specifies the highest order state space system that you can choose while fitting to represent the system behavior. A lower order may lead to less accuracy but faster simulation. The default value is
10000.- error_tolerance
float,optional Error Tolerance sets the error tolerance for S-Matrix fitting. The default value is
0.005.- z_ref
float,optional Sets the value of the Z (ref) in ohms. The default value is
50.- state_space_dynamic_link_type
str,optional Q3D state space dynamic link type. Possible options are:
Sfor S parameters link type.RLGCfor RLGC Parameters link type.EQfor Equivalent Circuit.
The default value is
RLGC.- component_name
str,optional Component name. If not provided a generic name with prefix “SimpQ3DData” will be given.
- save_projectbool,
optional Save project after use. The default value is
True.
- source_project
- Returns:
ansys.aedt.core.modeler.circuits.object_3d_circuit.CircuitComponentor boolCircuit component object if successful or
Falseif fails.
References
>>> oComponentManager.AddDynamicNPortData
Examples
Create an instance of Twin Builder.
>>> from ansys.aedt.core import TwinBuilder >>> tb = TwinBuilder()
Add a Q2D dynamic link component.
>>> tb.add_q3d_dynamic_component( ... "Q2D_ArmouredCableExample", "2D_Extractor_Cable", "MySetupAuto", "sweep1", "Original", "100mm" ... ) >>> tb.desktop_class.close_desktop()