https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NumericalFlux3EqnDGKernel.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 "DGKernel.h"
13
15
30{
31public:
33
34protected:
37 virtual Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar);
38
44 std::map<unsigned int, unsigned int> getIndexMapping() const;
45
49
50 // reconstructed variable values in this cell
55
56 // reconstructed variable values in neighbor cell
61
64
65 // coupled variable indices
66 const unsigned int _rhoA_var;
67 const unsigned int _rhouA_var;
68 const unsigned int _rhoEA_var;
69
71 const std::map<unsigned int, unsigned int> _jmap;
72
74 const unsigned int _equation_index;
75
76public:
78};
const InputParameters & parameters() const
const std::string & type() const
Abstract base class for computing and caching internal or boundary fluxes for RDG for the 3-equation ...
Adds side fluxes for the 1-D, 1-phase, variable-area Euler equations.
const std::map< unsigned int, unsigned int > _jmap
map of coupled variable index to equations variable index convention
virtual Real computeQpResidual(Moose::DGResidualType type)
const VariableValue & _A_elem
Area.
const NumericalFlux3EqnBase & _numerical_flux
Numerical flux user object.
const MaterialProperty< Real > & _rhouA2
const MaterialProperty< Real > & _rhoEA1
const MaterialProperty< Real > & _p1
const MaterialProperty< Real > & _rhoA1
const MaterialProperty< Real > & _rhoEA2
const unsigned int _equation_index
index within the Euler system of the equation upon which this kernel acts
std::map< unsigned int, unsigned int > getIndexMapping() const
Creates the mapping of coupled variable index to index in Euler system.
virtual Real computeQpJacobian(Moose::DGJacobianType type)
const MaterialProperty< Real > & _p2
static InputParameters validParams()
const MaterialProperty< Real > & _rhouA1
const MaterialProperty< Real > & _rhoA2
virtual Real computeQpOffDiagJacobian(Moose::DGJacobianType type, unsigned int jvar)
VariableValueTempl< false > VariableValue
DGResidualType
DGJacobianType