Base class for testing NumericalFlux1D objects. More...
#include <TestNumericalFlux1D.h>
Public Member Functions | |
| TestNumericalFlux1D () | |
Protected Member Functions | |
| virtual const NumericalFlux1D & | createFluxObject ()=0 |
| Creates the flux object to be tested. More... | |
| virtual std::vector< ADReal > | computeConservativeSolution (const std::vector< ADReal > &W, const ADReal &A) const =0 |
| Computes the conservative solution from the primitive solution. More... | |
| virtual std::vector< ADReal > | computeFluxFromPrimitive (const std::vector< ADReal > &W, const ADReal &A) const =0 |
| Computes the 1D flux vector from the primitive solution. 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 | |
| std::unique_ptr< MooseMesh > | _mesh |
| std::shared_ptr< MooseApp > | _app |
| Factory & | _factory |
| std::shared_ptr< FEProblem > | _fe_problem |
Base class for testing NumericalFlux1D objects.
Definition at line 18 of file TestNumericalFlux1D.h.
| TestNumericalFlux1D::TestNumericalFlux1D | ( | ) |
Definition at line 13 of file TestNumericalFlux1D.C.
|
protectedpure virtual |
Computes the conservative solution from the primitive solution.
| [in] | W | Primitive solution vector |
| [in] | A | Cross-sectional area |
Implemented in TestNumericalFlux3EqnBase, and TestNumericalFluxGasMixBase.
Referenced by testConsistency(), and testSymmetry().
|
protectedpure virtual |
Computes the 1D flux vector from the primitive solution.
| [in] | W | Primitive solution vector |
| [in] | A | Cross-sectional area |
Implemented in TestNumericalFlux3EqnBase, and TestNumericalFluxGasMixBase.
Referenced by testConsistency().
|
protectedpure virtual |
Creates the flux object to be tested.
Implemented in TestNumericalFlux3EqnCentered, TestNumericalFlux3EqnHLLC, and TestNumericalFluxGasMixHLLC.
Referenced by testConsistency(), and testSymmetry().
|
protectedpure virtual |
Gets a vector of primitive solution vectors to use for consistency test.
Implemented in TestNumericalFlux3EqnCentered, TestNumericalFlux3EqnHLLC, and TestNumericalFluxGasMixHLLC.
Referenced by testConsistency().
|
protectedpure virtual |
Gets a vector of pairs of primitive solution vectors to use for symmetry test.
Implemented in TestNumericalFlux3EqnCentered, TestNumericalFlux3EqnHLLC, and TestNumericalFluxGasMixHLLC.
Referenced by testSymmetry().
|
protected |
Runs the consistency test(s)
Definition at line 60 of file TestNumericalFlux1D.C.
|
protected |
Runs the symmetry test(s)
Definition at line 19 of file TestNumericalFlux1D.C.
1.8.14