create_setup#

Mechanical.create_setup(name='MySetupAuto', setup_type=None, **kwargs)#

Create an analysis setup for Mechanical.

Optional arguments are passed along with setup_type and name. Keyword names correspond to the setup_type corresponding to the native AEDT API. The list of keywords here is not exhaustive.

Parameters:
namestr, optional

Name of the setup. The default is "Setup1".

setup_typeint, str, optional

Type of the setup. Options are "IcepakSteadyState" and "IcepakTransient". The default is "IcepakSteadyState".

**kwargsdict, optional

Available keys depend on the setup chosen. For more information, see Mechanical templates and arguments.

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)