In order to run Comsol mph files in the batch mode (i.e. solving the model without using the GUI interface) you need an input file (usually with extension .mph) created with COMSOL GUI. Once you have an input file (we use, for eg. busbar.mph in the following example), prepare a batch submission script for COMSOL using the following template (called "runscript_comsol.sh"):
On Mac OS X, controlling the number of processor cores used by COMSOL is only possible when launching COMSOL from the Terminal application. The default behavior is to use all available physical processor cores for the COMSOL Multiphysics application. You can find how many processor cores you have in the System Profiler application, or by using the command sysctl hw.ncpu. You can override the default by using the command line switches. For example, start COMSOL with 2 threads using the command /Applications/COMSOL61/Multiphysics/bin/comsol -np 2.
On Linux the default behavior is to use all available physical cores for the COMSOL Multiphysics application. You can override the default behavior by using the command line switches. For example, start by the command comsol -np 2.
Go to the Config Services page. Change the paths to lmgrd.exe, and license.dat so that they all point to the COMSOL 6.1 installation directory. Starting with the version of the Flexnet distributed with COMSOL Multiphysics 5.4, the permissions where the license manager is allowed to write has been changed. The current recommendation is to store the debug log file, comsol61.log in the directory C:\ProgramData\COMSOL.
Stop the COMSOL license manager: Make the comsol60/multiphysics/license/$arch directory the current directory, where $arch is either glnxa64 (64-bit Linux), glnxarm64 (ARM Linux), maci64 (64-bit macOS), or macarm64 (ARM macOS). Stop the 6.0 license manager with the lmdown command:
As of July 2021, the Department of Chemical Engineering participates in a shared comsol license with other departments across the college and University. The teaching license (CKL) is available to anyone on-campus and does not require any registration or special configuration. The research license (FNL) is limited to registered users only, by Andrew ID. The username on your computer MUST match your Andrew ID. Faculty and PhD students are registered for the research license by default. Anyone else that needs to use this license must request access by sending an email to cheme-c...@andrew.cmu.edu .
4. When prompted for license information, use the drop-down menu labeled license format and select @. Input 1718 for the port number and comsol.andrew.cmu.edu for the host name. Click Next.
Because your /home directory is limited in space, it is a good idea to move and symlink the /.comsol directory to your /data directory, where there is a much largeramount of disk space available. This can be done like this:
COMSOL Multiphysics is built and tested with the above C/C++ compilers. Please note that later versions of those C/C++ compilers may also be compatible with the external C interfaces. When using the COMSOL API for use with Java API in client/server mode with the jar files listed in /bin/comsolclientpath.txt, JRE 8 and 11 are supported. When using the COMSOL API for use with Java API in standalone mode with the jar files listed in /bin/comsolpath.txt, JRE 11 is supported.
Because we only have limited quantities of COMSOL licenses and they are a shared resource, we must use license tracking via Slurm so that you can be sure that a license will be available for you when your batch job starts. Therefore, you must request licenses in your Slurm job script. This is done with the --licenses option. Previously, it was only necessary to request a license for the COMSOL base module (comsol@slurmdb:1). However, since we have fewer licenses for some modules (1) than we have seats for the base COMSOL package (2), we have begun also requiring that users request a license as part of their Slurm job script for required modules as well. If there is only a single license for a module, as indicated in Table 1 above, please use the license specification shown when requesting resources for a Slurm job. For example, to request a license for the COMSOL base package as well as one license for the Structural Mechanics module, please include the following in your job script:
Hi! I'm having some trouble with a clean installation I did on Fedora (Nobara 37). I've used Comsol on Ubuntu Budgie before and I never had any issue but after installing everything as before Comsol doesn't launch., instead it shows the program is opening and then it just closes. For more context, I use hybrid graphics, installed it on /usr/local/ and the .desktop file points to /usr/local/comsol55/multiphysics/bin/glnxa64/comsol
Use the "comsol -help" command to print out the usage information:[lyan1@mike5 ]$ comsol -helpUsage: comsol [options] [target] [target arguments]COMSOL commands: comsol Run COMSOL Multiphysics Desktop comsol batch Run a COMSOL job comsol compile Compile a COMSOL Model java file comsol mphclient Run COMSOL Multiphysics Desktop client comsol mphserver Run COMSOL Multiphysics Server comsol mphserver matlab Run MATLAB with COMSOL Multiphysics Server comsol hydra Run Hydra commands comsol mpd Run MPD commandsCOMSOL options:...
aa06259810