A Semi-Automatic Approach Based on the Method of Manufactured Solutions to Assess the Convergence Order in OpenFOAM
DOI:
https://doi.org/10.51560/ofj.v2.75Keywords:
Manufactured Solutions, Code verificationAbstract
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.

Downloads
Additional Files
Published
How to Cite
Issue
Section
License
Copyright (c) 2022 B. Ramoa, R. Costa, F. Chinesta, J. M. Nóbrega

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.