Difference between revisions of "OpenFoam"

 
Line 10: Line 10:
 
https://www.openfoam.com/
 
https://www.openfoam.com/
  
'''Binary Location: '''/data/apps/OpenFOAM/IntelMPI/2206/bin/interFoam
+
Binary Location: /data/apps/OpenFOAM/IntelMPI/2206/bin/interFoam
 +
 
 +
Version: 2206
  
'''Version: '''2206
 
  
 
'''Job Script:'''
 
'''Job Script:'''
  
{| class=" wikitable" style="height: 710px;" width="1031"
 
|-
 
||
 
!/bin/bash<br />SBATCH --partition=medium # include the appropriate partition, node, ntasks, ntasks-pernode for the respective SLURM key<br />SBATCH --ntasks=128<br />SBATCH --job-name=OpenFoam<br />SBATCH --mail-user=<br />SBATCH --mail-type=all<br />SBATCH --output vasp.%J.out<br />SBATCH --error vasp.%J.err
 
  
<br />Inputs###<br />modify the appropriate version of the executable<br />export exec_name=/data/apps/OpenFOAM/IntelMPI/2206/bin/interFoam
+
<span style="color: #3366ff;"><span data-contrast="auto">#!/bin/bash</span><span data-ccp-props="{"> </span></span>
 +
 
 +
<span style="color: #3366ff;"><span data-contrast="auto">#SBATCH --partition=medium      # include the appropriate partition, node, ntasks, ntasks-pernode for the respective SLURM key</span><span data-ccp-props="{"> </span></span>
 +
 
 +
<span style="color: #3366ff;"><span data-contrast="auto">#SBATCH --ntasks=128</span><span data-ccp-props="{"> </span></span>
 +
 
 +
<span style="color: #3366ff;"><span data-contrast="auto">#SBATCH --job-name=OpenFoam</span><span data-ccp-props="{"> </span></span>
 +
 
 +
<span style="color: #3366ff;"><span data-contrast="auto">##SBATCH --mail-user=</span><span data-ccp-props="{"> </span></span>
 +
 
 +
<span style="color: #3366ff;"><span data-contrast="auto">##SBATCH --mail-type=all</span><span data-ccp-props="{"> </span></span>
 +
 
 +
<span style="color: #3366ff;"><span data-contrast="auto">#SBATCH --output vasp.%J.out</span><span data-ccp-props="{"> </span></span>
 +
 
 +
<span style="color: #3366ff;"><span data-contrast="auto">#SBATCH --error vasp.%J.err</span><span data-ccp-props="{"> </span></span>
 +
 
 +
<span style="color: #3366ff;" data-ccp-props="{"> </span>
 +
 
 +
<span style="color: #3366ff;"><span data-contrast="auto">###Inputs###</span><span data-ccp-props="{"> </span></span>
 +
 
 +
<span style="color: #3366ff;"><span data-contrast="auto">### modify the appropriate version of the executable</span><span data-ccp-props="{"> </span></span>
 +
 
 +
<span style="color: #3366ff;"><span data-contrast="auto">export exec_name=/data/apps/OpenFOAM/IntelMPI/2206/bin/interFoam</span><span data-ccp-props="{"> </span></span>
 +
 
 +
<span style="color: #3366ff;" data-ccp-props="{"> </span>
 +
 
 +
<span style="color: #3366ff;"><span data-contrast="auto">## keep  the input file on the local directory where this job is launched</span><span data-ccp-props="{"> </span></span>
 +
 
 +
<span style="color: #3366ff;" data-ccp-props="{"> </span>
 +
 
 +
<span style="color: #3366ff;"><span data-contrast="auto">ulimit -s unlimited</span><span data-ccp-props="{"> </span></span>
 +
 
 +
<span style="color: #3366ff;"><span data-contrast="auto">module purge</span><span data-ccp-props="{"> </span></span>
  
 +
<span style="color: #3366ff;"><span data-contrast="auto">module load compiler/2022.0.2 mkl/2022.0.2 mpi/2021.2.0</span><span data-ccp-props="{"> </span></span>
  
keep the input file on the local directory where this job is launched
+
<span style="color: #3366ff;" data-ccp-props="{"> </span>
  
<br />ulimit -s unlimited
+
<span style="color: #3366ff;"><span data-contrast="auto">export I_MPI_FABRICS=shm:ofi</span><span data-ccp-props="{"> </span></span>
  
module purge
+
<span style="color: #3366ff;"><span data-contrast="auto">export UCX_TLS=sm,ud</span><span data-ccp-props="{"> </span></span>
  
module load compiler/2022.0.2 mkl/2022.0.2 mpi/2021.2.0
+
<span style="color: #3366ff;"><span data-contrast="auto">export UCX_NET_DEVICES=mlx5_0:1</span><span data-ccp-props="{"> </span></span>
  
 +
<span style="color: #3366ff;"><span data-contrast="auto">export FI_PROVIDER=mlx</span><span data-ccp-props="{"> </span></span>
  
export I_MPI_FABRICS=shm:ofi
+
<span style="color: #3366ff;"><span data-contrast="auto">export UCX_UNIFIED_MODE=y</span><span data-ccp-props="{"> </span></span>
  
export UCX_TLS=sm,ud
+
<span style="color: #3366ff;"><span data-contrast="auto">export UCX_USE_MT_MUTEX=y</span><span data-ccp-props="{"> </span></span>
  
export UCX_NET_DEVICES=mlx5_0:1
+
<span style="color: #3366ff;" data-ccp-props="{"> </span>
  
export FI_PROVIDER=mlx
+
<span style="color: #3366ff;"><span data-contrast="auto">export OMP_NUM_THREADS=1</span><span data-ccp-props="{"> </span></span>
  
export UCX_UNIFIED_MODE=y
+
<span style="color: #3366ff;"><span data-contrast="auto">#export I_MPI_PIN_ORDER=bunch</span><span data-ccp-props="{"> </span></span>
  
export UCX_USE_MT_MUTEX=y
+
<span style="color: #3366ff;"><span data-contrast="auto">#export I_MPI_PIN_DOMAIN=core</span><span data-ccp-props="{"> </span></span>
  
 +
<span style="color: #3366ff;" data-ccp-props="{"> </span>
  
export OMP_NUM_THREADS=1
+
<span style="color: #3366ff;"><span data-contrast="auto">#Application Execution###</span><span data-ccp-props="{"> </span></span>
  
export I_MPI_PIN_ORDER=bunch<br />export I_MPI_PIN_DOMAIN=core
+
<span style="color: #3366ff;"><span data-contrast="auto">{ time mpiexec.hydra -np $SLURM_NPROCS -genvall  ${exec_name} -parallel ; } > openfoam_${SLURM_JOB_ID}.std.out  2>&1</span><span data-ccp-props="{"> </span></span>
  
<br />Application Execution###<br />{ time mpiexec.hydra -np $SLURM_NPROCS -genvall ${exec_name} -parallel ; } > openfoam_${SLURM_JOB_ID}.std.out 2>&1
+
<span style="color: #3366ff;">'''<span data-contrast="auto">~</span>'''<span data-ccp-props="{"> </span></span>
  
|}
+
<span data-ccp-props="{"> </span>

Latest revision as of 10:23, 14 March 2024

OpenFoam.png
OpenFOAM:

OpenFOAM is the free, open source CFD software developed primarily by OpenCFD Ltd since 2004. It has a large user base across most areas of engineering and science, from both commercial and academic organisations. OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to acoustics, solid mechanics and electromagnetics. More...

OpenFOAM is professionally released every six months to include customer sponsored developments and contributions from the community. It is independently tested by ESI-OpenCFD's Application Specialists, Development Partners and selected customers, and supported by ESI's worldwide infrastructure, values and commitment.

Quality assurance is based on rigorous testing. The process of code evaluation, verification and validation includes several hundred daily unit tests, a medium-sized test battery run on a weekly basis, and large industry-based test battery run prior to new version releases. Tests are designed to assess regression behaviour, memory usage, code performance and scalability.


https://www.openfoam.com/

Binary Location: /data/apps/OpenFOAM/IntelMPI/2206/bin/interFoam

Version: 2206


Job Script:


#!/bin/bash 

#SBATCH --partition=medium      # include the appropriate partition, node, ntasks, ntasks-pernode for the respective SLURM key 

#SBATCH --ntasks=128 

#SBATCH --job-name=OpenFoam 

##SBATCH --mail-user= 

##SBATCH --mail-type=all 

#SBATCH --output vasp.%J.out 

#SBATCH --error vasp.%J.err 

 

###Inputs### 

### modify the appropriate version of the executable 

export exec_name=/data/apps/OpenFOAM/IntelMPI/2206/bin/interFoam 

 

## keep  the input file on the local directory where this job is launched 

 

ulimit -s unlimited 

module purge 

module load compiler/2022.0.2 mkl/2022.0.2 mpi/2021.2.0 

 

export I_MPI_FABRICS=shm:ofi 

export UCX_TLS=sm,ud 

export UCX_NET_DEVICES=mlx5_0:1 

export FI_PROVIDER=mlx 

export UCX_UNIFIED_MODE=y 

export UCX_USE_MT_MUTEX=y 

 

export OMP_NUM_THREADS=1 

#export I_MPI_PIN_ORDER=bunch 

#export I_MPI_PIN_DOMAIN=core 

 

#Application Execution### 

{ time mpiexec.hydra -np $SLURM_NPROCS -genvall  ${exec_name} -parallel ; } > openfoam_${SLURM_JOB_ID}.std.out  2>&1 

~ 

 

Last modified on 14 March 2024, at 10:23