Skip to content

OpenCMISS-Examples/stokes_static

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Stokes Static

Stokes equation is a linearised form of the Navier-Stokes equations in the limit of small Reynolds number. This equation, also named creeping flow, is a type of fluid flow where advective inertial forces are small compared with viscous forces. The static form of the Stokes equation is implemented in this example.

Building the example

The fortran version of the example can be configured and built with CMake:

git clone https://github.com/OpenCMISS-Examples/stokes_static.git
mkdir stokes_static-build
cd stokes_static-build
cmake -DOpenCMISSLibs_DIR=~/opencmiss/install/  ../stokes_static/
make

Running the example

Fortran version:

cd ./src/fortran/
./stokes_static

Python version:

source  <path-to-opencmiss>/install/.../.../virtualenvironments/oclibs_pyXY_release/bin/activate
cd ./src/python/
python stokes_static.py

where the XY in the path are the Python major and minor versions respectively.

The results can be visualised by running visualise.com with the Cmgui visualiser.

Prerequisites

There are no additional input files required for this example as it is self-contained.

License

License applicable to this example is described in LICENSE.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •