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 
14 template <>
15 InputParameters
17 {
18  InputParameters params = validParams<NSWeakStagnationBaseBC>();
19  params.addClassDescription("This class implements the pressure term of the momentum equation "
20  "boundary integral for use in weak stagnation boundary conditions.");
21  params.addRequiredParam<unsigned int>(
22  "component", "(0,1,2) = (x,y,z) for which momentum component this BC is applied to");
23  return params;
24 }
25 
27  const InputParameters & parameters)
28  : NSWeakStagnationBaseBC(parameters), _component(getParam<unsigned int>("component"))
29 {
30 }
31 
32 Real
34 {
35  // Compute stagnation values
36  Real T_s = 0.0, p_s = 0.0, rho_s = 0.0;
37  staticValues(T_s, p_s, rho_s);
38 
39  // (p_s * n_k) * phi_i
40  return (p_s * _normals[_qp](_component)) * _test[_i][_qp];
41 }
42 
43 Real
45 {
46  // TODO
47  return 0.0;
48 }
49 
50 Real
52 {
53  // TODO
54  return 0.0;
55 }
NSMomentumPressureWeakStagnationBC::computeQpResidual
virtual Real computeQpResidual()
Definition: NSMomentumPressureWeakStagnationBC.C:33
registerMooseObject
registerMooseObject("NavierStokesApp", NSMomentumPressureWeakStagnationBC)
NSMomentumPressureWeakStagnationBC::NSMomentumPressureWeakStagnationBC
NSMomentumPressureWeakStagnationBC(const InputParameters &parameters)
Definition: NSMomentumPressureWeakStagnationBC.C:26
NSWeakStagnationBaseBC
This is the base class for "weakly-imposed" stagnation boundary conditions, that is the relevant boun...
Definition: NSWeakStagnationBaseBC.h:27
NSMomentumPressureWeakStagnationBC::computeQpJacobian
virtual Real computeQpJacobian()
Definition: NSMomentumPressureWeakStagnationBC.C:44
NSMomentumPressureWeakStagnationBC::_component
const unsigned int _component
Definition: NSMomentumPressureWeakStagnationBC.h:36
NSWeakStagnationBaseBC::staticValues
void staticValues(Real &T_s, Real &p_s, Real &rho_s)
Definition: NSWeakStagnationBaseBC.C:42
validParams< NSMomentumPressureWeakStagnationBC >
InputParameters validParams< NSMomentumPressureWeakStagnationBC >()
Definition: NSMomentumPressureWeakStagnationBC.C:16
NSMomentumPressureWeakStagnationBC
This class implements the pressure term of the momentum equation boundary integral for use in weak st...
Definition: NSMomentumPressureWeakStagnationBC.h:25
NSMomentumPressureWeakStagnationBC.h
NSMomentumPressureWeakStagnationBC::computeQpOffDiagJacobian
virtual Real computeQpOffDiagJacobian(unsigned jvar)
Definition: NSMomentumPressureWeakStagnationBC.C:51
validParams< NSWeakStagnationBaseBC >
InputParameters validParams< NSWeakStagnationBaseBC >()
Definition: NSWeakStagnationBaseBC.C:18