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  std::vector<const ADVariableValue *> _passives_times_area_avg;
43 
44  // piecewise constant conserved variables
49 
51  const unsigned int _n_passives;
52 
55 
56  // reconstructed variable values
61 
64 
66  std::vector<MooseVariable *> _U_vars;
67 
69  static const unsigned int _n_slopes = 3;
72  {
73  PRESSURE = 0,
74  VELOCITY = 1,
76  };
77 
78 public:
80 };
ADMaterialProperty< Real > & _rhoA
virtual void computeQpProperties() override
ADMaterialProperty< Real > & _rhouA
std::vector< const ADVariableValue * > _passives_times_area_avg
const ADVariableValue & _rhoA_avg
static InputParameters validParams()
const InputParameters & parameters() const
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.
VariableValueTempl< true > ADVariableValue
const ADVariableValue & _rhoEA_avg
ADMaterialProperty< std::vector< Real > > & _passives_times_area
MooseVariable * _rhouA_var
ADRDG3EqnMaterial(const InputParameters &parameters)
std::vector< MooseVariable * > _U_vars
Solution variables vector.
Interface class for 1-D slope reconstruction.
const unsigned int _n_passives
Number of passive transport variables.
MooseVariable * _A_var
MooseVariable * _rhoA_var
const ADVariableValue & _A_linear
Cross-sectional area, linear.
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