COMSOL 설치 및 SGE 작업 제출 방법






COMSOL 4.3 설치

 

1. cdrompath/setup 명령어로 GUI를 띄우고
New COMSOL 4.3 Installation
을 클릭한다.

< ![if !vml]>< ![endif]>

 

2. 아래와 같이 라이선스 파일을 지정해주고 넥스트를 누른다.

라이선스 서버가 따로 존재할 시에는 License format flexlm 으로 바꿔주고 라이선스 서버를 입력한다.

< ![if !vml]>< ![endif]>

 

3. 설치할 Platforms 을 선택한다.

< ![if !vml]>< ![endif]>

 

 

4. 설치할 모듈들을 선택하고 설치될 디렉토리를 선택한다.

< ![if !vml]>< ![endif]>
5. Matlab
이 설치되어 있는 ROOT 디렉토리를
선택한다. Matlab이 설치되어 있지 않으면 PASS

< ![if !vml]>< ![endif]>

6. Install 을 시작한다.

< ![if !vml]>< ![endif]>

 

Comsol 4.2a
option

Usage: comsol
[options] [target] [target arguments]

COMSOL targets:

   comsol                      
Run COMSOL Multiphysics Desktop

   comsol client               
Run COMSOL Multiphysics Desktop client

   comsol server               
Run COMSOL Multiphysics server

   comsol batch                
Run a COMSOL job

   comsol compile              
Compile a COMSOL Model java file

   comsol server matlab        
Run MATLAB with COMSOL server

   comsol convertpre35a        
Run COMSOL pre 3.5a model converter

   comsol mpd                  
Run MPD commands

COMSOL options:

   -h, -help                   
Show this help message

   -v, -version                
Show version information

   -32                         
Use a 32-bit data model if available

   -64                         
Use a 64-bit data model if available

   -np <number of
processors>   Set number
of processors

   -numasets <number of
sets>   Set number of NUMA
nodes to optimize

                               
  processor usage

   -mpmode <throughput/        
Set multiprocessor mode

           
turnaround/owner>

   -blas
<{auto}/mkl/acml/path  BLAS
library to use

   -blaspath <path>            
Set path to BLAS library

   -ipv6                       
Activate IPv6 support

   -ckl                        
Use class-kit license

   -prefsdir <path>            
Path to preference directory

   -tmpdir <path>              
Path to temporary directory

   -autosave <{on}|off>        
Control saving of recovery files

   -recoverydir <path>         
Path to recovery directories

   -3drend <{ogl}|sw>          
3D renderer: OpenGL or software rendering

   -forcegcc                   
Force load of GCC libraries

   -forcecomsolgcc             
Force load of GCC libraries shipped with COMSOL

   -clustersimple              
Simple startup of cluster

   -nn <no. of nodes>          
Number of nodes

   -nnhost <no. of
nodes>      
Number of nodes on each host

   -mpiroot <path>             
Set path to MPI library

   -mpirsh <path to
command>    Set path
to RSH or SSH command

   -mpi
<{auto}/mpich2/intel/  
MPI library to use. path requires

         
wccs2003/whpc2008/   
environment variable COMSOL_MPI_PATH

         
user/path>           
to be set

   -mpipath <file>             
Set path to MPI library

   -scalapack <{auto}/mkl/      ScaLaPACK
library to use. path requires

         
user/path>           
environment variable COMSOL_SCALAPACK_PATH

                               
to be set

   -scalapackpath <file>       
Set path to ScaLaPACK library

Comsol options:

   -open <filename>            
The input file name

Example:

   comsol -open <filename>

 

Comsol 4.2a 작업제출 스크립트

 

#!/bin/sh

#$ -cwd

#$ -N
JOB-120702154832

#$ -S /bin/sh

#$ -v
ENSH_HOME=/engrid/ensh

#$ -A comsol4

#$ -j y

#$ -wd
/home/admin//JOB-120702154832

#$ -o
.gc/JOB-120702154832_log.out

#$ -V

#$ -p -500

#$ -P prj_admin

#$ -R y

#$ -q
all.q@node002,all.q@node001,all.q@nodemaster01,

#$ -v
DISPLAY=123.215.230.131:0.0

#$ -pe mpich_ef
24

#$ -l comsol=0.04

cp $PE_HOSTFILE
.gc/JOB-120702154832_pe_hostfile

/engrid/ensh/usrbin/jobUpdater
START

/engrid/ensh/bin/swrapper
/APP/COMSOL43/bin/comsol -nn 3 mpd boot -f $TMPDIR/machines

/APP/COMSOL43/bin/comsol
mpd trace -l

/APP/COMSOL43/bin/comsol
-nn 3 -np 8 batch  -inputfile
sss1.mph -outputfile ss2

/APP/COMSOL43/bin/comsol
mpd allexit

/engrid/ensh/usrbin/jobUpdater
END

 

 

 

 

 

 

 

 

 

 

 

 

Comsol 4.3
option

 

Usage: comsol
[options] [target] [target arguments]

COMSOL targets:

   comsol                      
Run COMSOL Multiphysics Desktop

   comsol client               
Run COMSOL Multiphysics Desktop client

   comsol server           
    Run
COMSOL Multiphysics server

   comsol batch                
Run a COMSOL job

   comsol compile              
Compile a COMSOL Model java file

   comsol server matlab        
Run MATLAB with COMSOL server

   comsol convertpre35a        
Run COMSOL pre 3.5a model converter

   comsol hydra                
Run Hydra commands

   comsol mpd                  
Run MPD commands

COMSOL options:

   -h, -help                   
Show this help message

   -v, -version                 Show
version information

   -32                         
Use a 32-bit data model if available

   -64                         
Use a 64-bit data model if available

   -np <number of
processors|   Set number of
processors

       
auto

   -numasets <number of
sets>   Set number of NUMA
nodes to optimize

                               
processor usage

   -numafirst <numa
number>     Set
first NUMA node to bind process to

   -mpmode <throughput|        
Set multiprocessor mode

           
turnaround|owner>

   -blas <{auto}|mkl|acml|      BLAS library
to use

          
path>

   -blaspath <path>            
Set path to BLAS library

   -ipv6                       
Activate IPv6 support

   -ckl                        
Use class-kit license

   -prefsdir <path>            
Path to preference directory

   -tmpdir <path>              
Path to temporary directory

   -autosave <{on}|off>        
Control saving of recovery files

   -recoverydir <path>         
Path to recovery directories

   -3drend <{ogl}|sw>          
3D renderer: OpenGL or software rendering

   -forcegcc                   
Force load of GCC libraries

   -forcecomsolgcc             
Force load of GCC libraries shipped with COMSOL

   -clustersimple              
Simple startup of cluster

   -nn <no. of nodes>          
Number of nodes

   -nnhost <no. of
nodes>      
Number of nodes on each host

   -f <path>                   
Set path to hostfile

   -mpiroot <path>             
Set path to MPI library

   -mpibootstrap
<{ssh}|rsh|    Set bootstrap
server (for Hydra)

                  
fork|slurm|

                  
ll|lsf|sge|>

                  
jmi>

   -mpibootstrapexec
<path>    
Set executable used by bootstrap server

   -mpienablex                 
Enable Xlib forwarding

   -mpd                         Use
MPD instead of Hydra launcher in MPI

   -mpirsh <path to
command>    Set path
to RSH or SSH command (for MPD)

   -mpi
<{auto}|mpich2|intel|  
MPI library to use. path requires

         
wccs2003|whpc2008|   
environment variable COMSOL_MPI_PATH

         
user|path>           
to be set

   -mpipath <file>             
Set path to MPI library

   -scalapack <{auto}|mkl|      ScaLaPACK
library to use. path requires

               
user|path>      environment
variable COMSOL_SCALAPACK_PATH

                               
to be set

   -scalapackpath <file>       
Set path to ScaLaPACK library

Comsol options:

   -open <filename>            
The input file name

Example:

   comsol -open <filename>

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Comsol 4.3 작업제출 스크립트

 

#!/bin/sh

#$ -cwd

#$ -N
JOB-120702170412_1

#$ -S /bin/sh

#$ -v
ENSH_HOME=/engrid/ensh

#$ -A comsol4

#$ -j y

#$ -wd
/home/admin//JOB-120702170412_1

#$ -o
.gc/JOB-120702170412_1_log.out

#$ -V

#$ -p -500

#$ -P prj_admin

#$ -R y

#$ -q all.q@node001,all.q@node002,all.q@nodemaster01,

#$ -v
DISPLAY=123.215.230.131:0.0

#$ -pe mpich_ef
24

#$ -l comsol=0.04

cp $PE_HOSTFILE
.gc/JOB-120702170412_1_pe_hostfile

/engrid/ensh/usrbin/jobUpdater
START

/engrid/ensh/bin/swrapper
/APP/COMSOL43/bin/comsol -nn 3 mpd boot -f $TMPDIR/machines

/APP/COMSOL43/bin/comsol
mpd trace -l

/APP/COMSOL43/bin/comsol
-nn 3 -np 8 batch -mpd -inputfile sss1.mph -outputfile ss2

/APP/COMSOL43/bin/comsol
mpd allexit

/engrid/ensh/usrbin/jobUpdater
END

 

서진우

슈퍼컴퓨팅 전문 기업 클루닉스/ 상무(기술이사)/ 정보시스템감리사/ 시스존 블로그 운영자

You may also like...

페이스북/트위트/구글 계정으로 댓글 가능합니다.