Computational Fluid Dynamics
----------------------------------------------------------------------------------------------------------
|
| |
OpenFOAM
|
| |
Environment modules
|
| |
JDL & script files (sequential mode)
This is an example of JDL file that can be used for testing OpenFoam in sequential mode:
[
Type = "Job";
JobType = "Normal";
Executable = "/bin/bash";
Arguments = "start_openfoam.sh";
StdOutput = "log.out";
StdError = "log.err";
InputSandbox = {"start_openfoam.sh"};
OutputSandbox = {"log.err","log.out","openfoam.log","openfoam.err"};
]
This is the bash script sent in InputSandbox with the JDL file:
#!/bin/sh
echo "+ Running OpenFoam-2.0.1 on "`hostname -f` as `whoami`
echo;echo "+ Copying the OpenFoam example..."
cp -R $FOAM_TUTORIALS/incompressible/icoFoam/cavity $PWD
cd $PWD/cavity
echo; echo "+ Starting at "`date`
blockMesh
icoFoam >./openfoam.log 2>./openfoam.err
cp openfoam.* ../
# Testing the scratch area
cp openfoam.* $VO_GRIDIT_SW_DIR/scratch
chmod a+w $VO_GRIDIT_SW_DIR/scratch/openfoam.*
echo "+ Done at "`date`
|
| |
|
| |
|
| |
|
|