create_setup#
- Maxwell3d.create_setup(name='MySetupAuto', setup_type=None, **kwargs)[source]#
Create an analysis setup for Maxwell 3D or 2D.
Optional arguments are passed using the
setup_type
andname
parameters. Keyword names correspond to thesetuptype
corresponding to the native AEDT API. The list of keywords here is not exhaustive.- Parameters:
- setup_type
int
,str
,optional
Type of the setup. Depending on the solution type, options are
"AC Conduction"
,"DC Conduction"
,"EddyCurrent"
,"Electric Transient"
,"Electrostatic"
,"Magnetostatic"
, andTransient"
.- name
str
,optional
Name of the setup. The default is
"Setup1"
.- **kwargs
dict
,optional
Available keys depend on the setup chosen. For more information, see Maxwell templates and arguments.
- setup_type
- Returns:
ansys.aedt.core.modules.solve_setup.SetupMaxwell
3D Solver Setup object.
References
>>> oModule.InsertSetup
Examples
>>> from ansys.aedt.core import Maxwell3d >>> m3d = Maxwell3d() >>> m3d.create_setup(name="My_Setup",setup_type="EddyCurrent",MaximumPasses=10,PercentError=2) >>> m3d.release_desktop(True, True)