A library of solvers and boundary conditions to solver for physiological flow in OpenFOAM.
The following solvers are included:
- windkesselSolver (editted pimpleFoam solver that can implement 3 element Windkessel boundary conditions)
The following boundary conditions are included:
- parabolicVelocity (inlet condition that specifies a parabolic velocity distribution)
These files have been developed with OpenFOAM 4.0. This can be downloaded from http://www.openfoam.com/
Alternatively you may be able to load the module with
module load openfoam/4.0
Set up an openfoam directory if you don't have one with
mkdir -p $FOAM_RUN
cd $FOAM_RUN
cd ..
FOAM_DEV=$PWD
mkdir -p $FOAM_DEV
cd $FOAM_DEV
git clone https://github.com/KeepFloyding/OpenFOAM/tree/master/solvers/[SOLVER_NAME]
cd [SOLVER_NAME]/[SOLVER_VERSION]
wclean
wmake
ls $FOAM_USER_APPBIN
If all compiled correctly then the solver should be come up with the last command
cd $FOAM_DEV
git clone https://github.com/KeepFloyding/OpenFOAM/tree/master/boundaryConditions
cd boundaryConditions
wclean
wmake libso
ls $FOAM_USER_LIBBIN
Library name should come up
If compilation is successful, then the solver and boundary conditions can be used. The sample case file shows how they can be implemented.
For solvers: Create case file similar to sampleCaseFile and launch by typing [SOLVER_NAME]
For boundary conditions: Edit the system/controlDict file and add at the end
libs ("[LIB_NAME]");
Implementation can be seen in the case file