{"title":"A Semi-Automatic Approach Based on the Method of Manufactured Solutions to Assess the Convergence Order in OpenFOAM","authors":"Bruno Bruno, R. Costa, F. Chinesta, J. M. Nóbrega","doi":"10.51560/ofj.v2.75","DOIUrl":null,"url":null,"abstract":"Code verification is an intricate and crucial part of code developed. Due to the nature of the partial differential equations being solved, an analytical solution might not exit. To prove that the code is solving the correct equations, the method of manufactured solutions (MMS) is the go to approach. In this method we create a forcing term to drive the solution to a predetermined function. \nBy performing a mesh refinement study, we can verify if the code is solving correctly the governing equations. In this work, we present the procedure of MMS as well as a tool developed in an open-source software for symbolic computation of the forcing term, appropriate boundary conditions and error norm computation withing the OpenFOAM® framework.","PeriodicalId":252778,"journal":{"name":"OpenFOAM® Journal","volume":"191 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-11-16","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"OpenFOAM® Journal","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.51560/ofj.v2.75","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 0
Abstract
Code verification is an intricate and crucial part of code developed. Due to the nature of the partial differential equations being solved, an analytical solution might not exit. To prove that the code is solving the correct equations, the method of manufactured solutions (MMS) is the go to approach. In this method we create a forcing term to drive the solution to a predetermined function.
By performing a mesh refinement study, we can verify if the code is solving correctly the governing equations. In this work, we present the procedure of MMS as well as a tool developed in an open-source software for symbolic computation of the forcing term, appropriate boundary conditions and error norm computation withing the OpenFOAM® framework.