set_spice_model#
- Modeler3DLayout.set_spice_model(component_name, model_path, model_name=None, subcircuit_name=None, pin_map=None)[source]#
Assign a Spice model to a component.
- Parameters:
- component_name
str
Name of the component.
- model_path
str
,optional
Full path to the model file. The default is
None
.- model_name
str
,optional
Name of the model. The default is
None
, in which case the model name is the file name without an extension.- subcircuit_name
str
,optional
Name of the subcircuit. The default is
None
, in which case the subcircuit name is the model name.- pin_map
list
,optional
List of
[spice_pin_name, aedt_pin_name]
to customize the pin mapping between Spice pins and AEDT pins.
- component_name
- Returns:
- bool
True
when successful,False
when failed.
Examples
>>> from pyaedt import Hfss3dLayout >>> h3d = Hfss3dLayout("myproject") >>> h3d.modeler.set_spice_model(component_name="A1", ... modelpath="pathtospfile", ... modelname="spicemodelname", ... subcircuit_name="SUBCK1")