https://mooseframework.inl.gov
CNSFVHLLCMomentumSpecifiedPressureBC.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 #include "Function.h"
12 
13 // Full specialization of the validParams function for this object
15 
18 {
20  params.addClassDescription("Implements an HLLC boundary condition for the momentum conservation "
21  "equation in which the pressure is specified.");
22  params.addRequiredParam<FunctionName>("specified_pressure_function",
23  "Specified pressure function");
24  return params;
25 }
26 
28  const InputParameters & parameters)
29  : CNSFVHLLCMomentumImplicitBC(parameters),
30  _pressure_function(getFunction("specified_pressure_function"))
31 {
32 }
33 
34 ADReal
36 {
39 }
40 
41 ADReal
43 {
46 }
const FaceInfo * _face_info
CNSFVHLLCMomentumSpecifiedPressureBC(const InputParameters &parameters)
const Point & faceCentroid() const
DualNumber< Real, DNDerivativeType, true > ADReal
const Function & _pressure_function
function providing the pressure
HLLC implicit boundary conditions for the momentum conservation equation.
const ADMaterialProperty< RealVectorValue > & _vel_elem
void addRequiredParam(const std::string &name, const std::string &doc_string)
const ADMaterialProperty< Real > & _rho_elem
const unsigned int _qp
Real & _t
ADRealVectorValue _normal
HLLC pressure boundary conditions for the momentum conservation equation.
ADReal _normal_speed_boundary
these quantities must be computed in preComputeWaveSpeed
const ADMaterialProperty< Real > & _pressure_elem
virtual ADReal fluxElem() override
both flux functions must be overriden to use given pressure
registerMooseObject("NavierStokesApp", CNSFVHLLCMomentumSpecifiedPressureBC)
void addClassDescription(const std::string &doc_string)
virtual Real value(Real t, const Point &p) const
ADReal _normal_speed_elem
speeds normal to the interface on the element side
ADRealVectorValue _vel_boundary
static InputParameters validParams()