Discussion Closed This 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.

Batch command

Please login with a confirmed email address before reporting spam

Hi all, this may look as a very basic question but it is taking so much of my time. i am trying to run comsol in bath mode via command line whcih is supposed to be super simple. I keep getting errors on that. this is the command: comsolbatch -inputfile filename.mph -outputfile filename_solved.mph

any hints? your help is much appreciated.

Regards, Asal Bidarmaghz


6 Replies Last Post Feb 2, 2018, 4:42 a.m. EST
Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 6 years ago Feb 1, 2018, 11:04 a.m. EST

Hello Asal,

This blog may help:

https://www.comsol.com/blogs/how-to-run-simulations-in-batch-mode-from-the-command-line/

Best regards,

Jeff

-------------------
Jeff Hiller
Hello Asal, This blog may help: https://www.comsol.com/blogs/how-to-run-simulations-in-batch-mode-from-the-command-line/ Best regards, Jeff

Please login with a confirmed email address before reporting spam

Posted: 6 years ago Feb 1, 2018, 11:21 a.m. EST

Hi Jeff, thank you. this is exactly the blog I followed for the command line.

still get the error.

Regards, Asal

Hi Jeff, thank you. this is exactly the blog I followed for the command line. still get the error. Regards, Asal

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 6 years ago Feb 1, 2018, 11:40 a.m. EST

Without knowing anything about your license, environment or error message, it's hard to tell you more. An educated guess would be that you may not have added the path to the COMSOL executable to your PATH. I would recommend you contact our support team and provide specific details about the error you are getting.

Jeff

-------------------
Jeff Hiller
Without knowing anything about your license, environment or error message, it's hard to tell you more. An educated guess would be that you may not have added the path to the COMSOL executable to your PATH. I would recommend you contact our support team and provide specific details about the error you are getting. Jeff

Please login with a confirmed email address before reporting spam

Posted: 6 years ago Feb 1, 2018, 11:44 a.m. EST

I have contacted them and thank you. in the meantime, I suspect this is it. How should I add the path?

Many thanks, Regards, Asal

I have contacted them and thank you. in the meantime, I suspect this is it. How should I add the path? Many thanks, Regards, Asal

Jeff Hiller COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 6 years ago Feb 1, 2018, 11:50 a.m. EST

It depends on your OS. For Windows, see, e.g., https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/ .

Jeff

-------------------
Jeff Hiller
It depends on your OS. For Windows, see, e.g., https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/ . Jeff

Please login with a confirmed email address before reporting spam

Posted: 6 years ago Feb 2, 2018, 4:42 a.m. EST

Perfect. Many thanks. it worked.

Regards, Asal

Perfect. Many thanks. it worked. Regards, Asal

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