#include "Testing.H"
#include "Simulation.H"
#include "RKTestFixtures.H"
#include "EulerRHS.H"
#include "Stencil.H"
#include "PCPPCommUtil.H"
#include "PCPPReport.H"
#include "PCPPIntervalUtils.H"
#include "TestFixtures.H"
#include "ViscidTestFixtures.H"
#include "EulerTestFixtures.H"
#include "EulerUtil.H"
#include "ViscidUtil.H"
#include <iomanip>
Go to the source code of this file.
Typedefs | |
typedef simulation::state::base | state_t |
Functions | |
void | TestViscidKernels (ix::test::results &serialUnitResults) |
void | TestViscidKernelsMetrics (ix::test::results &serialUnitResults) |
Tests viscid kernels on uniform grid using all metric types. More... | |
void | TestVelocityGradient (ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm) |
void | TestVelocityGradientPeriodic (ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm) |
void | TestViscidRHS (ix::test::results ¶llelUnitResults, pcpp::CommunicatorType &testComm) |
void | TestViscidKernelsCurvilinear (ix::test::results &serialUnitResults) |
Tests viscid kernels with full curvilinear metrics. More... | |
typedef simulation::state::base state_t |
Definition at line 18 of file TestViscousRHS.C.
void TestVelocityGradient | ( | ix::test::results & | parallelUnitResults, |
pcpp::CommunicatorType & | testComm | ||
) |
Definition at line 1461 of file TestViscousRHS.C.
References dataset::AddField(), parallel_blockstructured::BufferSize(), bufferSizes, parallel_blockstructured::BufferSizes(), pcpp::comm::CheckResult(), dataset::Create(), parallel_blockstructured::DX(), gridSizes, parallel_blockstructured::Halo(), euler::util::InitializeSimulationFixtures(), testfixtures::viscid::Linear(), numPointsBuffer, parallel_blockstructured::PartitionBufferInterval(), parallel_blockstructured::PartitionInterval(), dataset::SetFieldBuffer(), parallel_blockstructured::SetGridSizes(), parallel_blockstructured::SetPeriodicDirs(), parallel_blockstructured::SetPhysicalExtent(), parallel_blockstructured::SetupThreads(), testfixtures::viscid::SetupViscidState(), results::UpdateResult(), V, x, and y.
Referenced by ParallelTestingObject< CommType, ResultsType >::Test__Velocity__Gradient().
void TestVelocityGradientPeriodic | ( | ix::test::results & | parallelUnitResults, |
pcpp::CommunicatorType & | testComm | ||
) |
Definition at line 2134 of file TestViscousRHS.C.
References dataset::AddField(), CommunicatorObject::Barrier(), parallel_blockstructured::BufferSize(), bufferSizes, parallel_blockstructured::BufferSizes(), pcpp::comm::CheckResult(), parallel_base::Communicator(), testfixtures::viscid::Cosine(), dataset::Create(), parallel_blockstructured::DX(), gridSizes, parallel_blockstructured::Halo(), euler::util::InitializeSimulationFixtures(), numPointsBuffer, parallel_blockstructured::PartitionBufferInterval(), parallel_blockstructured::PartitionInterval(), dataset::SetFieldBuffer(), parallel_blockstructured::SetGridSizes(), parallel_blockstructured::SetPeriodicDirs(), parallel_blockstructured::SetPhysicalExtent(), parallel_blockstructured::SetupThreads(), testfixtures::viscid::SetupViscidState(), results::UpdateResult(), V, x, and y.
Referenced by ParallelTestingObject< CommType, ResultsType >::Test__Velocity__Gradient__Periodic().
void TestViscidKernels | ( | ix::test::results & | serialUnitResults | ) |
Definition at line 20 of file TestViscousRHS.C.
References a, bufferInterval, euler::util::ComputeDVBuffer(), viscid::util::ComputeHeatFluxBuffer(), eos::ComputePressureBuffer(), viscid::util::ComputeTauBuffer(), eos::ComputeTemperatureBuffer(), viscid::util::ComputeTVBufferPower(), FC_MODULE(), parallel_blockstructured::Finalize(), sizeextent::Flatten(), gridJacobian, gridMetric, parallel_blockstructured::GridSizes(), gridType, perfect_gas::InitializeMaterialProperties(), sizeextent::InitSimple(), parallel_blockstructured::PartitionBufferInterval(), parallel_blockstructured::PhysicalExtent(), perfect_gas::SetGamma(), parallel_blockstructured::SetGridSpacings(), perfect_gas::SetSpecificGasConstant(), eos::SetupInternalEnergyBuffer(), eos::SetupPressureBuffer(), eos::SetupSpecificVolumeBuffer(), eos::SetupTemperatureBuffer(), viscid::strongflux1d(), results::UpdateResult(), velocity, and operators::ywxpy().
Referenced by TestingObject< ResultsType >::Test__Viscid__Kernels().
void TestViscidKernelsCurvilinear | ( | ix::test::results & | serialUnitResults | ) |
Tests viscid kernels with full curvilinear metrics.
This test exercises the viscid kernels with full curvilinear metrics with (contrived) non-zero data in all terms of all quantities. The exact expected is computed inline. This shows that code is right for the nominal use cases.
Definition at line 2982 of file TestViscousRHS.C.
References viscid::util::ComputeHeatFluxBuffer(), viscid::util::ComputeTauBuffer(), simulation::grid::CURVILINEAR, FC_MODULE(), sizeextent::Flatten(), fluxDir, gridJacobian, gridMetric, gridType, sizeextent::InitSimple(), numPoints, numPointsBuffer, viscid::strongflux1d(), results::UpdateResult(), and velocity.
Referenced by TestingObject< ResultsType >::Test__Viscid__Kernels__Curvilinear().
void TestViscidKernelsMetrics | ( | ix::test::results & | serialUnitResults | ) |
Tests viscid kernels on uniform grid using all metric types.
This test performs the same basic tests done in TestViscidKernels. The expected answers are all the same as in TestViscidKernels. All metric types (Uniform-rectangular, rectilinear, and curvilinear) are initialized using a uniform-rectangular grid. The kernels are exercised with each grid metric using the tests outlined by TestViscidKernels.
Definition at line 689 of file TestViscousRHS.C.
References a, bufferInterval, euler::util::ComputeDVBuffer(), viscid::util::ComputeHeatFluxBuffer(), eos::ComputePressureBuffer(), viscid::util::ComputeTauBuffer(), eos::ComputeTemperatureBuffer(), viscid::util::ComputeTVBufferPower(), simulation::grid::CURVILINEAR, FC_MODULE(), parallel_blockstructured::Finalize(), sizeextent::Flatten(), gridJacobian, gridMetric, parallel_blockstructured::GridSizes(), gridType, perfect_gas::InitializeMaterialProperties(), sizeextent::InitSimple(), simulation::grid::NUMGRIDTYPES, parallel_blockstructured::PartitionBufferInterval(), parallel_blockstructured::PhysicalExtent(), simulation::grid::RECTILINEAR, perfect_gas::SetGamma(), parallel_blockstructured::SetGridSpacings(), perfect_gas::SetSpecificGasConstant(), eos::SetupInternalEnergyBuffer(), eos::SetupPressureBuffer(), eos::SetupSpecificVolumeBuffer(), eos::SetupTemperatureBuffer(), viscid::strongflux1d(), simulation::grid::UNIRECT, results::UpdateResult(), velocity, and operators::ywxpy().
Referenced by TestingObject< ResultsType >::Test__Viscid__Kernels__Metrics().
void TestViscidRHS | ( | ix::test::results & | parallelUnitResults, |
pcpp::CommunicatorType & | testComm | ||
) |
Definition at line 2819 of file TestViscousRHS.C.
References parallel_blockstructured::BufferSize(), pcpp::comm::CheckResult(), testfixtures::CreateSimulationFixtures(), gridSizes, parallel_blockstructured::Halo(), numPointsBuffer, parallel_blockstructured::PartitionBufferInterval(), dataset::SetFieldBuffer(), parallel_blockstructured::SetNumThreads(), testfixtures::viscid::SetupViscidState(), results::UpdateResult(), and V.
Referenced by ParallelTestingObject< CommType, ResultsType >::Test__Viscid__RHS().