https://mooseframework.inl.gov
Loading...
Searching...
No Matches
TestNumericalFluxGasMixBase.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
10#pragma once
11
12#include "TestNumericalFlux1D.h"
13
15
20{
21public:
23
24protected:
25 virtual std::vector<ADReal> computeConservativeSolution(const std::vector<ADReal> & W,
26 const ADReal & A) const override;
27 virtual std::vector<ADReal> computeFluxFromPrimitive(const std::vector<ADReal> & W,
28 const ADReal & A) const override;
29
33 void addFluidProperties();
34
36 const UserObjectName _fp_mix_name;
37
40};
DualNumber< Real, DNDerivativeType, true > ADReal
Class for fluid properties of an ideal gas mixture.
Base class for testing NumericalFlux1D objects.
Base class for testing NumericalFluxGasMix objects.
const UserObjectName _fp_mix_name
Mixture fluid properties name.
const IdealGasMixtureFluidProperties * _fp_mix
Fluid properties user object.
virtual std::vector< ADReal > computeFluxFromPrimitive(const std::vector< ADReal > &W, const ADReal &A) const override
Computes the 1D flux vector from the primitive solution.
virtual std::vector< ADReal > computeConservativeSolution(const std::vector< ADReal > &W, const ADReal &A) const override
Computes the conservative solution from the primitive solution.
void addFluidProperties()
Adds fluid properties objects needed for testing.