solve_in_batch#
- Maxwell3d.solve_in_batch(file_name=None, machine='localhost', run_in_thread=False, cores=4, tasks=1, setup=None, revert_to_initial_mesh=False)[source]#
Analyze a design setup in batch mode.
Note
To use this function, the project must be closed.
- Parameters:
- file_name
str
,optional
Name of the setup. The default is
None
, which means that the active project is to be solved.- machine
str
,optional
Name of the machine if remote. The default is
"localhost"
.- run_in_threadbool,
optional
Whether to submit the batch command as a thread. The default is
False
.- cores
int
,optional
Number of cores to use in the simulation.
- tasks
int
,optional
Number of tasks to use in the simulation. Set
num_tasks
to-1
to apply auto settings and distributed mode.- setup
str
Name of the setup, which can be an optimetrics setup or a simple setup. The default is
None
, in which case all setups are solved.- revert_to_initial_meshbool,
optional
Whether to revert to the initial mesh before solving. The default is
False
.
- file_name
- Returns:
- bool
True
when successful,False
when failed.