Base class for testing NumericalFluxGasMix objects. More...
#include <TestNumericalFluxGasMixBase.h>
Public Member Functions | |
TestNumericalFluxGasMixBase () | |
Protected Member Functions | |
virtual std::vector< ADReal > | computeConservativeSolution (const std::vector< ADReal > &W, const ADReal &A) const override |
Computes the conservative solution from the primitive solution. More... | |
virtual std::vector< ADReal > | computeFluxFromPrimitive (const std::vector< ADReal > &W, const ADReal &A) const override |
Computes the 1D flux vector from the primitive solution. More... | |
void | addFluidProperties () |
Adds fluid properties objects needed for testing. More... | |
virtual const NumericalFlux1D & | createFluxObject ()=0 |
Creates the flux object to be tested. More... | |
virtual std::vector< std::pair< std::vector< ADReal >, std::vector< ADReal > > > | getPrimitiveSolutionsSymmetryTest () const =0 |
Gets a vector of pairs of primitive solution vectors to use for symmetry test. More... | |
virtual std::vector< std::vector< ADReal > > | getPrimitiveSolutionsConsistencyTest () const =0 |
Gets a vector of primitive solution vectors to use for consistency test. More... | |
void | testConsistency () |
Runs the consistency test(s) More... | |
void | testSymmetry () |
Runs the symmetry test(s) More... | |
void | buildObjects () |
T & | addObject (const std::string &type, const std::string &name, InputParameters ¶ms) |
Protected Attributes | |
const UserObjectName | _fp_mix_name |
Mixture fluid properties name. More... | |
const IdealGasMixtureFluidProperties * | _fp_mix |
Fluid properties user object. More... | |
std::unique_ptr< MooseMesh > | _mesh |
std::shared_ptr< MooseApp > | _app |
Factory & | _factory |
std::shared_ptr< FEProblem > | _fe_problem |
Base class for testing NumericalFluxGasMix objects.
Definition at line 19 of file TestNumericalFluxGasMixBase.h.
TestNumericalFluxGasMixBase::TestNumericalFluxGasMixBase | ( | ) |
Definition at line 14 of file TestNumericalFluxGasMixBase.C.
|
protected |
Adds fluid properties objects needed for testing.
Definition at line 36 of file TestNumericalFluxGasMixBase.C.
Referenced by TestNumericalFluxGasMixBase().
|
overrideprotectedvirtual |
Computes the conservative solution from the primitive solution.
[in] | W | Primitive solution vector |
[in] | A | Cross-sectional area |
Implements TestNumericalFlux1D.
Definition at line 22 of file TestNumericalFluxGasMixBase.C.
|
overrideprotectedvirtual |
Computes the 1D flux vector from the primitive solution.
[in] | W | Primitive solution vector |
[in] | A | Cross-sectional area |
Implements TestNumericalFlux1D.
Definition at line 29 of file TestNumericalFluxGasMixBase.C.
|
protectedpure virtualinherited |
Creates the flux object to be tested.
Implemented in TestNumericalFlux3EqnCentered, TestNumericalFlux3EqnHLLC, and TestNumericalFluxGasMixHLLC.
Referenced by TestNumericalFlux1D::testConsistency(), and TestNumericalFlux1D::testSymmetry().
|
protectedpure virtualinherited |
Gets a vector of primitive solution vectors to use for consistency test.
Implemented in TestNumericalFlux3EqnCentered, TestNumericalFlux3EqnHLLC, and TestNumericalFluxGasMixHLLC.
Referenced by TestNumericalFlux1D::testConsistency().
|
protectedpure virtualinherited |
Gets a vector of pairs of primitive solution vectors to use for symmetry test.
Implemented in TestNumericalFlux3EqnCentered, TestNumericalFlux3EqnHLLC, and TestNumericalFluxGasMixHLLC.
Referenced by TestNumericalFlux1D::testSymmetry().
|
protectedinherited |
Runs the consistency test(s)
Definition at line 60 of file TestNumericalFlux1D.C.
|
protectedinherited |
Runs the symmetry test(s)
Definition at line 19 of file TestNumericalFlux1D.C.
|
protected |
Fluid properties user object.
Definition at line 39 of file TestNumericalFluxGasMixBase.h.
Referenced by addFluidProperties(), computeConservativeSolution(), and computeFluxFromPrimitive().
|
protected |
Mixture fluid properties name.
Definition at line 36 of file TestNumericalFluxGasMixBase.h.
Referenced by addFluidProperties(), and TestNumericalFluxGasMixHLLC::createFluxObject().