Page tree
Skip to end of metadata
Go to start of metadata

Download the input file from the File Catalog and download Paraview Software (http://www.paraview.org/) to visualize the result

Download Input File

$ lcg-cp lfn:/grid/academicgrid/umt/pitzDaily-parallel.tar.bz2 file:pitzDaily-parallel.tar.bz2

openfoam.jdl

JobType        = "NORMAL";

Executable     = "pitzdaily.sh";

CPUNumber      = 4;

Arguments      = "";

StdOutput      = "log.out";

StdError       = "log.err";

InputSandbox   = {"pitzDaily-parallel.tar.bz2","pitzdaily.sh"};

OutputSandbox  = {"log.err","log.out","pitzDaily-output.tar.bz2"};

Requirements   = Member("VO-academicgrid-OPENFOAM", other.GlueHostApplicationSoftwareRunTimeEnvironment) && (other.GlueCEStateTotalCPUs >= 4);

pitzdaily.sh

#!/bin/sh

export PATH=$MPI_OPENMPI_PATH/bin:$PATH
export LD_LIBRARY_PATH=$MPI_OPENMPI_PATH/lib:$LD_LIBRARY_PATH

source $VO_ACADEMICGRID_SW_DIR/OpenFOAM/OpenFOAM-2.1.1/etc/bashrc



tar -jxf pitzDaily-parallel.tar.bz2

cd pitzDaily

blockMesh
decomposePar
mpiexec simpleFoam -parallel
reconstructPar
touch pitzDaily.foam
rm -rf processor*
cd ..
tar -jcf pitzDaily-output.tar.bz2 pitzDaily 

  • No labels