COMSOL Batch
The COMSOL Multiphysics batch mode provides a way to run COMSOL Multiphysics without a graphical user interface. The COMSOL batch mode allows you to run both Model MPH-files and compiled model files for Java (class files).
You can control the options for running the COMSOL software in batch mode from the Study node in the Model Builder. To enable the Batch feature, click the Show More Options button () and select Batch or Batch and Cluster (if your license includes cluster computing) in the Show More Options dialog. Then in the Model Builder, right-click a Study node and select Batch. Also see Batch (Job Configurations).
You can also run COMSOL batch using a command-line interface, as described in COMSOL Batch Commands (Windows), COMSOL Batch Commands (Linux), and COMSOL Batch Commands (macOS).
In batch mode, you can monitor the memory usage reported in the log as lines of the form
Memory: RAM/MAXRAM VIRT/MAXVIRT
where RAM is the current memory usage in MB, and VIRT is the current virtual memory usage in MB. The maximum measured usage is reported in MAXRAM and MAXVIRT, respectively. The log only reports changes to the memory usage. You can also monitor the current progress, which is reported as lines in the log of the form
Current Progress: 53%
where the percentage indicates the currently estimated progress.
For options for controlling the batch command, see the section The COMSOL Commands for your platform.
COMSOL Batch under a Floating Network License
If you have licensed a floating network license, you are allowed to run a simultaneous “batch job” along with your COMSOL Multiphysics Desktop. Such batch jobs have the capacity to run parametric sweeps on multiple computers, as long as the changes to your model include only changes to parameters. This batch license functionality is only available for Cluster Computing and Cluster Sweep nodes, and you must select the Use batch license checkbox in the Cluster Computing and Cluster Sweep nodes’ Settings windows. Each additional floating network license lets you run a separate independent batch job (with different models) on multiple computers.
Running COMSOL Batch with Models in Databases
It is possible to run the COMSOL batch command-line interface using models stored in a Model Manager database as both input and output for the simulation. See Running COMSOL Batch with Models in Databases for more details. Note that this functionality is not supported for -mode desktop.