set_save_fields#
- SetupMaxwell.set_save_fields(enable=True, range_type='Custom', subrange_type='LinearStep', start=0, stop=100000, count=1, units='ns')#
Enable the save fields option in the setup.
- Parameters:
- enablebool,
optional Whether to enable the save fields option. The default value is
True.- range_type
str,optional Range type. The available options are
"Custom"to set a custom range type or"Every N Steps"to set the steps within the range. The default value isCustom.- subrange_type
str,optional In case of a custom range type the
subrange_typedefines the subrange type. The available options are"LinearStep","LinearCount"and"SinglePoints". The default option is"LinearStep".- start
float,optional Range or steps starting point. The default value is 0.
- stop
float,optional Range or steps starting point. The default value is 100000.
- count
float,optional Range count or step. The default value is 1.
- units
str,optional Time units. The default is “ns”.
- enablebool,
- Returns:
- bool
Trueif successful,Falseif it fails.
Examples
>>> import ansys.aedt.core >>> m2d = ansys.aedt.core.Maxwell2d(version="2025.2") >>> m2d.solution_type = SOLUTIONS.Maxwell2d.TransientXY >>> setup = m2d.create_setup() >>> setup.set_save_fields( ... enable=True, range_type="Custom", subrange_type="LinearStep", start=0, stop=8, count=2, units="ms" ... ) >>> m2d.desktop_class.close_desktop()