www.mooseframework.org
NSMomentumPressureWeakStagnationBC.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 
31 Real
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 
42 Real
44 {
45  // TODO
46  return 0.0;
47 }
48 
49 Real
51 {
52  // TODO
53  return 0.0;
54 }
const VariableTestValue & _test
registerMooseObject("NavierStokesApp", NSMomentumPressureWeakStagnationBC)
const MooseArray< Point > & _normals
static const std::string rho_s
Definition: NS.h:117
NSMomentumPressureWeakStagnationBC(const InputParameters &parameters)
unsigned int _i
void addRequiredParam(const std::string &name, const std::string &doc_string)
unsigned int _qp
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void staticValues(Real &T_s, Real &p_s, Real &rho_s)
void addClassDescription(const std::string &doc_string)
This class implements the pressure term of the momentum equation boundary integral for use in weak st...
void ErrorVector unsigned int
This is the base class for "weakly-imposed" stagnation boundary conditions, that is the relevant boun...