https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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{
26public:
28
29protected:
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 {
75 TEMPERATURE = 2
76 };
77
78public:
80};
Reconstructed solution values for the 1-D, 1-phase, variable-area Euler equations.
std::vector< MooseVariable * > _U_vars
Solution variables vector.
virtual std::vector< ADReal > computeElementPrimitiveVariables(const Elem *elem) const override
Computes the cell-average primitive variable values for an element.
ADMaterialProperty< Real > & _rhoA
SlopeIndex
Indices for slope array.
const SinglePhaseFluidProperties & _fp
fluid properties user object
const MaterialProperty< RealVectorValue > & _dir
Flow channel direction.
MooseVariable * _A_var
const unsigned int _n_passives
Number of passive transport variables.
static const unsigned int _n_slopes
Number of slopes.
MooseVariable * _rhouA_var
ADMaterialProperty< Real > & _rhouA
ADMaterialProperty< Real > & _rhoEA
const ADVariableValue & _A_linear
Cross-sectional area, linear.
virtual void computeQpProperties() override
MooseVariable * _rhoA_var
const ADVariableValue & _rhoEA_avg
const ADVariableValue & _rhoA_avg
ADMaterialProperty< std::vector< Real > > & _passives_times_area
const ADVariableValue & _A_avg
Cross-sectional area, piecewise constant.
const ADVariableValue & _rhouA_avg
std::vector< const ADVariableValue * > _passives_times_area_avg
MooseVariable * _rhoEA_var
static InputParameters validParams()
const InputParameters & parameters() const
Common class for single phase fluid properties.
Interface class for 1-D slope reconstruction.
VariableValueTempl< true > ADVariableValue