Comsol
Comsol Research
Available Lizenses: 1
> module load comsol/research > comsol
Comsol Teaching
Available Lizenses: 1
> module load comsol/teaching > comsol
Teaching and Research License are for different purposes. The Research License also contains more simulation modules.
New Version 5.4
Papers and Presentations
Using Matlab LiveLink
The command
comsol server matlab
does not work when not executed with root privileges.
This one works (Fedora 22)
comsol server matlab -mlroot /opt/apps/matlab/default/ -graphics
The method described below works on the students PC pool (Fedora 22, 12. Aug. 2015).
Start Comsol server and Matlab
comsol server
# /opt/apps/comsol/comsol51_teaching/bin/comsol server
matlab
In Matlab:
- Add the path of the Matlab Interface directory
- Connect to Comsol
- Import the libraries for setting up Comsol models
addpath('/opt/apps/comsol/comsol51_teaching/mli'); mphstart('localhost', 2036); import com.comsol.model.*; import com.comsol.model.util.*;
The Comsol teaching version is lacking some licence needed for connecting to a remote Comsol server.
Comsol Batch execution
To execute a comsol-'simulation' on the Terminal:
comsol batch -inputfile myfile.mph