https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
40
DualNumber< Real, DNDerivativeType, true > ADReal
registerMooseObject("NavierStokesApp", CNSFVHLLCMomentumSpecifiedPressureBC)
ADReal _normal_speed_elem
speeds normal to the interface on the element side
const ADMaterialProperty< RealVectorValue > & _vel_elem
ADRealVectorValue _vel_boundary
ADReal _normal_speed_boundary
these quantities must be computed in preComputeWaveSpeed
const ADMaterialProperty< Real > & _pressure_elem
const ADMaterialProperty< Real > & _rho_elem
HLLC implicit boundary conditions for the momentum conservation equation.
HLLC pressure boundary conditions for the momentum conservation equation.
const Function & _pressure_function
function providing the pressure
CNSFVHLLCMomentumSpecifiedPressureBC(const InputParameters &parameters)
virtual ADReal fluxElem() override
both flux functions must be overriden to use given pressure
const FaceInfo * _face_info
ADRealVectorValue _normal
const unsigned int _qp
const Point & faceCentroid() const
virtual Real value(Real t, const Point &p) const
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
Real & _t