https://mooseframework.inl.gov
ADRDG3EqnMaterial.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 "Material.h"
14 
16 
25 {
26 public:
28 
29 protected:
30  virtual void computeQpProperties() override;
31  virtual std::vector<ADReal> computeElementPrimitiveVariables(const Elem * elem) const override;
32 
37 
38  // piecewise constant conserved variable values
42 
43  // piecewise constant conserved variables
48 
51 
52  // reconstructed variable values
56 
59 
61  std::vector<MooseVariable *> _U_vars;
62 
64  static const unsigned int _n_slopes = 3;
67  {
68  PRESSURE = 0,
69  VELOCITY = 1,
71  };
72 
73 public:
75 };
ADMaterialProperty< Real > & _rhoA
virtual void computeQpProperties() override
ADMaterialProperty< Real > & _rhouA
const ADVariableValue & _rhoA_avg
static InputParameters validParams()
const ADVariableValue & _A_avg
Cross-sectional area, piecewise constant.
SlopeIndex
Indices for slope array.
static const unsigned int _n_slopes
Number of slopes.
virtual std::vector< ADReal > computeElementPrimitiveVariables(const Elem *elem) const override
Computes the cell-average primitive variable values for an element.
const MaterialProperty< RealVectorValue > & _dir
Flow channel direction.
Common class for single phase fluid properties.
const ADVariableValue & _rhoEA_avg
MooseVariable * _rhouA_var
ADRDG3EqnMaterial(const InputParameters &parameters)
std::vector< MooseVariable * > _U_vars
Solution variables vector.
Interface class for 1-D slope reconstruction.
MooseVariable * _A_var
MooseVariable * _rhoA_var
const ADVariableValue & _A_linear
Cross-sectional area, linear.
const InputParameters & parameters() const
MooseVariable * _rhoEA_var
const SinglePhaseFluidProperties & _fp
fluid properties user object
const ADVariableValue & _rhouA_avg
Reconstructed solution values for the 1-D, 1-phase, variable-area Euler equations.
ADMaterialProperty< Real > & _rhoEA