solve_in_batch#
- Rmxprt.solve_in_batch(filename=None, machine='localhost', run_in_thread=False, num_cores=4, num_tasks=1, setup_name=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:
- filename
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
.- num_cores
int
,optional
Number of cores to use in simulation.
- num_tasks
int
,optional
Number of tasks to use in simulation. Set num_tasks to
-1
to apply auto settings and distributed mode.- setup_name
str
Name of the setup, which can be an optimetric setup or a simple setup. If
None
all setup will be solved.- revert_to_initial_meshbool,
optional
Whether to revert to initial mesh before solving or not. Default is
False
.
- filename
- Returns:
- bool
True
when successful,False
when failed.