Skip to content

About

Generalised Laplace Analytic Solution Example

Resources

Stars

0 stars

Watchers

4 watching

Forks

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Generalised Laplace analytic example

This example solves the generalised Laplace equation in two dimensions in a rectangular domain and compares it to an analytic solution.

Building the example

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.

Running the example

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.

Verifying the example

Results can be visualised by running visualise.cmgui with the Cmgui visualiser.

About

Generalised Laplace Analytic Solution Example

Resources

Stars

0 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages