https://mooseframework.inl.gov
Loading...
Searching...
No Matches
CNSFVHLLCFluidEnergyBC.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
11
14
15template <typename T>
18{
19 InputParameters params = T::validParams();
21 "Implements the fluid energy boundary flux portion of the free-flow HLLC "
22 "discretization given specified mass fluxes and fluid temperature");
23 return params;
24}
25
26template <>
29{
32 "Implements the fluid energy boundary flux portion of the free-flow HLLC "
33 "discretization given specified pressure");
34 return params;
35}
36
37template <typename T>
41
42template <typename T>
45{
46 return this->_normal_speed_elem * this->_rho_elem[this->_qp] * this->_ht_elem[this->_qp];
47}
48
49template <typename T>
52{
53 return this->_normal_speed_boundary * this->_rho_boundary * this->_ht_boundary;
54}
55
56template <typename T>
59{
60 return this->_rho_et_elem[this->_qp] / this->_rho_elem[this->_qp] +
61 (this->_SM - this->_normal_speed_elem) *
62 (this->_SM + this->_pressure_elem[this->_qp] / this->_rho_elem[this->_qp] /
63 (this->_SL - this->_normal_speed_elem));
64}
65
66template <typename T>
69{
70 return this->_rho_et_boundary / this->_rho_boundary +
71 (this->_SM - this->_normal_speed_boundary) *
72 (this->_SM + this->_pressure_boundary / this->_rho_boundary /
73 (this->_SR - this->_normal_speed_boundary));
74}
75
76template <typename T>
79{
80 return this->_rho_et_elem[this->_qp];
81}
82
83template <typename T>
86{
87 return this->_rho_et_boundary;
88}
89
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", CNSFVHLLCSpecifiedMassFluxAndTemperatureFluidEnergyBC)
const double T
Template class for implementing the advective flux in the conservation of fluid energy equation at bo...
virtual ADReal fluxBoundary() override
CNSFVHLLCFluidEnergyBC(const InputParameters &params)
static InputParameters validParams()
virtual ADReal fluxElem() override
flux functions on elem & boundary, i.e. standard left/right values of F
virtual ADReal hllcElem() override
HLLC modifications to flux for elem & boundary, see Toro.
virtual ADReal hllcBoundary() override
virtual ADReal conservedVariableElem() override
virtual ADReal conservedVariableBoundary() override
void addClassDescription(const std::string &doc_string)