https://mooseframework.inl.gov
Loading...
Searching...
No Matches
NSMomentumPressureWeakStagnationBC.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
13
16{
18 params.addClassDescription("This class implements the pressure term of the momentum equation "
19 "boundary integral for use in weak stagnation boundary conditions.");
20 params.addRequiredParam<unsigned int>(
21 "component", "(0,1,2) = (x,y,z) for which momentum component this BC is applied to");
22 return params;
23}
24
26 const InputParameters & parameters)
27 : NSWeakStagnationBaseBC(parameters), _component(getParam<unsigned int>("component"))
28{
29}
30
31Real
33{
34 // Compute stagnation values
35 Real T_s = 0.0, p_s = 0.0, rho_s = 0.0;
36 staticValues(T_s, p_s, rho_s);
37
38 // (p_s * n_k) * phi_i
39 return (p_s * _normals[_qp](_component)) * _test[_i][_qp];
40}
41
42Real
48
49Real
51{
52 // TODO
53 return 0.0;
54}
registerMooseObject("NavierStokesApp", NSMomentumPressureWeakStagnationBC)
void ErrorVector unsigned int
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
unsigned int _i
const MooseArray< Point > & _normals
const VariableTestValue & _test
This class implements the pressure term of the momentum equation boundary integral for use in weak st...
NSMomentumPressureWeakStagnationBC(const InputParameters &parameters)
This is the base class for "weakly-imposed" stagnation boundary conditions, that is the relevant boun...
void staticValues(Real &T_s, Real &p_s, Real &rho_s)
static InputParameters validParams()