Skip to end of metadata
Go to start of metadata

OpenFOAM, an open source software for computational fluid dynamics (CFD), is available in FGCI.

To use OpenFOAM, add following runtime environment definition to your grid job description file:

(runtimeenvironment="APPS/PHYS/OPENFOAM-5.0")

Below is a sample job description file (openfoam.xrsl) for a parallel OpenFOAM job:

 

&
(executable=runopenfoam.sh)
(jobname=openfoam-test)
(runtimeenvironment="APPS/PHYS/OPENFOAM-5.0")
(stdout=std.out)
(stderr=std.err)
(gmlog=gridlog_1)
(walltime=8h)
(memory=8000)
(count=16)
(inputfiles=
   ( "openfoam41xParTaito.tar" "openfoam41xParTaito.tar" )
)
(outputfiles=
   ( "results.tgz" "results.tgz" )
)

 

The corresponding job script (runopenfoam.sh) could look like following:

#!/bin/bash -l

ls -l
tar xvf openfoam41xParTaito.tar

blockMesh
decomposePar
srun --resv-ports icoFoam -parallel
reconstructPar -latestTime

tar zcf results.tgz 0.5

 

You can run the test job using following commands:

First ownload the sample case

wget https://confluence.csc.fi/download/attachments/71951481/openfoam_example.tgz

Unpack the example file

tar zxvf openfoam_example.tgz

Then move to the openfoam_example directory, set up the grid proxy with command arcproxy and submit the job with command arcsub.

   cd openfoam_example
arcproxy -S fgi.csc.fi
arcsub openfoam.xrls

When the job is submitted you can follow the progress of the job with commands:

  arcstat -a 

and

  arcstat job_id_string

When the job is ready you can retrieve the results with command

  arcget job_id_string

(the job_id_string above should be replaced by the grid URL of the job)

 

 

 

 

 

 

 

 

  • No labels