set_touchstone_model#

Modeler3DLayout.set_touchstone_model(assignment, input_file, model_name=None)#

Assign a Touchstone model to a component.

Parameters:
assignmentstr

Name of the component.

input_filestr, optional

Full path to the model file. The default is None.

model_namestr, optional

Name of the model. The default is None, in which case the model name is the file name without an extension.

Returns:
bool

True when successful, False when failed.

Examples

>>> from ansys.aedt.core import Hfss3dLayout
>>> h3d = Hfss3dLayout("myproject")
>>> h3d.modeler.set_touchstone_model(assignment="C1",input_file="comp.s2p")