solve_in_batch#

Q2d.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:
filenamestr, optional

Name of the setup. The default is None, which means that the active project is to be solved.

machinestr, 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_coresint, optional

Number of cores to use in simulation.

num_tasksint, optional

Number of tasks to use in simulation. Set num_tasks to -1 to apply auto settings and distributed mode.

setup_namestr

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.

Returns:
bool

True when successful, False when failed.