Discussion ClosedThis discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one,click here.

Using Batch File on COMSOL

Please login with a confirmed email address before reporting spam

Hello, I am running COMSOL 6.1 and am attempting to run a series of time dependent heat transfer studies using a batch file in the command window. It seems to recognize the batch file, but it gives following error: 'comsolbatch' is not recognized as an internal or external command, operable program or batch file.

The batch file contains the following:

comsolbatch -inputfile Test1.mph -outputfile Test1_solved.mph comsolbatch -inputfile Test2.mph -outputfile Test2_solved.mph

Any help would be appreciated. Thanks.


1 Reply Last Post 2023年11月2日 GMT+1 01:51
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 10 months ago 2023年11月2日 GMT+1 01:51
Updated: 10 months ago 2023年11月2日 GMT+1 13:29

Hi Amari,

You need to add the path to the COMSOL executables to the Windows path environment variable. See theblog postdated December 20, 2016 for more info on this topic.

Jeff

-------------------
Jeff Hiller
Hi Amari, You need to add the path to the COMSOL executables to the Windows path environment variable. See the [blog post](https://www.comsol.com/blogs/how-to-run-simulations-in-batch-mode-from-the-command-line/) dated December 20, 2016 for more info on this topic. Jeff

Note that while COMSOL employees may participate in the discussion forum, COMSOL®software users who are on-subscription should submit their questions via theSupport Centerfor a more comprehensive response from the Technical Support team.

Baidu
map