-
Couldn't load subscription status.
- Fork 201
Description
Description of the feature
The API seems to be missing a feature to change the value of Maximum Delta Zo and the values of Minimum and Maximum in 'Set Triangles for Wave Port' - see the screenshot attached from the GUI (Project Manager -> Analysis -> Setup -> Properties)
I am using PyAEDT version 0.19.0
and Electronics Desktop version 2025R2
Steps for implementing the feature
In hfss.create_setup().props it is possible to check the 'Set Triangles for Wave Port' option with 'SetPortMinMaxTri' but there is no option for defining the values.
Here are the available properties:
dict_keys(['SolveType', 'MultipleAdaptiveFreqsSetup', 'Frequency', 'MaxDeltaS', 'PortsOnly', 'UseMatrixConv', 'MaximumPasses', 'MinimumPasses', 'MinimumConvergedPasses', 'PercentRefinement', 'IsEnabled', 'MeshLink', 'BasisOrder', 'DoLambdaRefine', 'DoMaterialLambda', 'SetLambdaTarget', 'Target', 'UseMaxTetIncrease', 'PortAccuracy', 'UseABCOnPort', 'SetPortMinMaxTri', 'UseDomains', 'UseIterativeSolver', 'SaveRadFieldsOnly', 'SaveAnyFields', 'IESolverType', 'LambdaTargetForIESolver', 'UseDefaultLambdaTgtForIESolver', 'IE Solver Accuracy', 'Name'])
It would be useful to expose more of the HFSS setup parameters so that these settings can be modified programmatically.
For example, the following code works for some keys but not for others:
setup = hfss.create_setup(setup_name)
setup.props["SolveType"] = "Single" #working
setup.props["UseABCOnPort"] = True #working
setup.props["SetPortMinMaxTri"] = True #working
setup.props["MaxDeltaZo"] = 1 #not working
setup.props["MinTrianglesForWavePort"] = 400 #not working
setup.props["MaxTrianglesForWavePort"] = 900 #not working
It seems that advanced solver parameters (like MaxDeltaZo) and wave port triangle limits are not currently exposed in the PyAEDT API, even though they exist in the HFSS GUI.
It would be great if these could be added to setup.props for automation.
Useful links and references
https://aedt.docs.pyansys.com/version/stable/API/SetupTemplates3DLayout.html