Talk:COMSOL Multiphysics
![]() | Software: Computing Unassessed | ||||||||||||
|
Additional features
Interfacing and batch jobs
COMSOL may be used from a batch file (.bat) by using the following command line entries. The first three lines calls COMSOL (comsolbatch), specifies the input file, specifies the output file (with the extension of _OUT), and records the log. The last three lines launches three different instances of the software after the batch job is completed. This is beneficial if one wants to open up all of the files once the batch job completes (e.g. each file is large, such as 40 GB or greater). Note that the following .bat file should be in the correct directory when double-clicked (e.g. " C:\Program Files\COMSOL\COMSOL52a\Multiphysics\bin\win64\" )
comsolbatch -inputfile C:\myfolder\myfile01.mph -outputfile C:\myfolder\myfile01_OUT.mph -batchlog C:\myfolder\myfile01_log.log
comsolbatch -inputfile C:\myfolder\myfile02.mph -outputfile C:\myfolder\myfile02_OUT.mph -batchlog C:\myfolder\myfile02_log.log
comsolbatch -inputfile C:\myfolder\myfile03.mph -outputfile C:\myfolder\myfile03_OUT.mph -batchlog C:\myfolder\myfile03_log.log
start C:\myfolder\myfile01_OUT.mph
start C:\myfolder\myfile02_OUT.mph
start C:\myfolder\myfile03_OUT.mph