This example solves the generalised Laplace equation in two dimensions in a rectangular domain and compares it to an analytic solution.
The fortran version of the example can be configured and built with CMake:
git clone https://github.com/OpenCMISS-Examples/laplace_equation cd laplace_equation mkdir build cd build cmake -DOpenCMISS_INSTALL_ROOT=/path/to/opencmiss/install ../. make
This will create the example executable "laplace_equation" in ./src/fortran/ directory.
Fortran version:
cd ./src/fortran/ ./laplace_equation NUMBER_X NUMBER_Y INTERPOLATION_TYPE
where NUMBER_X is the number of elements in the X direction, NUMBER_Y is the number of elements in the Y direction and INTERPOLATION_TYPE is the interpolation type to use.
Results can be visualised by running visualise.cmgui with the Cmgui visualiser.