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

Compare with Current View Page History

« Previous Version 7 Next »

OpenFOAM at a glance

Purpose: Computational Fluid Dynamics
Latest version: 5.0
Licence: GNU GPL
Documentation: User's Guide

OpenFOAM is a software environment for computational fluid dynamics (CFD) and related computations.

OpenFOAM provides a C++ library and tools for setting up, meshing, solving, computing properties, and post-processing continuum mechanics, especially computational fluid dynamics. OpenFOAM includes solvers for a number of applications and provides an environment in which users can build their own.

 


 

Benchmark

OpenFOAM benchmark at Pirineus

Actual speed-up (green) and ideal speed-up (blue) vs. number of cores for a calculation (motorBike tutorial) with OpenFOAM 2.0.0 involving 60·106 elements, simpleFOAM solver.

 


 

SLURM Submit script example

For more information use the Job Script Generator.

adf_example.slm
#!/bin/bash
#SBATCH -J ofoam_example
#SBATCH -e ofoam_example.err
#SBATCH -o ofoam_example.out
#SBATCH -p std
#SBATCH --nodes=1
#SBATCH --ntasks=1
#SBATCH --cpus-per-task=1
#SBATCH --mem=4G

module load apps/openfoam/5.0
source config_OF 1606
 
INPUT_DIR=${PWD}
OUTPUT_DIR=${PWD}

cd $TMPDIR
cp -r $INPUT_DIR $TMPDIR
mpirun -np $t [yoursolver] > log
reconstructPar
cp ./* $OUTPUT_DIR

 

 


 

  • No labels