create_setup#
- Mechanical.create_setup(name='MySetupAuto', setup_type=None, **kwargs)[source]#
Create an analysis setup for Mechanical.
Optional arguments are passed along with
setup_type
andname
. Keyword names correspond to thesetup_type
corresponding to the native AEDT API. The list of keywords here is not exhaustive.- Parameters:
- name
str
,optional
Name of the setup. The default is
"Setup1"
.- setup_type
int
,str
,optional
Type of the setup. Options are
"IcepakSteadyState"
and"IcepakTransient"
. The default is"IcepakSteadyState"
.- **kwargs
dict
,optional
Available keys depend on the setup chosen. For more information, see Mechanical templates and arguments.
- name
- Returns:
ansys.aedt.core.modules.solve_setup.SetupHFSS
Solver Setup object.
References
>>> oModule.InsertSetup
Examples
>>> from ansys.aedt.core import Mechanical >>> app = Mechanical() >>> app.create_setup(name="Setup1",MaxModes=6)