gdbOF: A Debugging Tool for OpenFOAM

OpenFOAM® libraries are a great contribution to CFD community and a powerful way to create solvers and other tools. Nevertheless in this creative process a deep knowledge is needed concerning with classes structure, for value storage in geometric fields and also for matrices resulting from equation...

ver descrição completa

Detalhes bibliográficos
Autores: Marquez Damian, Santiago, Gimenez, Juan Marcelo, Nigro, Norberto Marcelo
Tipo de documento: artigo
Estado:Versão publicada
Data de publicação:2012
País:Argentina
Recursos:Consejo Nacional de Investigaciones Científicas y Técnicas
Repositório:CONICET Digital (CONICET)
Idioma:inglês
OAI Identifier:oai:ri.conicet.gov.ar:11336/18638
Acesso em linha:http://hdl.handle.net/11336/18638
Access Level:Acceso aberto
Palavra-chave:Computational Fluids Dynamics
Finite Volume Method
Open Foam
Data Structures
Debugging
Gdb
https://purl.org/becyt/ford/1.2
https://purl.org/becyt/ford/1
https://purl.org/becyt/ford/2.3
https://purl.org/becyt/ford/2
Descrição
Resumo:OpenFOAM® libraries are a great contribution to CFD community and a powerful way to create solvers and other tools. Nevertheless in this creative process a deep knowledge is needed concerning with classes structure, for value storage in geometric fields and also for matrices resulting from equation systems, becoming a hard task for debugging. To help in this process a new tool, called gdbOF, attachable to gdb (GNU debugger) is presented in this paper. It allows to analyze classes structure at debugging time. This application is implemented by gdb macros, these macros can access to code classes and also to their data in a transparent way, giving the requested information. This tool is tested for different application cases, such as the assemble and storage of matrices in a scalar advective–diffusive problem, non orthogonal correction methods in purely diffusive tests and multiphase solvers based on Volume of Fluid Method. In these tests several types of data are checked, such as: internal and boundary vector and scalar values from solution fields, fluxes in cell faces, boundary patches and boundary conditions. As additional features of this tool data dumping to file and a graphical monitoring of fields are presented. All these capabilities give to gdbOF a wide range of use not only in academic tests but also in real problems.