https://mooseframework.inl.gov
CNSFVFluidEnergyHLLC.C
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 #include "CNSFVFluidEnergyHLLC.h"
11 #include "NS.h"
12 
13 namespace nms = NS;
14 
15 // Full specialization of the validParams function for this object
17 
20 {
22  params.addClassDescription(
23  "Implements the fluid energy flux portion of the free-flow HLLC discretization.");
24  return params;
25 }
26 
28  : CNSFVHLLC(params),
29  _ht_elem(getADMaterialProperty<Real>(nms::specific_total_enthalpy)),
30  _ht_neighbor(getNeighborADMaterialProperty<Real>(nms::specific_total_enthalpy))
31 {
32 }
33 
34 ADReal
36 {
38 }
39 
40 ADReal
42 {
44 }
45 
46 ADReal
48 {
49  return _rho_et_elem[_qp] / _rho_elem[_qp] +
52 }
53 
54 ADReal
56 {
60 }
61 
62 ADReal
64 {
65  return _rho_et_elem[_qp];
66 }
67 
68 ADReal
70 {
71  return _rho_et_neighbor[_qp];
72 }
Implements the advective flux in the conservation of fluid energy equation using a HLLC discretizatio...
ADReal _SL
the wave speeds
Definition: CNSFVHLLCBase.h:64
virtual ADReal conservedVariableNeighbor() override
virtual ADReal hllcElem() override
HLLC modifications to flux for elem & neighbor, see Toro.
ADReal _normal_speed_neighbor
Definition: CNSFVHLLCBase.h:71
virtual ADReal fluxNeighbor() override
registerADMooseObject("NavierStokesApp", CNSFVFluidEnergyHLLC)
static InputParameters validParams()
Definition: CNSFVHLLC.C:13
DualNumber< Real, DNDerivativeType, true > ADReal
const ADMaterialProperty< Real > & _rho_neighbor
Definition: CNSFVHLLCBase.h:97
const unsigned int _qp
Base class for HLLC inter-cell flux kernels.
Definition: CNSFVHLLC.h:19
const ADMaterialProperty< Real > & _rho_et_elem
Definition: CNSFVHLLCBase.h:82
ADReal _normal_speed_elem
speeds normal to the interface
Definition: CNSFVHLLCBase.h:70
CNSFVFluidEnergyHLLC(const InputParameters &params)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
const ADMaterialProperty< Real > & _pressure_neighbor
static const std::string specific_total_enthalpy
Definition: NS.h:69
const ADMaterialProperty< Real > & _rho_et_neighbor
Definition: CNSFVHLLCBase.h:83
void addClassDescription(const std::string &doc_string)
virtual ADReal fluxElem() override
flux functions on elem & neighbor, i.e. standard left/right values of F
const ADMaterialProperty< Real > & _ht_neighbor
const ADMaterialProperty< Real > & _ht_elem
enthalpies left == elem, right == neighbor
const ADMaterialProperty< Real > & _rho_elem
densities left == elem, right == neighbor
Definition: CNSFVHLLCBase.h:96
const ADMaterialProperty< Real > & _pressure_elem
pressures left == elem, right == neighbor
virtual ADReal conservedVariableElem() override
virtual ADReal hllcNeighbor() override