Testing Strategies for OpenFOAM Projects
Rattachement africain : de, ru. Niveau de preuve : code pays fourni par la source.
Le résumé fourni par la source
While testing is increasingly recognized as essential in scientific software development, it is not yet standard practice within the OpenFOAM community for developing new solvers and features. This gap stems partly from the challenges of integrating testing into typical OpenFOAM workflows and limited guidance on implementing effective tests. Writing tests for complex software like OpenFOAM based projects presents unique obstacles, including difficulty in configuring tests for various cases. This paper addresses these issues by discussing established test types in the context of OpenFOAM, identifying common challenges in developing tests for this platform, and suggesting best practices to enhance the testability of code based on OpenFOAM. Detailed guidance is provided for integrating the Catch2 unit test framework, alongside two new tools: the foamUT framework and the OpenFOAM Benchmark Runner (OBR), which facilitate unit and integration testing. To illustrate these tools in practice, we present three case studies. The first demonstrates the direct integration of Catch2 in the WENOExt project, showcasing test case creation and its synergy with OpenFOAM projects. The second introduces the foamUT framework, which simplifies Catch2 integration for OpenFOAM projects. Finally, the OBR framework is used for benchmarking and integration tests in the OpenFOAM Ginkgo layer. Additionally, we discuss the current state of testing in OpenFOAM and emphasize the need for more comprehensive testing practices within this community, particularly with libraries such as Catch2. Overall, this paper serves as a practical introduction to unit and integration testing for OpenFOAM developers and introduces new tools that lower the barrier to entry, improve test suite robustness, and simplify unit test integration.
Ce résumé expose les affirmations des auteurs. BNTIC ne l’interprète pas comme une validation indépendante des résultats.
Le contrôle bibliographique ouvert
DOI retrouvé dans Crossref DOI retrouvé ; titre concordant.
- Titre Crossref
- Testing Strategies for OpenFOAM Projects
- Date Crossref
- 26/04/2025
- Éditeur
- Keysight Technologies UK Ltd
- Type
- journal-article
Ce recoupement confirme des métadonnées liées au DOI. Il ne confirme ni la méthode ni les conclusions de l’étude, et il ne compte pas comme une seconde source scientifique indépendante.
Où se fait cette recherche
-
University of Stuttgart Institute for Reactive Flows pays non établi dans la noticeUniversité ou école supérieure
-
Karlsruhe Institute of Technology Scientific Computing Center (SCC) pays non établi dans la noticeUniversité ou école supérieure
-
Computing Center pays non établi dans la noticeStructure de recherche
-
Technische Universität Darmstadt pays non établi dans la noticeUniversité ou école supérieure
-
Technical University of Munich pays non établi dans la noticeUniversité ou école supérieure
-
Technical University of Darmstadt Mathematical Modeling and Analysis pays non établi dans la noticeUniversité ou école supérieure
-
TUM School of Computation Chair of Computational Mathematics pays non établi dans la noticeUniversité ou école supérieure
Institute for Reactive Flows — University of Stuttgart, Scientific Computing Center (SCC) — Karlsruhe Institute of Technology et Computing Center, avec 4 autres affiliations.
Une affiliation ne permet pas de déduire la nationalité d’un auteur.