...
No Format |
---|
module load comsol/4.3-withMatlab2011a comsol |
Serial batch run
cd ~/data
cp /sw/comsol/4.3/models/COMSOL_Multiphysics/Quantum_Mechanics/conical_quantum_dot.mph .
No Format |
---|
module load comsol/4.3 comsol batch -inputfile model_in~/data/conical_quantum_dot.mph -outputfile modelconical_quantum_dot_out.mph |
##model_in.mph is the name of your model. Change it to your model name. If output model name is not specified, results will be written to the model specified in input switch
...
No Format |
---|
#PBS -m abe #PBS -M emailID@griffith.edu.au #PBS -N TestRun_Comsol #PBS -l select=1:ncpus=1:mem=7g,walltime=24:00:00 cd $PBS_O_WORKDIR module load comsol/4.361 comsol batch -inputfile model_in~/data/conical_quantum_dot.mph -outputfile modelconical_quantum_dot_out.mph |
Batch run- parallel
...
No Format |
---|
##!/bin/bash #PBS -m abe #PBS -M YourEmail@griffith.edu.au #PBS -N ParallelComsol #PBS -l select=1:ncpus=4:mpiprocs=4:mem=7g,walltime=24:00:00 ## The number of chunks is given by the select =<NUM > above CHUNKS=1 ###$PBS_NODEFILE is a node-list file created with select and mpiprocs options by PBS ###### The number of threads available is ncpus * CHUNKS (=NPROCS) NPROCS=4 cd $PBS_O_WORKDIR module load comsol/6.161 export COMSOL_NUM_THREADS=$NPROCS comsol batch -np $NPROCS -inputfile model_in~/data/conical_quantum_dot.mph -outputfile modelconical_quantum_dot_out.mph |
Comsol in Matlab
As we use the command "comsol server" , it needs to record your username. So before you could run any batch jobs, you will have to do this once. From gowonda console, type
...