https://mooseframework.inl.gov
NSMassWeakStagnationBC.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 
10 #include "NSMassWeakStagnationBC.h"
11 
13 
16 {
18  params.addClassDescription("The inviscid energy BC term with specified normal flow.");
19  return params;
20 }
21 
23  : NSWeakStagnationBaseBC(parameters)
24 {
25 }
26 
27 Real
29 {
30  // rho_s * |u| * (s.n) * phi_i
31  return rhoStatic() * std::sqrt(this->velmag2()) * this->sdotn() * _test[_i][_qp];
32 }
33 
34 Real
36 {
37  // TODO
38  return 0.0;
39 }
40 
41 Real
43 {
44  // TODO
45  return 0.0;
46 }
const VariableTestValue & _test
The inviscid energy BC term with specified normal flow.
unsigned int _i
NSMassWeakStagnationBC(const InputParameters &parameters)
unsigned int _qp
static InputParameters validParams()
static InputParameters validParams()
registerMooseObject("NavierStokesApp", NSMassWeakStagnationBC)
virtual Real computeQpOffDiagJacobian(unsigned jvar)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
This is the base class for "weakly-imposed" stagnation boundary conditions, that is the relevant boun...