Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Line: 12 to 12 | ||||||||
OpenFOAM (Open Field Operation and Manipulation) CFD Toolbox is a free, open source CFD software package produced by a commercial company, OpenCFD Ltd. It has a large user base across most areas of engineering and science, from both commercial and academic organizations. | ||||||||
Changed: | ||||||||
< < | OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics and electro-magnetics. This wiki provides information on how to build OpenFOAM in a grid-based infrastructure. | |||||||
> > | OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics and electro-magnetics. This wiki provides information on how to build OpenFOAM in a grid-based infrastructure. Here are provided two examples of configuration: the first using an mpi embedded version, the second a system version of mpi library. | |||||||
System requirements | ||||||||
Line: 773 to 773 | ||||||||
}
</> <--/twistyPlugin--> | ||||||||
Added: | ||||||||
> > |
An alternative installation with external MPI. | |||||||
ReferencesOpenFOAM: The open source CFD toolbox |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Line: 780 to 780 | ||||||||
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
About this wiki | ||||||||
Changed: | ||||||||
< < | The following best practices document aims to provide some hints and examples on how to install and configure OpenFOAM-2.0.1 released 04/08/11 on a grid based infrastructure. | |||||||
> > |
| |||||||
Application Description | ||||||||
Line: 14 to 16 | ||||||||
System requirements | ||||||||
Changed: | ||||||||
< < | The instructions from this best practice have been tested on a: | |||||||
> > | The instructions from this best practice have been tested on a grid computing cluster having the following configuration: | |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Downloading source | ||||||||
Line: 773 to 776 | ||||||||
ReferencesOpenFOAM: The open source CFD toolbox | ||||||||
Added: | ||||||||
> > | Running OpenFOAM in parallel on the grid: CFD in the study of cardiovascular disease | |||||||
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Line: 463 to 463 | ||||||||
Creation of a new MPI wrapper | ||||||||
Changed: | ||||||||
< < | Add in /opt/i2g/etc/mpi-start/ the definition of a new MPI wrapper for OpenFoam-2.0.1. | |||||||
> > | Add in /etc/mpi-start/ the definition of a new MPI wrapper for OpenFoam-2.0.1. | |||||||
This wrapper has to be replicated in all the LSF client nodes.
| ||||||||
Line: 613 to 613 | ||||||||
echo "+ Done at "`date` | ||||||||
Deleted: | ||||||||
< < | Submission$ glite-wms-job-submit -a -r grid012.ct.infn.it:2119/jobmanager-lcglsf-short -e https://wmsdecide.dir.garr.it:7443/glite_wms_wmproxy_server -o jobID openfoam-2.0.1.jdl Connecting to the service https://wmsdecide.dir.garr.it:7443/glite_wms_wmproxy_server ===================== glite-wms-job-submit Success ===================== The job has been successfully submitted to the WMProxy Your job identifier is: https://lb-4.dir.garr.it:9000/vUAJk3Sq3xBnviahz7HSqg The job identifier has been saved in the following file: /home/larocca/OpenFoam-2.0.1/jobID ===================================================================== Checking Status$ glite-wms-job-status --noint -i jobID ====================== glite-wms-job-status Success ==================== BOOKKEEPING INFORMATION: Status info for the Job : https://lb-4.dir.garr.it:9000/vUAJk3Sq3xBnviahz7HSqg Current Status: Done (Success) Exit code: 0 Status Reason: Job terminated successfully Destination: grid012.ct.infn.it:2119/jobmanager-lcglsf-short Submitted: Fri Dec 2 16:59:56 2011 CET ===================================================================== Downloading Results$ glite-wms-job-output --dir . --noint -i jobID Connecting to the service https://wmsdecide.dir.garr.it:7443/glite_wms_wmproxy_server =============================================================================== JOB GET OUTPUT OUTCOME Output sandbox files for the job: https://lb-4.dir.garr.it:9000/vUAJk3Sq3xBnviahz7HSqg have been successfully retrieved and stored in the directory: /home/larocca/OpenFoam-2.0.1/larocca_vUAJk3Sq3xBnviahz7HSqg ================================================================================ | |||||||
JDL & script files (parallel mode)This is an example of JDL file that can be used for testing OpenFoam in parallel mode: | ||||||||
Line: 676 to 625 | ||||||||
Arguments = "icoFoam OPENMPI_OPENFOAM"; StdOutput = "mpi-start.out"; StdError = "mpi-start.err"; | ||||||||
Changed: | ||||||||
< < | InputSandbox = {"mpi-start-wrapper.sh","bei-hooks.sh","cavity.tar.gz"}; | |||||||
> > | InputSandbox = {"mpi-start-wrapper.sh","bei-hooks.sh"}; | |||||||
OutputSandbox = {"mpi-start.err","mpi-start.out","results.tgz"}; Environment = {"I2G_MPI_PRE_RUN_HOOK=./bei-hooks.sh","I2G_MPI_POST_RUN_HOOK=./bei-hooks.sh"}; Requirements = Member("VO-gridit-OpenFoam-2.0.1",other.GlueHostApplicationSoftwareRunTimeEnvironment); | ||||||||
Line: 763 to 712 | ||||||||
echo echo "=[PRE_RUN_HOOK] Started" echo "- Downloading tar archive from SE..." | ||||||||
Changed: | ||||||||
< < | #echo lcg-cp --vo $OUTPUT_VO $OUTPUT_SE/pitz.tgz file:$PWD/pitz.tgz #lcg-cp --vo $OUTPUT_VO $OUTPUT_SE/pitz.tgz file:$PWD/pitz.tgz | |||||||
> > | echo lcg-cp --vo $OUTPUT_VO $OUTPUT_SE/cavity.tar.gz file:$PWD/cavity.tar.gz lcg-cp --vo $OUTPUT_VO $OUTPUT_SE/cavity.tar.gz file:$PWD/cavity.tar.gz | |||||||
tar zxf cavity.tar.gz echo;echo "- Summarizing disk usage of each FILE, recursively for directories" du -h cavity | ||||||||
Line: 787 to 736 | ||||||||
# copy the results data on master node CMD="scp -r $1:\"$PWD\" .." | ||||||||
Deleted: | ||||||||
< < | #CMD="scp -r $1:\"$PWD\" ./$1" | |||||||
echo "- Copying file from remote host [" $1 "]" echo $CMD $CMD | ||||||||
Line: 795 to 743 | ||||||||
post_run_hook () { echo "=[POST_RUN_HOOK] Started" | ||||||||
Deleted: | ||||||||
< < | #echo "post_run_hook called" | |||||||
if [ "x$MPI_START_SHARED_FS" == "x0" ] ; then echo "- Gathering output results from remote hosts [FS=0]" | ||||||||
Line: 810 to 757 | ||||||||
echo; echo "- Listing the contents of directories in a tree-like format" tree -L 3 echo "- Packing the final results data" | ||||||||
Deleted: | ||||||||
< < | #cd $OUTPUT_DIR | |||||||
cd .. tar czf $OUTPUT_ARCHIVE $OUTPUT_DIR if [ $? -eq 0 ] ; then |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Line: 23 to 23 | ||||||||
| ||||||||
Added: | ||||||||
> > | Downloading source<--/twistyPlugin twikiMakeVisibleInline--> | |||||||
Source PackThe following tar-zipped gtgz source packs are available for download. | ||||||||
Line: 51 to 61 | ||||||||
drwxr-xr-x 11 sgmgridit001 sgmgridit 440 Nov 28 16:17 OpenFOAM-2.0.1 drwxr-xr-x 12 sgmgridit001 sgmgridit 768 Nov 28 15:57 ThirdParty-2.0.1 | ||||||||
Added: | ||||||||
> > | <--/twistyPlugin--> Before to start<--/twistyPlugin twikiMakeVisibleInline--> | |||||||
System Requirements | ||||||||
Line: 85 to 106 | ||||||||
$ wget ftp://ftp.ntua.gr/pub/linux/scientificlinux/55/x86_64/SL/gcc44-c++-4.4.0-6.el5.x86_64.rpm $ rpm -ivh gcc44-c++-4.4.0-6.el5.x86_64.rpm | ||||||||
Added: | ||||||||
> > | <--/twistyPlugin--> | |||||||
Qt-4.6.4 installation%TWISTY{ | ||||||||
Line: 179 to 201 | ||||||||
</> <--/twistyPlugin--> | ||||||||
Added: | ||||||||
> > | Pre-setup<--/twistyPlugin twikiMakeVisibleInline--> | |||||||
Pre-setup requirements | ||||||||
Line: 203 to 235 | ||||||||
| ||||||||
Added: | ||||||||
> > | <--/twistyPlugin--> Before building...<--/twistyPlugin twikiMakeVisibleInline--> | |||||||
Checking the System | ||||||||
Line: 225 to 268 | ||||||||
==============
Continue OpenFOAM installation.
| ||||||||
Added: | ||||||||
> > | <--/twistyPlugin--> Start building...<--/twistyPlugin twikiMakeVisibleInline--> | |||||||
Building Sources | ||||||||
Line: 275 to 329 | ||||||||
$ ./Allwclean $. /Allwmake | ||||||||
Added: | ||||||||
> > | <--/twistyPlugin--> Testing OpenFOAM<--/twistyPlugin twikiMakeVisibleInline--> | |||||||
Testing the Installation | ||||||||
Line: 402 to 467 | ||||||||
This wrapper has to be replicated in all the LSF client nodes.
| ||||||||
Changed: | ||||||||
< < | $ cat /opt/i2g/etc/mpi-start/openmpi_openfoam.mpi | |||||||
> > | $ cat /etc/mpi-start/openmpi_openfoam.mpi | |||||||
#!/bin/sh # # Copyright (c) 2006-2007 High Performance Computing Center Stuttgart, | ||||||||
Line: 606 to 671 | ||||||||
[ JobType = "NORMAL"; | ||||||||
Changed: | ||||||||
< < | CPUNumber = 4; | |||||||
> > | CPUNumber = 4; | |||||||
Executable = "mpi-start-wrapper.sh"; | ||||||||
Changed: | ||||||||
< < | Arguments = "icoFoam OPENMPI_OPENFOAM"; | |||||||
> > | Arguments = "icoFoam OPENMPI_OPENFOAM"; | |||||||
StdOutput = "mpi-start.out"; StdError = "mpi-start.err"; | ||||||||
Changed: | ||||||||
< < | InputSandbox = {"mpi-start-wrapper.sh","mpi-hooks.sh","cavity.tar.gz"}; OutputSandbox = {"mpi-start.err","mpi-start.out","result"}; Requirements = Member("VO-gridit-OpenFoam-2.0.1",other.GlueHostApplicationSoftwareRunTimeEnvironment); | |||||||
> > | InputSandbox = {"mpi-start-wrapper.sh","bei-hooks.sh","cavity.tar.gz"}; OutputSandbox = {"mpi-start.err","mpi-start.out","results.tgz"}; Environment = {"I2G_MPI_PRE_RUN_HOOK=./bei-hooks.sh","I2G_MPI_POST_RUN_HOOK=./bei-hooks.sh"}; Requirements = Member("VO-gridit-OpenFoam-2.0.1",other.GlueHostApplicationSoftwareRunTimeEnvironment); | |||||||
] | ||||||||
Changed: | ||||||||
< < | MPI wrappers are shown below: | |||||||
> > | MPI wrapper and hooks are shown below: | |||||||
$ cat mpi-start-wrapper.sh | ||||||||
Line: 646 to 712 | ||||||||
export I2G_MPI_APPLICATION=$MY_EXECUTABLE export I2G_MPI_APPLICATION_ARGS="-parallel" export I2G_MPI_TYPE=$MPI_FLAVOR_LOWER | ||||||||
Changed: | ||||||||
< < | export I2G_MPI_PRE_RUN_HOOK=mpi-hooks.sh export I2G_MPI_POST_RUN_HOOK=mpi-hooks.sh | |||||||
> > | export I2G_MPI_PRE_RUN_HOOK=$PWD/bei-hooks.sh export I2G_MPI_POST_RUN_HOOK=$PWD/bei-hooks.sh export I2G_MPI_START_HOOKS_LOCAL=bei-hooks.sh | |||||||
export I2G_MPI_FILE_DIST="ssh" # If these are set then you will get more debugging information. export I2G_MPI_START_VERBOSE=1 | ||||||||
Added: | ||||||||
> > | export I2G_MPI_START_TRACE=1 | |||||||
export I2G_MPI_START_DEBUG=1 # Invoke mpi-start. $I2G_MPI_START | ||||||||
Added: | ||||||||
> > | source $I2G_MPI_START_HOOKS_LOCAL | |||||||
Deleted: | ||||||||
< < | ||||||||
Changed: | ||||||||
< < | $ cat mpi-hooks.sh | |||||||
> > | $ cat bei-hooks.sh | |||||||
#!/bin/sh | ||||||||
Added: | ||||||||
> > | export OUTPUT_DIR=cavity export OUTPUT_ARCHIVE=results.tgz export OUTPUT_SE=lfn:/grid/gridit/ebogdan export OUTPUT_VO=gridit export STORAGE_HOST=atlasse.lnf.infn.it export JOBID=$(echo ${GRID_JOBID} | awk '{ l=length($1); s=substr($1,l-21); print s }') export GLOBUS_TCP_PORT_RANGE=20000,25000 export MPI_START_SHARED_FS=0 | |||||||
Deleted: | ||||||||
< < | # # This function will be called before the MPI executable is started. # You can, for example, compile the executable itself. # | |||||||
pre_run_hook () { | ||||||||
Changed: | ||||||||
< < | # Compile the program. #echo "Compiling ${I2G_MPI_APPLICATION}" #debug_msg "LIST : $LSB_HOSTS" # Actually compile the program. #cmd="mpicc ${MPI_MPICC_OPTS} -o ${I2G_MPI_APPLICATION} ${I2G_MPI_APPLICATION}.c" #echo $cmd #$cmd #if [ ! $? -eq 0 ]; then # echo "Error compiling program. Exiting..." # exit 1 #fi #chmod +x ${I2G_MPI_APPLICATION} # Everything's OK. #echo "Successfully compiled ${I2G_MPI_APPLICATION}" # PRE OPENFOAM | |||||||
> > | echo;echo "==============================================================" echo "- Starting OpenFoam (ver.2.0.1) ~ the Open Source CFD toolbox " echo echo "OpenFOAM (Open Source Field Operation and Manipulation) is a C++" echo "toolbox for the development of customized numerical solvers and" echo "pre-/post-processing utilities for the solution of continuum" echo "mechanics problems, including computational fluid dynamics (CFD)." echo "Official OpenFOAM web site http://www.openfoam.com/" echo echo "- [Job settings]" echo "- JOBID="$JOBID echo "- MPI_START_SHARED_FS="$MPI_START_SHARED_FS echo "- MPI_SHARED_HOME="$MPI_SHARED_HOME echo "- MPI_SHARED_HOME_PATH="$MPI_SHARED_HOME_PATH echo "- OUTPUT_DIR="$OUTPUT_DIR echo "- OUTPUT_ARCHIVE="$OUTPUT_ARCHIVE echo "- OUTPUT_VO="$OUTPUT_VO echo "- STORAGE_HOST="$STORAGE_HOST | |||||||
echo | ||||||||
Changed: | ||||||||
< < | echo "========================================" echo "******This is my working directory******" echo "========================================" tar zxvf cavity.tar.gz cd cavity | |||||||
> > | echo "=[PRE_RUN_HOOK] Started" echo "- Downloading tar archive from SE..." #echo lcg-cp --vo $OUTPUT_VO $OUTPUT_SE/pitz.tgz file:$PWD/pitz.tgz #lcg-cp --vo $OUTPUT_VO $OUTPUT_SE/pitz.tgz file:$PWD/pitz.tgz tar zxf cavity.tar.gz echo;echo "- Summarizing disk usage of each FILE, recursively for directories" du -h cavity cd $OUTPUT_DIR echo;echo "=[blockMesh] ===========================================" | |||||||
blockMesh | ||||||||
Added: | ||||||||
> > | echo;echo "=[decomposePar] ========================================" | |||||||
decomposePar | ||||||||
Changed: | ||||||||
< < | echo "========================================" | |||||||
> > | echo "=[PRE_RUN_HOOK] Finished" | |||||||
return 0 } | ||||||||
Changed: | ||||||||
< < | # # This function will be called before the MPI executable is finished. # A typical case for this is to upload the results to a storage element. # post_run_hook () { echo "Executing post hook." echo "Finished the post hook." return 0 | |||||||
> > | # the first parameter is the name of a host in the
copy_from_remote_node() {
if $1 = `hostname -a` || $1 = `hostname -f` || $1 == "localhost"; then
echo "I skip the local host: " $1
return 1
fi
# copy the results data on master node
CMD="scp -r $1:\"$PWD\" .."
#CMD="scp -r $1:\"$PWD\" ./$1"
echo "- Copying file from remote host [" $1 "]"
echo $CMD
$CMD | |||||||
} | ||||||||
Deleted: | ||||||||
< < | ||||||||
Added: | ||||||||
> > | post_run_hook () {
echo "=[POST_RUN_HOOK] Started"
#echo "post_run_hook called"
if [ "x$MPI_START_SHARED_FS" == "x0" ] ; then
echo "- Gathering output results from remote hosts [FS=0]"
mpi_start_foreach_host copy_from_remote_node
fi
echo; echo "- Working directory => "$PWD
echo "- Listing data from the master [ "`hostname -f`" ] node..."
ls -al $PWD
echo; echo "- Summarizing disk usage of each FILE, recursively for directories"
du -h $PWD
echo; echo "- Listing the contents of directories in a tree-like format"
tree -L 3
echo "- Packing the final results data"
#cd $OUTPUT_DIR
cd ..
tar czf $OUTPUT_ARCHIVE $OUTPUT_DIR
if [ $? -eq 0 ] ; then
echo;echo "- Uploading the data to the grid SE"
echo lcg-cr --vo $OUTPUT_VO -d $STORAGE_HOST -l $OUTPUT_SE/results_$JOBID.tgz file:$PWD/$OUTPUT_ARCHIVE
lcg-cr --vo $OUTPUT_VO -d $STORAGE_HOST -l $OUTPUT_SE/results_$JOBID.tgz file:$PWD/$OUTPUT_ARCHIVE
else echo "=[ERROR ] Some problems occurred during packing of data. Please, check log file for more details"
fi
echo "=[POST_RUN_HOOK] Finished"
return 0
}
<--/twistyPlugin--> | |||||||
ReferencesOpenFOAM: The open source CFD toolbox |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > | se
| |||||||
About this wiki | ||||||||
Line: 17 to 17 | ||||||||
The instructions from this best practice have been tested on a:
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
| ||||||||
Added: | ||||||||
> > |
| |||||||
Source Pack | ||||||||
Line: 85 to 86 | ||||||||
$ rpm -ivh gcc44-c++-4.4.0-6.el5.x86_64.rpm | ||||||||
Added: | ||||||||
> > | Qt-4.6.4 installation<--/twistyPlugin twikiMakeVisibleInline--> | |||||||
Building Qt-4.6.4First uncompress the archive in the preferred location, then unpack it: | ||||||||
Line: 98 to 109 | ||||||||
$ ./configure $ gmake && gmake install | ||||||||
Added: | ||||||||
> > | <--/twistyPlugin--> cmake installation<--/twistyPlugin twikiMakeVisibleInline--> | |||||||
Building cmake-2.8.6 | ||||||||
Line: 109 to 131 | ||||||||
$ ./configure $ gmake | ||||||||
Added: | ||||||||
> > | <--/twistyPlugin--> Configuring the Makefile<--/twistyPlugin twikiMakeVisibleInline--> | |||||||
Makefile changes for GNU compilers | ||||||||
Line: 144 to 177 | ||||||||
LINKLIBSO = $(CC) $(c++FLAGS) -shared LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed | ||||||||
Added: | ||||||||
> > | <--/twistyPlugin--> | |||||||
Pre-setup requirements |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Line: 12 to 12 | ||||||||
It has a large user base across most areas of engineering and science, from both commercial and academic organizations. OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics and electro-magnetics. This wiki provides information on how to build OpenFOAM in a grid-based infrastructure. | ||||||||
Changed: | ||||||||
< < | Pre-requisites | |||||||
> > | System requirements | |||||||
The instructions from this best practice have been tested on a:
| ||||||||
Changed: | ||||||||
< < |
| |||||||
> > |
| |||||||
Source Pack |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
Deleted: | ||||||||
< < | About this wiki | |||||||
| ||||||||
Added: | ||||||||
> > | About this wiki | |||||||
The following best practices document aims to provide some hints and examples on how to install and configure OpenFOAM-2.0.1 released 04/08/11 on a grid based infrastructure.
Application DescriptionOpenFOAM (Open Field Operation and Manipulation) CFD Toolbox is a free, open source CFD software package produced by a commercial company, OpenCFD Ltd. | ||||||||
Changed: | ||||||||
< < | It has a large user base across most areas of engineering and science, from both commercial and academic organizations. OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics and electro-magnetics. This wiki provides information on how to build OpenFOAM in a grid-based infrastructure. | |||||||
> > | It has a large user base across most areas of engineering and science, from both commercial and academic organizations. OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics and electro-magnetics. This wiki provides information on how to build OpenFOAM in a grid-based infrastructure. | |||||||
Pre-requisites | ||||||||
Line: 208 to 208 | ||||||||
Compiling Paraview 3.10.1 and the PV3FoamReader Module | ||||||||
Changed: | ||||||||
< < | Paraview is the third-party software that we provide for graphical post-processing in OpenFOAM. It’s compilation is automated using a script called makeParaView | |||||||
> > | Paraview is the third-party software that we provide for graphical post-processing in OpenFOAM. It’s compilation is automated using a script called makeParaView | |||||||
in the ThirdParty-2.0.1 directory.
Installation of Paraview 3.10.1 requires a version of QT that is 3.6.2 or newer and cmake which is 2.8.2 or newer, so again make sure that this is on your system. |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
About this wiki | ||||||||
Line: 682 to 682 | ||||||||
OpenFOAM: The open source CFD toolbox
| ||||||||
Added: | ||||||||
> > |
|
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
About this wiki | ||||||||
Line: 270 to 270 | ||||||||
$ paraFoam | ||||||||
Changed: | ||||||||
< < | Post-configuration on the LSF node | |||||||
> > | Running OpenFOAM in Parallel | |||||||
Changed: | ||||||||
< < | Add in the etc_bashrc file the following settings for sourcing the OpenFOAM bashrc profile | |||||||
> > | Create a new use caseThe results from the previous example are generated using a fairly coarse mesh. In this new case we will demonstrate the parallel processing capability of OpenFOAM access to multiple processors.$ cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity/system $ cat decomposeParDict /*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 1.6 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; location "system"; object decomposeParDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // numberOfSubdomains 4; <== Change Here! method scotch; simpleCoeffs { n ( 2 2 1 ); delta 0.001; } hierarchicalCoeffs { n ( 1 1 1 ); delta 0.001; order xyz; } scotchCoeffs { processorWeights ( 1 <== Add Here! 1 <== Add Here! 1 <== Add Here! 1 <== Add Here! ); } manualCoeffs { dataFile ""; } distributed no; roots ( ); // ************************************************************************* //Create a new tar of the test case: $ tar zcvf cavity.tar.gz cavity cavity/ cavity/system/ cavity/system/fvSchemes cavity/system/fvSolution cavity/system/controlDict cavity/system/decomposeParDict cavity/constant/ cavity/constant/transportProperties cavity/constant/polyMesh/ cavity/constant/polyMesh/boundary cavity/constant/polyMesh/blockMeshDict cavity/0/ cavity/0/U cavity/0/p Testing OpenFOAM in a Grid InfrastructureThis section provides some hints for testing OpenFOAM job on the GRIDIT Infrastructure.Post-configuration on the LSF master node and client nodesAdd in the /etc/bashrc file the following settings for sourcing the OpenFoam bashrc profile | |||||||
. /opt/exp_soft/gridit/OpenFOAM/OpenFOAM-2.0.1/etc/bashrc | ||||||||
Changed: | ||||||||
< < | Testing OpenFOAM in a Grid Infrastructure | |||||||
> > | Creation of a new MPI wrapper | |||||||
Changed: | ||||||||
< < | This section describes a test submission of a serial OpenFOAM job on the GRIDIT Infrastructure. | |||||||
> > | Add in /opt/i2g/etc/mpi-start/ the definition of a new MPI wrapper for OpenFoam-2.0.1. This wrapper has to be replicated in all the LSF client nodes. | |||||||
Changed: | ||||||||
< < | JDL & script files | |||||||
> > | $ cat /opt/i2g/etc/mpi-start/openmpi_openfoam.mpi #!/bin/sh # # Copyright (c) 2006-2007 High Performance Computing Center Stuttgart, # University of Stuttgart. All rights reserved. # (c) 2009 Instituto de Fisica de Cantabria - CSIC. # # specifies where Open MPI is installed export MPI_OPENMPI_PATH=/opt/exp_soft/gridit/OpenFOAM/ThirdParty-2.0.1/platforms/linux64Gcc44/openmpi-1.5.3/ export MPI_OPENMPI_MPIEXEC=/opt/exp_soft/gridit/OpenFOAM/ThirdParty-2.0.1/platforms/linux64Gcc44/openmpi-1.5.3/bin/mpiexec if test "x$I2G_OPENMPI_PREFIX" = "x" ; then if test "x$MPI_OPENMPI_PATH" = "x" ; then if test "x$MPI_START_MPI_PREFIX" != "x" ; then export I2G_OPENMPI_PREFIX=$MPI_START_MPI_PREFIX else export I2G_OPENMPI_PREFIX=/opt/i2g/openmpi debug_msg "use default installtion : $I2G_OPENMPI_PREFIX" fi else export I2G_OPENMPI_PREFIX=$MPI_OPENMPI_PATH debug_msg "use user provided prefix : $MPI_OPENMPI_PATH" fi else debug_msg "use user provided prefix : $I2G_OPENMPI_PREFIX" fi # activate MPI mpi_start_activate_mpi $I2G_OPENMPI_PREFIX "$MPI_START_MPI_MODULE" # add necessary PATH to the environment variables #debug_msg "prepend Open MPI to PATH and LD_LIBRARY_PATH" export PATH=$I2G_OPENMPI_PREFIX/bin:$PATH export LD_LIBRARY_PATH=$I2G_OPENMPI_PREFIX/lib:$LD_LIBRARY_PATH if test "x$I2G_MPI_TYPE" != "xopenmpi" ; then # we are not the primary MPI # fall back to save settings that should work always debug_msg "" debug_msg "disable PBS, SGE" OPENMPI_PARAMS="-mca pls ^tm,gridengine -mca ras ^tm,gridengine " #OPENMPI_PARAMS="$OPENMPI_PARAMS -x PACX_DEBUG_NODE=$PACX_DEBUG_NODE" debug_msg "export GLOBUS_TCP_PORT_RANGE : $GLOBUS_TCP_PORT_RANGE" OPENMPI_PARAMS="$OPENMPI_PARAMS -x GLOBUS_TCP_PORT_RANGE " fi # # start an mpi job # mpi_exec () { #handle Open MPI 1.2.2 + PBS bug if test "x$PBS_NODEFILE" = "x" ; then debug_msg "found openmpi and a non-PBS batch system, set machinefile and np parameters" export I2G_MACHINEFILE_AND_NP="-machinefile $MPI_START_MACHINEFILE -np $I2G_MPI_NP" else debug_msg "found openmpi and PBS, don't set machinefile" export I2G_MACHINEFILE_AND_NP="-np $I2G_MPI_NP" fi #set the parameters to be always used with Open MPI: MPI_SPECIFIC_PARAMS="-wdir $PWD " #check for Marmot if test "x$I2G_USE_MARMOT" = "x1" ; then debug_msg "export LD_PRELOAD for Open MPI" MPI_SPECIFIC_PARAMS="$MPI_SPECIFIC_PARAMS -x LD_PRELOAD -x MARMOT_MAX_TIMEOUT_DEADLOCK -x MARMOT_LOGFILE_PATH" fi #if test "x$I2G_USE_MPITRACE" ="x1" ; then #MPI_SPECIFIC_PARAMS="-x MPITRACE_ON -x MPTRACE_DIR" #fi # check for user supplied mpiexec MPIEXEC=`which mpiexec` if test "x$MPI_OPENMPI_MPIEXEC" != "x" ; then MPIEXEC="$MPI_OPENMPI_MPIEXEC $I2G_MPI_MPIEXEC_PARAMS" debug_msg "using user supplied startup : '$MPIEXEC'" MPI_SPECIFIC_PARAMS="$MPI_SPECIFIC_PARAMS -x X509_USER_PROXY --prefix $I2G_OPENMPI_PREFIX $OPENMPI_PARAMS" . $MPI_START_PREFIX/../etc/mpi-start/generic_mpiexec.sh generic_mpiexec elif test "x$MPI_OPENMPI_MPIRUN" != "x" ; then MPIEXEC="$MPI_OPENMPI_MPIRUN $MPI_OPENMPI_MPIRUN_PARAMS" debug_msg "using user supplied startup : '$MPIEXEC'" MPI_SPECIFIC_PARAMS="$MPI_SPECIFIC_PARAMS -x X509_USER_PROXY --prefix $I2G_OPENMPI_PREFIX $OPENMPI_PARAMS" . $MPI_START_PREFIX/../etc/mpi-start/generic_mpiexec.sh generic_mpiexec else MPI_SPECIFIC_PARAMS="$MPI_SPECIFIC_PARAMS -x X509_USER_PROXY --prefix $I2G_OPENMPI_PREFIX $OPENMPI_PARAMS" . $MPI_START_PREFIX/../etc/mpi-start/generic_mpiexec.sh generic_mpiexec fi return $? } mpi_start () { . $MPI_START_PREFIX/../etc/mpi-start/generic_mpi_start.sh generic_mpi_start return $? } JDL & script files (sequential mode) | |||||||
Changed: | ||||||||
< < | This is the JDL file used for testing: | |||||||
> > | This is an example of JDL file that can be used for testing OpenFoam in sequential mode: | |||||||
[ | ||||||||
Line: 298 to 487 | ||||||||
InputSandbox = {"start_openfoam.sh"}; OutputSandbox = {"log.err","log.out","openfoam.log","openfoam.err"}; | ||||||||
Changed: | ||||||||
< < | Requirements = Member("VO-gridit-OpenFoam-2.0.1",other.GlueHostApplicationSoftwareRunTimeEnvironment); | |||||||
> > | Requirements = Member("VO-gridit-OpenFoam-2.0.1",other.GlueHostApplicationSoftwareRunTimeEnvironment); | |||||||
Rank = (other.GlueCEStateWaitingJobs == 0 ? other.GlueCEStateFreeCPUs : -other.GlueCEStateWaitingJobs); ] | ||||||||
Line: 380 to 563 | ||||||||
============================================================================
| ||||||||
Added: | ||||||||
> > | JDL & script files (parallel mode)This is an example of JDL file that can be used for testing OpenFoam in parallel mode:[ JobType = "NORMAL"; CPUNumber = 4; Executable = "mpi-start-wrapper.sh"; Arguments = "icoFoam OPENMPI_OPENFOAM"; StdOutput = "mpi-start.out"; StdError = "mpi-start.err"; InputSandbox = {"mpi-start-wrapper.sh","mpi-hooks.sh","cavity.tar.gz"}; OutputSandbox = {"mpi-start.err","mpi-start.out","result"}; Requirements = Member("VO-gridit-OpenFoam-2.0.1",other.GlueHostApplicationSoftwareRunTimeEnvironment); ]MPI wrappers are shown below: $ cat mpi-start-wrapper.sh #!/bin/bash # Pull in the arguments. MY_EXECUTABLE=$1 MPI_FLAVOR=$2 # Convert flavor to lowercase for passing to mpi-start. MPI_FLAVOR_LOWER=`echo $MPI_FLAVOR | tr '[:upper:]' '[:lower:]'` # Pull out the correct paths for the requested flavor. eval MPI_PATH=`printenv MPI_${MPI_FLAVOR}_PATH` # Ensure the prefix is correctly set. Don't rely on the defaults. #eval I2G_${MPI_FLAVOR}_PREFIX=$MPI_PATH #export I2G_${MPI_FLAVOR}_PREFIX # Touch the executable. It exist must for the shared file system check. # If it does not, then mpi-start may try to distribute the executable # when it shouldn't. touch $MY_EXECUTABLE # Setup for mpi-start. export I2G_MPI_APPLICATION=$MY_EXECUTABLE export I2G_MPI_APPLICATION_ARGS="-parallel" export I2G_MPI_TYPE=$MPI_FLAVOR_LOWER export I2G_MPI_PRE_RUN_HOOK=mpi-hooks.sh export I2G_MPI_POST_RUN_HOOK=mpi-hooks.sh export I2G_MPI_FILE_DIST="ssh" # If these are set then you will get more debugging information. export I2G_MPI_START_VERBOSE=1 export I2G_MPI_START_DEBUG=1 # Invoke mpi-start. $I2G_MPI_START $ cat mpi-hooks.sh #!/bin/sh # # This function will be called before the MPI executable is started. # You can, for example, compile the executable itself. # pre_run_hook () { # Compile the program. #echo "Compiling ${I2G_MPI_APPLICATION}" #debug_msg "LIST : $LSB_HOSTS" # Actually compile the program. #cmd="mpicc ${MPI_MPICC_OPTS} -o ${I2G_MPI_APPLICATION} ${I2G_MPI_APPLICATION}.c" #echo $cmd #$cmd #if [ ! $? -eq 0 ]; then # echo "Error compiling program. Exiting..." # exit 1 #fi #chmod +x ${I2G_MPI_APPLICATION} # Everything's OK. #echo "Successfully compiled ${I2G_MPI_APPLICATION}" # PRE OPENFOAM echo echo "========================================" echo "******This is my working directory******" echo "========================================" tar zxvf cavity.tar.gz cd cavity blockMesh decomposePar echo "========================================" return 0 } # # This function will be called before the MPI executable is finished. # A typical case for this is to upload the results to a storage element. # post_run_hook () { echo "Executing post hook." echo "Finished the post hook." return 0 } | |||||||
ReferencesOpenFOAM: The open source CFD toolbox |
Line: 1 to 1 | ||||||||
---|---|---|---|---|---|---|---|---|
About this wiki | ||||||||
Line: 210 to 210 | ||||||||
Paraview is the third-party software that we provide for graphical post-processing in OpenFOAM. It’s compilation is automated using a script called makeParaView in the ThirdParty-2.0.1 directory. | ||||||||
Changed: | ||||||||
< < | Installation of Paraview 3.10.1 requires a version of QT that is 3.6.2 or newer and cmake which is 2.8.2 or newer, so again make sure that this is on your system. | |||||||
> > | Installation of Paraview 3.10.1 requires a version of QT that is 3.6.2 or newer and cmake which is 2.8.2 or newer, so again make sure that this is on your system. $ cd $WM_THIRD_PARTY_DIRConfigure the QMAKE_PATH and CMAKE_PATH variable settings in the makeParaView file
| |||||||
To install Paraview, execute the following:
| ||||||||
Deleted: | ||||||||
< < | $ cd $WM_THIRD_PARTY_DIR | |||||||
$ ./makeParaView | ||||||||
Added: | ||||||||
> > | $ ./makeParaView >log_paraview 2>log_paraview & | |||||||
The PV3blockMeshReader and the PV3FoamReader ParaView plugins are compiled as usual for OpenFOAM utilities: | ||||||||
Line: 240 to 251 | ||||||||
Create a project directory within the $HOME/OpenFOAM directory named | ||||||||
Changed: | ||||||||
< < | $ mkdir -p $FOAM_RUN | |||||||
> > | $ mkdir -p $HOME/OpenFOAM/OpenFOAM-2.0.1/$FOAM_RUN | |||||||
Copy the tutorial examples directory in the OpenFOAM distribution to the run directory. If the OpenFOAM environment variables are set correctly, then the following command will be correct: | ||||||||
Changed: | ||||||||
< < | $ cp -r $FOAM_TUTORIALS $FOAM_RUN | |||||||
> > | $ cp -r $FOAM_TUTORIALS $HOME/OpenFOAM/OpenFOAM-2.0.1/$FOAM_RUN | |||||||
Run the first example case of incompressible laminar flow in a cavity: | ||||||||
Line: 259 to 270 | ||||||||
$ paraFoam | ||||||||
Added: | ||||||||
> > | Post-configuration on the LSF nodeAdd in the etc_bashrc file the following settings for sourcing the OpenFOAM bashrc profile. /opt/exp_soft/gridit/OpenFOAM/OpenFOAM-2.0.1/etc/bashrc Testing OpenFOAM in a Grid InfrastructureThis section describes a test submission of a serial OpenFOAM job on the GRIDIT Infrastructure.JDL & script filesThis is the JDL file used for testing:[ 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"}; Requirements = Member("VO-gridit-OpenFoam-2.0.1",other.GlueHostApplicationSoftwareRunTimeEnvironment); Rank = (other.GlueCEStateWaitingJobs == 0 ? other.GlueCEStateFreeCPUs : -other.GlueCEStateWaitingJobs); ]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` Submission$ glite-wms-job-submit -a -r grid012.ct.infn.it:2119/jobmanager-lcglsf-short -e https://wmsdecide.dir.garr.it:7443/glite_wms_wmproxy_server -o jobID openfoam-2.0.1.jdl Connecting to the service https://wmsdecide.dir.garr.it:7443/glite_wms_wmproxy_server ===================== glite-wms-job-submit Success ===================== The job has been successfully submitted to the WMProxy Your job identifier is: https://lb-4.dir.garr.it:9000/vUAJk3Sq3xBnviahz7HSqg The job identifier has been saved in the following file: /home/larocca/OpenFoam-2.0.1/jobID ===================================================================== Checking Status$ glite-wms-job-status --noint -i jobID ====================== glite-wms-job-status Success ==================== BOOKKEEPING INFORMATION: Status info for the Job : https://lb-4.dir.garr.it:9000/vUAJk3Sq3xBnviahz7HSqg Current Status: Done (Success) Exit code: 0 Status Reason: Job terminated successfully Destination: grid012.ct.infn.it:2119/jobmanager-lcglsf-short Submitted: Fri Dec 2 16:59:56 2011 CET ===================================================================== Downloading Results$ glite-wms-job-output --dir . --noint -i jobID Connecting to the service https://wmsdecide.dir.garr.it:7443/glite_wms_wmproxy_server =============================================================================== JOB GET OUTPUT OUTCOME Output sandbox files for the job: https://lb-4.dir.garr.it:9000/vUAJk3Sq3xBnviahz7HSqg have been successfully retrieved and stored in the directory: /home/larocca/OpenFoam-2.0.1/larocca_vUAJk3Sq3xBnviahz7HSqg ================================================================================ ReferencesOpenFOAM: The open source CFD toolbox | |||||||
Changed: | ||||||||
< < | -- GiuseppeLaRocca - 2011-12-02 | |||||||
> > |
|
Line: 1 to 1 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Added: | ||||||||||||
> > |
About this wiki
Application DescriptionOpenFOAM (Open Field Operation and Manipulation) CFD Toolbox is a free, open source CFD software package produced by a commercial company, OpenCFD Ltd.It has a large user base across most areas of engineering and science, from both commercial and academic organizations. OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics and electro-magnetics. This wiki provides information on how to build OpenFOAM in a grid-based infrastructure. Pre-requisitesThe instructions from this best practice have been tested on a:
Source PackThe following tar-zipped gtgz source packs are available for download.
Unpacking the source and installationIn a grid-based infrastructure we would recommend to install the software in the experiment software directory for the VO using sgm privileges and share this softwarepackages with other VO members. In this wiki we chosen to unpack this software under the $VO_GRIDIT_SW_DIR directory of the grid CE. $ cd $VO_GRIDIT_SW_DIR $ tar xzf OpenFOAM-2.0.1.gtgz $ tar xzf ThirdParty-2.0.1.gtgz $ chown -R root.root OpenFOAM-2.0.1/ ThirdParty-2.0.1/The files unpack to produce directories OpenFOAM-2.0.1 and ThirdParty-2.0.1 $ ll OpenFOAM total 12 drwxr-xr-x 11 sgmgridit001 sgmgridit 440 Nov 28 16:17 OpenFOAM-2.0.1 drwxr-xr-x 12 sgmgridit001 sgmgridit 768 Nov 28 15:57 ThirdParty-2.0.1 System RequirementsOpenFOAM-2.0.1 builds on many Linux distributions but the ParaView-3.10.1 version supplied in ThirdParty requires:
$ yum install bison $ yum install ncurses-devel $ yum install tix.x86_64 $ yum install glibc-devel $ yum install flex $ yum install flex-devel $ yum install zlib-devel $ yum install libXt-devel $ yum install binutils-devel $ yum install gmp.x86_64 $ yum install gmp-devel.x86_64 $ yum install libstdc++44-devel.x86_64Make sure you have GCC 4.4 installed on your server. $ wget ftp://ftp.ntua.gr/pub/linux/scientificlinux/55/x86_64/SL/gcc44-4.4.0-6.el5.x86_64.rpm $ rpm -ivh gcc44-4.4.0-6.el5.x86_64.rpm $ wget ftp://ftp.ntua.gr/pub/linux/scientificlinux/55/x86_64/SL/gcc44-c++-4.4.0-6.el5.x86_64.rpm $ rpm -ivh gcc44-c++-4.4.0-6.el5.x86_64.rpm Building Qt-4.6.4First uncompress the archive in the preferred location, then unpack it:$ cd /opt/exp_soft/gridit/OpenFOAM/ThirdParty-2.0.1 $ wget ftp://ftp.trolltech.com/qt/source/qt-everywhere-opensource-src-4.6.4.tar.gz $ tar zxf qt-everywhere-opensource-src-4.6.4.tar.gz $ chown -R root.root qt-everywhere-opensource-src-4.6.4 $ cd qt-everywhere-opensource-src-4.6.4 $ ./configure $ gmake && gmake install Building cmake-2.8.6$ cd /opt/exp_soft/gridit/OpenFOAM/ThirdParty-2.0.1 $ wget http://www.cmake.org/files/v2.8/cmake-2.8.6.tar.gz $ tar zxvf cmake-2.8.6.tar.gz $ cd cmake-2.8.6 $ ./configure $ gmake Makefile changes for GNU compilersOnce you have successfully installed GCC 4.4.0, then changes these files:$ cd /opt/exp_soft/gridit/OpenFOAM/OpenFOAM-2.0.1/wmake/rules/linux64Gcc44/ $ cat wmake/rules/linux64Gcc44/c .SUFFIXES: .c .h cWARN = -Wall cc = gcc44 -m64 <== Change Here! include $(RULES)/c$(WM_COMPILE_OPTION) cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $$SOURCE -o $@ LINK_LIBS = $(cDBUG) LINKLIBSO = $(cc) -shared LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs $ cat wmake/rules/linux64Gcc44/c++ .SUFFIXES: .C .cxx .cc .cpp c++WARN = -Wall -Wextra -Wno-unused-parameter -Wold-style-cast CC = g++44 -m64 <== Change Here! include $(RULES)/c++$(WM_COMPILE_OPTION) ptFLAGS = -DNoRepository -ftemplate-depth-100 c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $$SOURCE -o $@ cxxtoo = $(Ctoo) cctoo = $(Ctoo) cpptoo = $(Ctoo) LINK_LIBS = $(c++DBUG) LINKLIBSO = $(CC) $(c++FLAGS) -shared LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed Pre-setup requirements$ cd /opt/exp_soft/gridit/OpenFOAM/OpenFOAM-2.0.1/etcConfigure the OpenFOAM bashrc file as follows:
Checking the SystemTo check your system is ready to build the sources, execute the foamSystemCheck script (in the OpenFOAM-2.0.1/bin directory).If any critical software is missing, or needs updating to a newer version, please contact the system administrator to install the required software before proceeding to the build. $ cd /opt/exp_soft/gridit/OpenFOAM/OpenFOAM-2.0.1/bin $ ./foamSystemCheck Checking basic system... ----------------------------------------------------------------------- Shell: /bin/bash Host: grid012.ct.infn.it OS: Linux version 2.6.9-89.0.11.ELsmp User: root System check: PASS ================== Continue OpenFOAM installation. Building SourcesGo to the top-level source directory $WM_PROJECT_DIR and execute the top-level build script ./AllwmakeIn principle this will build everything, but if problems occur with the build order it may be necessary to update the environment variables and re-execute. If you experience difficulties with building the source-pack, or your platform is not currently supported, please contact software support to arrange a support contract and we will do the port and maintain it for future releases. $ cd /opt/exp_soft/gridit/OpenFOAM/OpenFOAM-2.0.1/ $ source etc/bashrc $ ./Allwmake >log 2>log & Compiling Paraview 3.10.1 and the PV3FoamReader ModuleParaview is the third-party software that we provide for graphical post-processing in OpenFOAM. It’s compilation is automated using a script called makeParaView in the ThirdParty-2.0.1 directory. Installation of Paraview 3.10.1 requires a version of QT that is 3.6.2 or newer and cmake which is 2.8.2 or newer, so again makesure that this is on your system. To install Paraview, execute the following: $ cd $WM_THIRD_PARTY_DIR $ ./makeParaViewThe PV3blockMeshReader and the PV3FoamReader ParaView plugins are compiled as usual for OpenFOAM utilities: $ cd $FOAM_UTILITIES/postProcessing/graphics/PV3Readers $ wmSET $ ./Allwclean $. /Allwmake Testing the InstallationTo check your installation setup, execute the foamInstallationTest script (in the OpenFOAM-2.0.1/bin directory).If no problems are reported, proceed to getting started with OpenFOAM; otherwise, go back and check you have installed the software correctly and/or contact your system administrator. Getting StartedCreate a project directory within the $HOME/OpenFOAM directory named$ mkdir -p $FOAM_RUNCopy the tutorial examples directory in the OpenFOAM distribution to the run directory. If the OpenFOAM environment variables are set correctly, then the following command will be correct: $ cp -r $FOAM_TUTORIALS $FOAM_RUNRun the first example case of incompressible laminar flow in a cavity: $ cd $FOAM_RUN/tutorials/incompressible/icoFoam/cavity $ blockMesh $ icoFoam $ paraFoam-- GiuseppeLaRocca - 2011-12-02 |