23 "Adds side fluxes for the 1-D, 1-phase, variable-area Euler equations");
30 params.
addRequiredParam<UserObjectName>(
"numerical_flux",
"Name of numerical flux user object");
38 _A_elem(coupledValue(
"A_linear")),
39 _A_neig(coupledNeighborValue(
"A_linear")),
40 _rhoA1(getMaterialProperty<
Real>(
"rhoA")),
41 _rhouA1(getMaterialProperty<
Real>(
"rhouA")),
42 _rhoEA1(getMaterialProperty<
Real>(
"rhoEA")),
43 _p1(getMaterialProperty<
Real>(
"p")),
44 _rhoA2(getNeighborMaterialProperty<
Real>(
"rhoA")),
45 _rhouA2(getNeighborMaterialProperty<
Real>(
"rhouA")),
46 _rhoEA2(getNeighborMaterialProperty<
Real>(
"rhoEA")),
47 _p2(getNeighborMaterialProperty<
Real>(
"p")),
49 _rhoA_var(coupled(
"rhoA")),
50 _rhouA_var(coupled(
"rhouA")),
51 _rhoEA_var(coupled(
"rhoEA")),
52 _jmap(getIndexMapping()),
53 _equation_index(_jmap.at(_var.number()))
66 const std::vector<Real> & flux_elem =
68 const std::vector<Real> & flux_neig =
130 std::map<unsigned int, unsigned int>
133 std::map<unsigned int, unsigned int> jmap;
static InputParameters validParams()
Adds side fluxes for the 1-D, 1-phase, variable-area Euler equations.
const VariableValue & _A_neig
unsigned int number() const
virtual Real computeQpResidual(Moose::DGResidualType type)
const VariablePhiValue & _phi_neighbor
const unsigned int _rhoEA_var
const NumericalFlux3EqnBase & _numerical_flux
Numerical flux user object.
Abstract base class for computing and caching internal or boundary fluxes for RDG for the 3-equation ...
static InputParameters validParams()
const VariableTestValue & _test_neighbor
const std::map< unsigned int, unsigned int > _jmap
map of coupled variable index to equations variable index convention
const MaterialProperty< Real > & _rhouA1
std::map< unsigned int, unsigned int > getIndexMapping() const
Creates the mapping of coupled variable index to index in Euler system.
virtual Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar)
const std::string & type() const
const MaterialProperty< Real > & _rhoEA1
const MaterialProperty< Real > & _rhoA2
const unsigned int _rhouA_var
virtual Real computeQpJacobian(Moose::DGJacobianType type)
const VariableTestValue & _test
registerMooseObject("ThermalHydraulicsApp", NumericalFlux3EqnDGKernel)
virtual const std::vector< Real > & getFlux(const unsigned int iside, const dof_id_type ielem, bool res_side_is_left, const std::vector< Real > &UL, const std::vector< Real > &UR, const Real &nLR_dot_d) const
Gets the flux vector for an element/side combination.
const MaterialProperty< Real > & _rhouA2
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
virtual const DenseMatrix< Real > & getJacobian(bool res_side_is_left, bool jac_side_is_left, const unsigned int iside, const dof_id_type ielem, const std::vector< Real > &UL, const std::vector< Real > &UR, const Real &nLR_dot_d) const
Gets the flux Jacobian matrix for an element/side combination.
const Elem *const & _current_elem
const unsigned int & _current_side
const unsigned int _equation_index
index within the Euler system of the equation upon which this kernel acts
const unsigned int _rhoA_var
const VariablePhiValue & _phi
const MaterialProperty< Real > & _rhoEA2
const VariableValue & _A_elem
Area.
NumericalFlux3EqnDGKernel(const InputParameters ¶meters)
const MaterialProperty< Real > & _rhoA1