Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Comsol 4.3 working in command line Win7

Please login with a confirmed email address before reporting spam

I'm using Matlab 2012a and Comsol 4.3 under Win7 (x64) and I'm trying to automate the process of opening, exporting and importing an .mph file to comsol server. It is a more complex processing, including Matlab, but I'll try to simplify the steps, in order to get just the commands I need:

Scenario:
1) Start Comsol
2) Open .mph file (File -> Open)
3) Start comsolserver
4) Export model to server (File -> Client Server -> Export Model to Server...)
5) Import model from server (File -> Client Server -> Import Model from Server...)

For the first 3 steps I managed to use:
1+2) comsol -open <filename>
C:\Program Files\COMSOL\COMSOL43\bin\win64>comsol -open E:\filename.mph
[unfortunately with GUI]

3) comsolserver
C:\Program Files\COMSOL\COMSOL43\bin\win64>comsolserver
Port number 2036 was busy, using 2037 instead
COMSOL 4.3 (Build: 151) started listening on port 2037
Use the console command 'close' to exit the application

Is it possible to open a file (step 2) without GUI (as comsol matlab -nodesktop option)? Also, how can I import/export files using Windows command line (steps 4 and 5)?

0 Replies Last Post 19 avr. 2015, 14:26 UTC−4
COMSOL Moderator

Hello Bogdan Mociran

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.

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.