Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| software:openfoam:openfoam [2018-04-26 12:11] – [OpenFOAM] sraskar | software:openfoam:openfoam [2021-02-24 16:38] (current) – [OpenFOAM] anita | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== OpenFOAM ====== | ||
| + | OpenFOAM is a free, open source CFD software package developed by [[http:// | ||
| + | |||
| + | OpenFOAM base installs are available to use directly to run OpenFOAM or indirectly to build your own OpenFOAM applications. | ||
| + | |||
| + | To determine the available versions of OpenFOAM installed use | ||
| + | |||
| + | < | ||
| + | $ vpkg_versions openfoam | ||
| + | Available versions in package (* = default version): | ||
| + | |||
| + | [/ | ||
| + | openfoam OpenFOAM is a free, open source CFD software package | ||
| + | 2.1 alias to openfoam/ | ||
| + | 2.1.1 Version 2.1.1 with OpenMPI(1.8.2), | ||
| + | 2.2 alias to openfoam/ | ||
| + | 2.2.2 Version 2.2.2 with OpenMPI(1.8.2), | ||
| + | 2.3 alias to openfoam/ | ||
| + | * 2.3.0 Version 2.3.0 with OpenMPI(1.8.2), | ||
| + | 2.4 alias to openfoam/ | ||
| + | 2.4.0 Version 2.4.0 with OpenMPI(1.8.2), | ||
| + | 4.1 Version 4.1 with OpenMPI(2.0.2), | ||
| + | |||
| + | </ | ||
| + | |||
| + | Each version of OpenFOAM has several " | ||
| + | |||
| + | * double-precision floating point; compiler optimizations | ||
| + | * double-precision floating point; debugging enabled | ||
| + | * single-precision floating point; compiler optimizations | ||
| + | * single-precision floating point; debugging enabled | ||
| + | | ||
| + | Use '' | ||
| + | |||
| + | < | ||
| + | WM_PRECISION_OPTION=(DP|SP) | ||
| + | WM_COMPILE_OPTION=(Opt|Debug) | ||
| + | </ | ||
| + | | ||
| + | If you do not specify these environment variables' | ||
| + | |||
| + | < | ||
| + | WM_PRECISION_OPTION=SP | ||
| + | WM_COMPILE_OPTION=Debug | ||
| + | vpkg_require openfoam/ | ||
| + | source $FOAM_INS_DIR/ | ||
| + | </ | ||
| + | |||
| + | ==== Tutorials ==== | ||
| + | The [[http:// | ||
| + | |||
| + | <code bash> | ||
| + | [traine@mills ~]$ workgroup | ||
| + | [(it_css: | ||
| + | Your job 407698 (" | ||
| + | waiting for interactive job to be scheduled ... | ||
| + | Your interactive job 407698 has been successfully scheduled. | ||
| + | Establishing / | ||
| + | Last login: Tue Oct 15 11:31:06 2013 from mills.mills.hpc.udel.edu | ||
| + | [traine@n017 ~]$ cd / | ||
| + | [traine@n017 traine]$ mkdir OF | ||
| + | [traine@n017 traine]$ cd OF | ||
| + | [traine@n017 OF]$ vpkg_require openfoam | ||
| + | Adding package `openfoam/ | ||
| + | [traine@n017 OF]$ source $FOAM_INST_DIR/ | ||
| + | [traine@n017 OF]$ echo $FOAM_RUN | ||
| + | /run | ||
| + | [traine@n017 OF]$ mkdir -p .$FOAM_RUN | ||
| + | [traine@n017 OF]$ cp -r $FOAM_TUTORIALS .$FOAM_RUN | ||
| + | </ | ||
| + | |||
| + | <note important> | ||
| + | |||
| + | <note tip> | ||
| + | Sample commands here demonstrate example for : (cluster '' | ||
| + | </ | ||
| + | |||
| + | ==== Installing an OpenFOAM application ==== | ||
| + | |||
| + | Installing OpenFOAM requires extensive storage and time if it needs to be done for each application. | ||