Add (for Solver On Demand Model)

The Add command is a general command that can be used in several methods. This topic demonstrates how it can be used to add a Solver On Demand model definition to an existing component. It returns the name of the Solver On Demand model added.

UI Access Right click on a component in the Project Manager tree, and select Edit Component, then select the Solver-On-Demand tab.
Parameters
Name Type Description
<ModelName> Array Model to add for cosimulation, with its associated properties
<CosimDefinitions> Array Array that defines the cosimulation parameters
Return Value Returns the name of the model added.

To add a model to the Solver On Demand functionality, the script must do the following:

  1. Open the project that includes the design you want to add.
  2. Add the design from that project to the current project.
  3. Add that design to the Component Manager.
  4. Edit the component that you want to set up for Solid On Demand to couple it with the new design.

The example that follows illustrates all these steps.

oDesktop.OpenProject("C:/Program Files/ANSYS Inc/v261/AnsysEM/Examples/HFSS/Transmission Lines/coplanar_wg_w_ground.aedt")

oProject = oDesktop.SetActiveProject("Interposer_SI")

oDefinitionManager = oProject.GetDefinitionManager()

oModelManager = oDefinitionManager.GetManager("Model")

oModelManager.Add(

[

"NAME:Co-Planar Waveguide w Ground",

"Name:=" , "Co-Planar Waveguide w Ground",

"ModTime:=" , 1765993379,

"Library:=" , "",

"LibLocation:=" , "Project",

"ModelType:=" , "hfss",

"Description:=" , "",

"ImageFile:=" , "C:/Program Files/ANSYS Inc/v261/AnsysEM/Examples/HFSS 3D Layout/HFSS IC/Interposer_SI.aedtresults/4E2C35440176599340310.gif",

"SymbolPinConfiguration:=", 0,

[

"NAME:PortInfoBlk"

],

[

"NAME:PortOrderBlk"

],

"DesignName:=" , "Co-Planar Waveguide w Ground",

"SolutionName:=" , "3GHz_Opt : LastAdaptive",

"NewToOldMap:=" , [],

"OldToNewMap:=" , [],

"PinNames:=" , ["1a","2a"],

[

"NAME:DesignerCustomization",

"DCOption:=" , 0,

"InterpOption:=" , 0,

"ExtrapOption:=" , 1,

"Convolution:=" , 0,

"Passivity:=" , 0,

"Reciprocal:=" , False,

"ModelOption:=" , "",

"DataType:=" , 1

],

[

"NAME:NexximCustomization",

"DCOption:=" , 3,

"InterpOption:=" , 1,

"ExtrapOption:=" , 3,

"Convolution:=" , 0,

"Passivity:=" , 0,

"Reciprocal:=" , False,

"ModelOption:=" , "",

"DataType:=" , 2

],

[

"NAME:HSpiceCustomization",

"DCOption:=" , 1,

"InterpOption:=" , 2,

"ExtrapOption:=" , 3,

"Convolution:=" , 0,

"Passivity:=" , 0,

"Reciprocal:=" , False,

"ModelOption:=" , "",

"DataType:=" , 3

],

"NoiseModelOption:=" , "External",

"WB_SystemID:=" , "",

"IsWBModel:=" , False,

"filename:=" , "C:/Program Files/ANSYS Inc/v261/AnsysEM/Examples/HFSS/Transmission Lines/coplanar_wg_w_ground.aedt",

"numberofports:=" , 2,

"Simulate:=" , False,

"CloseProject:=" , False,

"SaveProject:=" , True,

"InterpY:=" , True,

"InterpAlg:=" , "auto",

"IgnoreDepVars:=" , False,

"Renormalize:=" , False,

"RenormImpedance:=" , 50

])

oComponentManager = oDefinitionManager.GetManager("Component")

oComponentManager.Add(

[

"NAME:Co-Planar Waveguide w Ground",

"Info:=" , [ "Type:=" , 8, "NumTerminals:=" , 2, "DataSource:=" , "", "ModifiedOn:=" , 1765993415, "Manufacturer:=" , "", "Symbol:=" , "", "ModelNames:=" , "", "Footprint:=" , "", "Description:=" , "", "InfoTopic:=" , "", "InfoHelpFile:=" , "", "IconFile:=" , "hfss.bmp", "Library:=" , "", "OriginalLocation:=" , "Project", "IEEE:=" , "", "Author:=" , "", "OriginalAuthor:=" , "", "CreationDate:=" , 1765993415, "ExampleFile:=" , "", "HiddenComponent:=" , 0, "CircuitEnv:=" , 0, "GroupID:=" , 0],

"CircuitEnv:=" , 0,

"Refbase:=" , "S",

"NumParts:=" , 1,

"ModSinceLib:=" , False,

"Terminal:=" , ["1a","1a","A",False,0,1,"","Electrical","0"],

"Terminal:=" , ["2a","2a","A",False,1,1,"","Electrical","0"],

[

"NAME:Properties",

"TextProp:=" , ["Owner","RD","","HFSS"]

],

"CompExtID:=" , 5,

[

"NAME:Parameters",

"VariableProp:=" , ["S","D","","10mil"],

"VariableProp:=" , ["W","D","","9mil"],

"VariableProp:=" , ["ModelLength","D","","2mil"],

"VariableProp:=" , ["gap","D","","6mil"],

"VariableProp:=" , ["SubstrateThickness","D","","6mil"],

"VariableProp:=" , ["ConductorThickness","D","","0.7mil"],

"VariableProp:=" , ["ModelWidth","D","","120mil"],

"VariableProp:=" , ["nport_losstan","D","","0"],

"TextProp:=" , ["ModelName","RD","","FieldSolver"],

"MenuProp:=" , ["CoSimulator","SD","","Default",0],

"ButtonProp:=" , ["CosimDefinition","SD","","Edit","Edit",40501, "ButtonPropClientData:=", []]

],

[

"NAME:CosimDefinitions",

[

"NAME:CosimDefinition",

"CosimulatorType:=" , 103,

"CosimDefName:=" , "Default",

"IsDefinition:=" , True,

"Connect:=" , True,

"ModelDefinitionName:=" , "Co-Planar Waveguide w Ground",

"ShowRefPin2:=" , 2,

"LenPropName:=" , ""

],

"DefaultCosim:=" , "Default"

]

])

oComponentManager.Edit("HFSS-IC",

[

"NAME:HFSS-IC2",

"Info:=" , [ "Type:=" , 16, "NumTerminals:=" , 10, "DataSource:=" , "", "ModifiedOn:=" , 1765993429, "Manufacturer:=" , "", "Symbol:=" , "HFSS-IC", "ModelNames:=" , "", "Footprint:=" , "_symbolFootprint_a8af25e8_a8dcdf60", "Description:=" , "", "InfoTopic:=" , "", "InfoHelpFile:=" , "", "IconFile:=" , "Design.bmp", "Library:=" , "", "OriginalLocation:=" , "Project", "IEEE:=" , "", "Author:=" , "", "OriginalAuthor:=" , "", "CreationDate:=" , 1715280111, "ExampleFile:=" , "", "HiddenComponent:=" , 0, "CircuitEnv:=" , 0, "GroupID:=" , 0],

"CircuitEnv:=" , 0,

"Refbase:=" , "U",

"NumParts:=" , 1,

"ModSinceLib:=" , True,

"Terminal:=" , ["U0.A3","U0.A3","A",False,98,1,"","Electrical","0"],

"Terminal:=" , ["U0.A1","U0.A1","A",False,99,1,"","Electrical","0"],

"Terminal:=" , ["U0.A5","U0.A5","A",False,100,1,"","Electrical","0"],

"Terminal:=" , ["U0.A4","U0.A4","A",False,101,1,"","Electrical","0"],

"Terminal:=" , ["U0.A2","U0.A2","A",False,102,1,"","Electrical","0"],

"Terminal:=" , ["U1.A4","U1.A4","A",False,103,1,"","Electrical","0"],

"Terminal:=" , ["U1.A1","U1.A1","A",False,104,1,"","Electrical","0"],

"Terminal:=" , ["U1.A3","U1.A3","A",False,105,1,"","Electrical","0"],

"Terminal:=" , ["U1.A2","U1.A2","A",False,107,1,"","Electrical","0"],

"Terminal:=" , ["U1.A5","U1.A5","A",False,110,1,"","Electrical","0"],

[

"NAME:Properties",

"TextProp:=" , ["Representation","SRD","","HFSS-IC"],

"TextProp:=" , ["Owner","SRD","","HFSS"]

],

"CompExtID:=" , 6,

[

"NAME:Parameters",

"VariableProp:=" , ["S","D","","10mil"],

"VariableProp:=" , ["W","D","","9mil"],

"VariableProp:=" , ["ModelLength","D","","2mil"],

"VariableProp:=" , ["gap","D","","6mil"],

"VariableProp:=" , ["SubstrateThickness","D","","6mil"],

"VariableProp:=" , ["ConductorThickness","D","","0.7mil"],

"VariableProp:=" , ["ModelWidth","D","","120mil"],

"VariableProp:=" , ["nport_losstan","D","","0"],

"TextProp:=" , ["ModelName","SHD","","FieldSolver"],

"ButtonProp:=" , ["CosimDefinition","D","","Edit","Edit",40501, "ButtonPropClientData:=", []],

"MenuProp:=" , ["CoSimulator","D","","DefaultNetlist,HFSS Model",0]

],

[

"NAME:CosimDefinitions",

[

"NAME:CosimDefinition",

"CosimulatorType:=" , 4,

"CosimDefName:=" , "DefaultNetlist",

"IsDefinition:=" , True,

"Connect:=" , True,

"Data:=" , [],

"GRef:=" , []

],

[

"NAME:CosimDefinition",

"CosimulatorType:=" , 103,

"CosimDefName:=" , "HFSS Model",

"IsDefinition:=" , True,

"Connect:=" , True,

"ModelDefinitionName:=" , "Co-Planar Waveguide w Ground",

"ShowRefPin2:=" , 2,

"LenPropName:=" , ""

],

"DefaultCosim:=" , "DefaultNetlist"

]

])