

In this example, three comsol mphservers are started, using different ports.

Runscript for multiple LiveLink jobs using the mphserver After starting up the COMSOL server, we recommend to run a sleep command, as the server needs some time before it is ready to communicate with MATLAB. With the -port you can specify the port that is used by the COMSOL server to communicate with MATLAB. Then the COMSOL server is started in the background. Here, the so-called LSF pragma's (#BSUB) are used to specify the resource requirements of the job inside the shell script. Matlab -nodesktop -nodisplay -singleCompThread -r my_matlab_script The best solution for running such a job is to have a runscript (for instance run.sh) that takes care of the multiple steps of the workflow.Ĭomsol server -silent -port 12345 -tmpdir $TMPDIR -login never & In a LiveLink job, you first need to start the COMSOL server and afterwards MATLAB.
Comsol 5.1 sldprt versions software#
New software ~]$ module load ~]$ comsol serverĬOMSOL Multiphysics server 5.6 (Build: 280) started listening on port 2036Īfter specifying the username and password, your setup is ready for COMSOL/MATLAB LiveLink jobs.

Use the console command 'close' to exit the ~]$ Old software ~]$ module load legacy ~]$ comsol serverĬOMSOL 5.1 (Build: 145) Multiphysics Server started listening on port 2036 Therefore you can specify anything for the username and password.
Comsol 5.1 sldprt versions password#
The default settings do not require you to ever enter this password again if you do not enable the option for this. The paths for MATLAB 8.5 and R2020b areĪfterwards, you need to start the COMSOL server on one of the login nodes in interactive mode in order to specify a username and password. Other combinations might also work, but they are not officially supported by COMSOL. Old software stack (environment modules): Please be aware that there are certain combinations of COMSOL and MATLAB, which are officially supported. Make sure that the MATLAB path is set to the Matlab version you would like to use together with COMSOLĪs the COMSOL preferences are saved, this step only needs to be done the first time.In the preferences window, there is a navigation section in the left part.Go to the Options menu in the top of the window and choose preferences.Start up the GUI of COMSOL on one of the login node of the cluster.In order to prepare your setup for LiveLink jobs, you first need to make sure that COMSOL knows, which MATLAB version it is supposed to use: 3 Runscript for multiple LiveLink jobs using the mphserver.
