https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NumericalFluxGasMixDGKernel.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 "ADDGKernel.h"
13
15
20{
21public:
23
25
26protected:
28
34 std::map<unsigned int, unsigned int> getIndexMapping() const;
35
39
40 // reconstructed variable values in this cell
45
46 // reconstructed variable values in neighbor cell
51
54
55 // coupled variable indices
56 const unsigned int _xirhoA_var;
57 const unsigned int _rhoA_var;
58 const unsigned int _rhouA_var;
59 const unsigned int _rhoEA_var;
60
62 const std::map<unsigned int, unsigned int> _jmap;
63
65 const unsigned int _equation_index;
66};
DualNumber< Real, DNDerivativeType, true > ADReal
const InputParameters & parameters() const
const std::string & type() const
Base class for computing numerical fluxes for FlowModelGasMix.
Adds side fluxes from NumericalFluxGasMix objects.
const ADMaterialProperty< Real > & _rhouA1
const ADMaterialProperty< Real > & _rhoA2
const ADMaterialProperty< Real > & _rhoEA1
const ADMaterialProperty< Real > & _xirhoA2
const ADMaterialProperty< Real > & _rhoEA2
const unsigned int _equation_index
index within the equation system of the equation upon which this kernel acts
const std::map< unsigned int, unsigned int > _jmap
map of coupled variable index to equations variable index convention
const ADMaterialProperty< Real > & _xirhoA1
const ADMaterialProperty< Real > & _rhoA1
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.
VariableValueTempl< true > ADVariableValue
DGResidualType