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