32 "Name of NumericalFluxGasMixBase object");
40 _A_elem(adCoupledValue(
"A_linear")),
41 _A_neig(adCoupledNeighborValue(
"A_linear")),
42 _xirhoA1(getADMaterialProperty<Real>(
THM::XIRHOA)),
43 _rhoA1(getADMaterialProperty<Real>(
THM::RHOA)),
44 _rhouA1(getADMaterialProperty<Real>(
THM::RHOUA)),
45 _rhoEA1(getADMaterialProperty<Real>(
THM::RHOEA)),
46 _xirhoA2(getNeighborADMaterialProperty<Real>(
THM::XIRHOA)),
47 _rhoA2(getNeighborADMaterialProperty<Real>(
THM::RHOA)),
48 _rhouA2(getNeighborADMaterialProperty<Real>(
THM::RHOUA)),
49 _rhoEA2(getNeighborADMaterialProperty<Real>(
THM::RHOEA)),
51 _xirhoA_var(coupled(
"xirhoA")),
52 _rhoA_var(coupled(
"rhoA")),
53 _rhouA_var(coupled(
"rhouA")),
54 _rhoEA_var(coupled(
"rhoEA")),
55 _jmap(getIndexMapping()),
56 _equation_index(_jmap.at(_var.number()))
80 const std::vector<ADReal> & flux_elem =
82 const std::vector<ADReal> & flux_neig =
98std::map<unsigned int, unsigned int>
101 std::map<unsigned int, unsigned int> jmap;
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("ThermalHydraulicsApp", NumericalFluxGasMixDGKernel)
const VariableTestValue & _test_neighbor
static InputParameters validParams()
const VariableTestValue & _test
const unsigned int & _current_side
const Elem *const & _current_elem
const std::string & type() const
virtual const std::vector< ADReal > & getFlux(const unsigned int iside, const dof_id_type ielem, bool res_side_is_left, const std::vector< ADReal > &UL_1d, const std::vector< ADReal > &UR_1d, Real nLR_dot_d) const
Gets the 1D flux vector for an element/side combination.
Base class for computing numerical fluxes for FlowModelGasMix.
Adds side fluxes from NumericalFluxGasMix objects.
const ADMaterialProperty< Real > & _rhouA1
static InputParameters validParams()
const ADMaterialProperty< Real > & _rhoA2
const ADMaterialProperty< Real > & _rhoEA1
const ADMaterialProperty< Real > & _xirhoA2
const ADMaterialProperty< Real > & _rhoEA2
const ADVariableValue & _A_neig
const unsigned int _rhoEA_var
const unsigned int _equation_index
index within the equation system of the equation upon which this kernel acts
const unsigned int _rhoA_var
const ADMaterialProperty< Real > & _xirhoA1
const unsigned int _rhouA_var
const ADMaterialProperty< Real > & _rhoA1
NumericalFluxGasMixDGKernel(const InputParameters ¶meters)
const unsigned int _xirhoA_var
virtual ADReal computeQpResidual(Moose::DGResidualType type) override
const ADMaterialProperty< Real > & _rhouA2
const ADVariableValue & _A_elem
Area.
const NumericalFluxGasMixBase & _numerical_flux
Numerical flux user object.
std::map< unsigned int, unsigned int > getIndexMapping() const
Creates the mapping of coupled variable index to index in equation system.
static const unsigned int N_FLUX_INPUTS
Number of numerical flux function inputs.