Skip to content

Parallel C++ code used to solve the forced heat equation in two dimensions

Notifications You must be signed in to change notification settings

dmarsico1/ParallelHeatSolver

Repository files navigation

ParallelHeatSolver

Parallel C++ code to solve the forced heat equation in two dimensions with periodic boundary conditions on a cell-centered rectangular grid using backward Euler. The MPI cartesian topology routines are used to decompose the domain into rectangles, and a parallel conjugate gradient method is used to solve the elliptic equation.

To compile: make heat

To run: mpirun -n (# of processors) heat

The file "input.txt" contains an example of how to change the default values of the parameters. In this case, it's the number of cells in each dimension, as well as the time step.

About

Parallel C++ code used to solve the forced heat equation in two dimensions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published