www.mooseframework.org
MomentumFreeSlipBC.h
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 
10 #pragma once
11 
12 #include "NodalNormalBC.h"
13 
18 {
19 public:
21 
23  virtual ~MomentumFreeSlipBC();
24 
25  virtual bool shouldApply() override;
26  virtual void computeResidual() override;
27 
28 protected:
29  Real computeQpResidual() override { mooseError("Function unused"); }
30 
32  const unsigned int _mesh_dimension;
33 
40 
42  const MooseVariable * const _rho_u_var;
44  const MooseVariable * const _rho_v_var;
46  const MooseVariable * const _rho_w_var;
47 };
const MooseVariable *const _rho_u_var
x-velocity variable
const VariableValue & _rho_w
Momentum in z-direction.
static InputParameters validParams()
Boundary condition that applies free slip condition at nodes.
const MooseVariable *const _rho_w_var
z-velocity variable
MomentumFreeSlipBC(const InputParameters &parameters)
virtual void computeResidual() override
virtual bool shouldApply() override
const VariableValue & _rho_v
Momentum in y-direction.
OutputTools< Real >::VariableValue VariableValue
Real computeQpResidual() override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
const InputParameters & parameters() const
const MooseVariable *const _rho_v_var
y-velocity variable
const VariableValue & _rho_u
Momentum in x-direction.
const unsigned int _mesh_dimension
The dimension of the mesh.