OpenFOAM 3.0.1 built with MPICH and CPL library (See http://www.cpl-library.org)
1.1K
The following environnment variables:
FOAM_CPL_SOCKET_LIBBIN = $FOAM_INST_DIR/cpl-socket/lib
LD_LIBRARY_PATH = $LD_LIBRARY_PATH:$FOAM_CPL_LIBBIN
must be defined in order for a) the compilation to work and b) the library to be found by the ld linker. They are conveniently defined in the config file SOURCEME, which may be found in the level above this README file:
$ cd ../
$ source SOURCEME.sh
$ cd -
The install process assumes that you have OpenFOAM fully installed with all code source. The process then simply builds a top level solver, using all of the OpenFOAM shared libraries and CPL library's shared library, which is designed for coupled simulation.
First, change directory to CPL_APP_OPENFOAM-DEV,
cd CPL_APP_OPENFOAM-DEV
and create a file called CODE_INST_DIR which will tell the APP which OPENFOAM to install against,
echo "/path/to/openfoam/directory/" > CODE_INST_DIR
Note that the folder in this directory is expected to be called OpenFOAM-3.0.1. This is the currently supported OpenFOAM version.
Now, to build the various solvers, it may be as simple as,
$ make
N.B.: warnings from the included MPI headers may be ignored. This makes a range of OpenFOAM solvers, including
CPL_APP_OpenFOAM is released under the GNU GPL v3 license. Details are found in the file LICENSE that is included with the release.
This application repository is structured as follows:
src - source files which include the following
examples - some input examples for various cases
test - a range of test cases run automatically on Travis CI
config - scripts to specify version of MPI to build OpenFOAM with and patches for scotch.
New folders created by building process
./lib/../bin.Content type
Image
Digest
Size
936.6 MB
Last updated
about 6 years ago
docker pull cpllibrary/cpl-openfoam