Skip to end of banner
Go to start of banner

Comsol

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Comsol in the Academic Labs

Comsol in RDSH

Using Comsol in OnDemand


Using Comsol in Batch Mode

More information on managing batch jobs and job scripts in LSF can be found at LSF Scheduler

Your lab might have a specific Comsol license to use, in which case you may need to use a different "module add" command before running Comsol.


A basic batch script for Comsol, that runs on the cpu-compute-long queue, asking for 32 CPU cores and 64GB of RAM:

#BSUB -N
#BSUB -R '(!gpu)'
#BSUB -n 32
#BSUB -R "rusage[mem=64]"
#BSUB -o Output_%J.out #BSUB -e Error_%J.err
#BSUB -J comsolJob
#BSUB -R "span[hosts=1]"
#BSUB -q cpu-compute-long

module add comsol
mkdir /scratch/long/$USER.$LSB_JOBID
comsol batch -np 32 -inputfile wrench.mph -outputfile wrench_out.mph -tmpdir /scratch/long/$USER.$LSB_JOBID -recoverydir /scratch/long/$USER.$LSB_JOBID


The job script above runs Comsol in batch mode, across 32 CPU cores on a single machine. It uses 'wrench.mph' as it's input file, 'wrench_out.mph' as it's output, and puts temporary files under a directory /scratch/long specific to that job's ID number.

It expects to see the input files and will write the output files in whatever directory you submit the job from. 

  • No labels