- LocalMapdlPool.run_batch(files, clear_at_start=True, progress_bar=True, close_when_finished=False, timeout=None, wait=True)#
Run a batch of input files on the pool.
List of input files to run.
Clear MAPDL at the start of execution. By default this is
True, and setting this to
Falsemay lead to instability.
Show a progress bar when starting the pool. Defaults to
True. Will not be shown when
Show a progress bar when running the batch. Defaults to
Exit the MAPDL instances when the pool is finished. Default
Maximum runtime in seconds for each iteration. If
None, no timeout. If specified, each iteration will be only allowed to run
timeoutseconds, and then killed and treated as a failure.
Block execution until the batch is complete. Default
List of text outputs from MAPDL for each batch run. Not necessarily in the order of the inputs. Failed runs will not return an output. Since the returns are not necessarily in the same order as
iterable, you may want to add some sort of tracker or note within the input files.
Run 20 verification files on the pool
>>> from ansys.mapdl import examples >>> files = [examples.vmfiles['vm%d' % i] for i in range(1, 21)] >>> outputs = pool.run_batch(files) >>> len(outputs) 20