Skip to content

Openfoam library for physiological flow. Solvers and boundary conditions.

Notifications You must be signed in to change notification settings

KeepFloyding/OpenFOAM-phys-flow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

OpenFOAM library for physiological flow

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)

Getting Started

Prerequisites

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

Installing

Solvers:

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

Boundary conditions:

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

Deployment

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

Releases

No releases published

Packages

No packages published