|
DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
|
Regression tests for CFV VariationalReconstruction<3> (3D). More...
#include "doctest.h"#include "CFV/VariationalReconstruction.hpp"#include <array>#include <cmath>#include <iostream>#include <iomanip>#include <functional>#include <nlohmann/json.hpp>Go to the source code of this file.
Classes | |
| struct | Test3DCase |
Macros | |
| #define | DOCTEST_CONFIG_IMPLEMENT |
Typedefs | |
| using | tVR = CFV::VariationalReconstruction< g_dim > |
| using | ScalarFunc3D = std::function< DNDS::real(const tPoint &)> |
Enumerations | |
| enum class | RecMethod3D { GaussGreen , VFV_P1_HQM , VFV_P2_HQM } |
Functions | |
| int | main (int argc, char **argv) |
| TEST_CASE ("3D: constant exactness with GaussGreen") | |
| TEST_CASE ("3D: constant exactness with VFV_P1_HQM") | |
| TEST_CASE ("3D: constant exactness with VFV_P2_HQM") | |
| TEST_CASE ("3D: golden-value regression for smooth functions") | |
| TEST_CASE ("3D: VFV P1 HQM converges on sinCos3D") | |
| TEST_CASE ("3D: VFV P2 HQM error < P1 on sinCos3D") | |
| if(g_mpi.rank==0) std | CHECK (globalVol==doctest::Approx(1.0).epsilon(1e-10)) |
Variables | |
| DNDS::real | globalVol = vr->GetGlobalVol() |
Regression tests for CFV VariationalReconstruction<3> (3D).
Exercises the full 3D VR pipeline on a periodic hex mesh:
Uses the Uniform32_3D_Periodic.cgns mesh (32^3 = 32768 hex cells, periodic on [0,1]^3).
Golden values are acquired on first run and must be captured manually. The test verifies the 3D template instantiation works end-to-end.
Definition in file test_Reconstruction3D.cpp.
| #define DOCTEST_CONFIG_IMPLEMENT |
Definition at line 18 of file test_Reconstruction3D.cpp.
| using ScalarFunc3D = std::function<DNDS::real(const tPoint &)> |
Definition at line 152 of file test_Reconstruction3D.cpp.
| using tVR = CFV::VariationalReconstruction<g_dim> |
Definition at line 35 of file test_Reconstruction3D.cpp.
|
strong |
| Enumerator | |
|---|---|
| GaussGreen | |
| VFV_P1_HQM | |
| VFV_P2_HQM | |
Definition at line 91 of file test_Reconstruction3D.cpp.
| if(g_mpi.rank==0) std CHECK | ( | globalVol | = =doctest::Approx(1.0).epsilon(1e-10) | ) |
| int main | ( | int | argc, |
| char ** | argv | ||
| ) |
| TEST_CASE | ( | "3D: constant exactness with GaussGreen" | ) |
| TEST_CASE | ( | "3D: constant exactness with VFV_P1_HQM" | ) |
| TEST_CASE | ( | "3D: constant exactness with VFV_P2_HQM" | ) |
| TEST_CASE | ( | "3D: golden-value regression for smooth functions" | ) |
| TEST_CASE | ( | "3D: VFV P1 HQM converges on sinCos3D" | ) |
| TEST_CASE | ( | ) |
| DNDS::real globalVol = vr->GetGlobalVol() |
Definition at line 532 of file test_Reconstruction3D.cpp.