A Semi-Automatic Approach Based on the Method of Manufactured Solutions to Assess the Convergence Order in OpenFOAM

Authors

  • Bruno Ramoa Institute for Polymers and Composites, University of Minho, Guimarães, Portugal
  • Ricardo Costa Institute for Polymers and Composites, University of Minho, Guimarães, Portugal https://orcid.org/0000-0002-1904-8317
  • Francisco Chinesta ESI Chair and PIMM Lab, ENSAM ParisTech
  • J. Miguel Nóbrega Institute for Polymers and Composites, University of Minho, Guimarães, Portugal https://orcid.org/0000-0002-5303-6467

DOI:

https://doi.org/10.51560/ofj.v2.75

Keywords:

Manufactured Solutions, Code verification

Abstract

Code verification is an intricate but crucial part of numerical code development. Due to the complexity of the partial differential equations, an analytical solution might not exist. In those situations and aiming at proving that the code is solving appropriately the governing equations, the method of manufactured solutions (MMS) is a powerful tool. In this method, a source term is derived to enforce the solution to a predetermined function. By performing a mesh refinement study, one can verify if the code is correctly solving the desired equations. In this work, a methodology that allows the automation of the MMS within the OpenFOAM© framework is proposed. The developed computational framework comprises a set of tools prepared, in an open-source environment, for the symbolic computation of the associated source term, and to generate the code required for its implementation as well as appropriate boundary conditions and functions to calculate the error norms.

Published

2022-11-16

How to Cite

Ramoa, B., Costa, R., Chinesta, F., & Nóbrega, J. M. (2022). A Semi-Automatic Approach Based on the Method of Manufactured Solutions to Assess the Convergence Order in OpenFOAM. OpenFOAM® Journal, 2, 148–165. https://doi.org/10.51560/ofj.v2.75

Issue

Section

Technical Notes