Comsol 6.0 execution from command line interface on linux

Please login with a confirmed email address before reporting spam

I am trying to run a study from the command line interface using the following command:

comsol batch -inputfile angle-sweep.mph -study std1

I expected that this command would have the same effect as opening the file "angle-sweep.mph" with COMSOL's graphical user interface and clicking the button "compute" on the study corresponding to "std1".

However, the result is a considerably different as the result from the command line does not output the tables and solutions as it does when running from the graphical interface.

Is this command not equivalent to just clicking the "compute" from the graphical user interface? If so, how can I achieve this? i.e., from the command line interface, how to emulate a simple click on the "compute" button?

The study has a parameter sweep that should export data from probes to a table, but it also only works for the graphical interface.

I followed the instructions from "COMSOL Reference Manual" in which it recommends to:

  1. "To enable the Batch feature, click the Show More Options button and select Batch";

  2. "Then in the Model Builder, right-click a Study node and select Batch.";

Specifications:

  1. COMSOL version: COMSOL Multiphysics 6.0.0.405

  2. Operational system: Ubuntu 22.04.4 LTS

Thanks in advance for your help!


Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

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.