https://mooseframework.inl.gov
CNSFVHLLCMassStagnationInletBC.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 
12 // Full specialization of the validParams function for this object
14 
17 {
19  params.addClassDescription(
20  "Adds the boundary mass flux for HLLC when provided stagnation temperature and pressure");
21  return params;
22 }
23 
25  : CNSFVHLLCStagnationInletBC(parameters)
26 {
27 }
28 
29 ADReal
31 {
33 }
34 
35 ADReal
37 {
39 }
40 
41 ADReal
43 {
44  return 1;
45 }
46 
47 ADReal
49 {
50  return 1;
51 }
52 
53 ADReal
55 {
56  return _rho_elem[_qp];
57 }
58 
59 ADReal
61 {
62  return _rho_boundary;
63 }
Base class for the HLLC stagnation inlet boundary conditions.
virtual ADReal conservedVariableBoundary() override
virtual ADReal conservedVariableElem() override
conserved variable of this equation from elem and boundary
registerADMooseObject("NavierStokesApp", CNSFVHLLCMassStagnationInletBC)
DualNumber< Real, DNDerivativeType, true > ADReal
const ADMaterialProperty< Real > & _rho_elem
const unsigned int _qp
HLLC stagnation inlet boundary conditions for the mass conservation equation.
CNSFVHLLCMassStagnationInletBC(const InputParameters &parameters)
ADReal _normal_speed_boundary
these quantities must be computed in preComputeWaveSpeed
virtual ADReal fluxElem() override
flux functions on elem & from boundary
virtual ADReal hllcElem() override
HLLC modifications to flux for elem & boundary, see Toro.
static InputParameters validParams()
void addClassDescription(const std::string &doc_string)
ADReal _normal_speed_elem
speeds normal to the interface on the element side