export_equivalent_circuit#
- Q2d.export_equivalent_circuit(output_file: str = None, setup: str | None = None, sweep: str | None = None, variations: list | str | None = None, matrix: str | None = None, cells: int | None = 2, user_changed_settings: bool | None = True, include_cap: bool | None = True, include_cond: bool | None = True, include_dcr: bool | None = False, include_dcl: bool | None = False, include_acr: bool | None = False, include_acl: bool | None = False, include_r: bool | None = True, include_l: bool | None = True, add_resistance: bool | None = False, parse_pin_names: bool | None = False, export_distributed: bool | None = True, lumped_length: str | None = '1meter', rise_time_value: str | None = None, rise_time_unit: str | None = None, coupling_limit_type: int | None = None, cap_limit: str | None = None, ind_limit: str | None = None, res_limit: str | None = None, cond_limit: str | None = None, model: str | None = None, frequency: int | str | None = 0, file_type: str | None = 'HSPICE', include_cpp: bool | None = False) bool#
Export matrix data.
- Parameters:
- output_file
str Full path for saving the matrix data to. Options for file extensions are CIR, SML, SP, PKG, SPC, LIB, CKT, BSP, DML, and ICM.
- setup
str,optional Setup name. The default value is
None, in which case the first analysis setup is used.- sweep
str,optional Solution frequency. The default is
None, in which case the default adaptive is used.- variations
listorstr,optional Design variation. The default is
None, in which case the current nominal variation is used. If you provide a design variation, use the format{Name}:{Value}.- matrix
str,optional Name of the matrix to show. The default is
"Original".- cells
int,optional Number of cells in export. Default value is 2.
- user_changed_settingsbool,
optional Whether user has changed settings or not, defaulted to True. Default value is False.
- include_capbool,
optional Include Capacitance. Default value is True.
- include_condbool,
optional Include Conductance. Default value is True.
- coupling_limit_type
int,optional Coupling limit types. Values can be:
"By Value" -> 0or"By Fraction Of Self Term" -> 1. If None, no coupling limits are set. Default value is None.- include_dcrbool,
optional Flag indicates whether to export DC resistance matrix. Default value is
False.- include_dclbool,
optional Flag indicates whether to export DC Inductance matrix. Default value is
False.- include_acrbool,
optional Flag indicates whether to export AC resistance matrix. Default value is
False.- include_aclbool,
optional Flag indicates whether to export AC inductance matrix. Default value is
False.- include_rbool,
optional Flag indicates whether to export resistance. Default value is True.
- include_lbool,
optional Flag indicates whether to export inductance. Default value is True.
- add_resistancebool,
optional Adds the DC and AC resistance. Default value is True.
- parse_pin_namesbool,
optional Parse pin names. Default value is False.
- export_distributedbool,
optional Flag to tell whether to export in distributed mode or Lumped mode. Default value is True.
- lumped_length
str,optional Length of the design. Default value is 1 meter.
- rise_time_value
str,optional Rise time to calculate the number of cells. Default value is 1e-09.
- rise_time_unit
str,optional Rise time unit. Default is s.
- cap_limit
str,optional Capacitance limit. Default value is 1pF if coupling_limit_type is 0. Default value is 0.01 if coupling_limit_type is 1.
- cond_limit
str,optional Conductance limit. Default value is 1mSie if coupling_limit_type is 0. Default value is 0.01 if coupling_limit_type is 1.
- res_limit
str,optional Resistance limit. Default value is 1ohm if coupling_limit_type is 0. Default value is 0.01 if coupling_limit_type is 1.
- ind_limit
str,optional Inductance limit. Default value is 1nH if coupling_limit_type is 0. Default value is 0.01 if coupling_limit_type is 1.
- model
str,optional Model name or name of the sub circuit (Optional). If None then file_name is considered as model name.
- frequency
str,optional Sweep frequency in Hz. Default value is 0.
- file_type
str,optional The type of file format. Type of HSPICE file format. (All HSPICE file formats have the same extension, which is
*.sp.) Options are: “Hspice”: simple HSPICE file format. “Welement”: Nexxim/HSPICE W Element file format “RLGC”: Nexxim/HSPICE RLGC W Element file format Default value is Hspice.- include_cppbool,
optional Whether to include chip package control. Default value is False.
- output_file
- Returns:
- bool
Truewhen successful,Falsewhen failed.
References
>>> oModule.ExportCircuit
Examples
>>> from ansys.aedt.core import Q3d >>> aedtapp = Q3d() >>> box = aedtapp.modeler.create_box([30, 30, 30], [10, 10, 10], name="mybox") >>> net = aedtapp.assign_net(box, "my_net") >>> source = aedtapp.assign_source_to_objectface( ... box.bottom_face_z.id, axisdir=0, source_name="Source1", net_name=net.name ... ) >>> sink = aedtapp.sink(box.top_face_z.id, direction=0, name="Sink1", net_name=net.name) >>> aedtapp["d"] = "20mm" >>> aedtapp.modeler.duplicate_along_line(objid="Box1", vector=[0, "d", 0]) >>> mysetup = aedtapp.create_setup() >>> aedtapp.analyze_setup(mysetup.name) >>> aedtapp.export_equivalent_circuit( ... output_file="test_export_circuit.cir", setup=mysetup.name, sweep="LastAdaptive", variations=["d: 20mm"] ... )