https://mooseframework.inl.gov
PCNSFVHLLCMassBC.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 "PCNSFVHLLCMassBC.h"
11 
14 
15 template <typename T>
18 {
20  params.addClassDescription("Implements the mass boundary flux portion of the porous HLLC "
21  "discretization given specified mass fluxes and fluid temperature");
22  return params;
23 }
24 
25 template <>
28 {
30  params.addClassDescription("Implements the mass boundary flux portion of the porous HLLC "
31  "discretization given specified pressure");
32  return params;
33 }
34 
35 template <typename T>
37 {
38 }
39 
40 template <typename T>
41 ADReal
43 {
44  return this->_normal_speed_elem * this->_eps_elem[this->_qp] * this->_rho_elem[this->_qp];
45 }
46 
47 template <typename T>
48 ADReal
50 {
51  return this->_normal_speed_boundary * this->_eps_boundary * this->_rho_boundary;
52 }
53 
54 template <typename T>
55 ADReal
57 {
58  return 1;
59 }
60 
61 template <typename T>
62 ADReal
64 {
65  return 1;
66 }
67 
68 template <typename T>
69 ADReal
71 {
72  return this->_eps_elem[this->_qp] * this->_rho_elem[this->_qp];
73 }
74 
75 template <typename T>
76 ADReal
78 {
79  return this->_eps_boundary * this->_rho_boundary;
80 }
81 
registerMooseObject("NavierStokesApp", PCNSFVHLLCSpecifiedMassFluxAndTemperatureMassBC)
virtual ADReal fluxElem() override
flux functions on elem & boundary, i.e. standard left/right values of F
PCNSFVHLLCMassBC(const InputParameters &params)
virtual ADReal conservedVariableBoundary() override
DualNumber< Real, DNDerivativeType, true > ADReal
virtual ADReal hllcBoundary() override
InputParameters validParams()
static InputParameters validParams()
virtual ADReal hllcElem() override
HLLC modifications to flux for elem & boundary, see Toro.
Template class for implementing the advective flux in the porous conservation of mass equation at bou...
virtual ADReal conservedVariableElem() override
void addClassDescription(const std::string &doc_string)
virtual ADReal fluxBoundary() override