top of page

OpenFOAM and PETSc Integration

Integrating between two open-source libraries: OpenFOAM and PETSc.

 

OpenFOAM provides a toolbox for development of Numerical Solvers and processing utilities for Computational Fluid Dynamics.

 

PETSc is a suite of Data Structures developed for Parallel solutions of scientific applications modeled by Partial Differential Equations.

Goal: bypassing OpenFOAM's solvers, and using PETSc's Parallel Linear System solvers instead, to solve Linear Systems generated by OpenFOAM at runtime.

 

The project consisted:

  • Getting familiarized with OF and PETSc.

  • Learning each library's different representation of Matrices.

  • Recoding an existing OF solver to use PETSc and check correctness of solutions.

  • Write an elaborate HOWTO tutorial

bottom of page