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 
14 class MomentumFreeSlipBC;
15 
16 template <>
17 InputParameters validParams<MomentumFreeSlipBC>();
18 
22 class MomentumFreeSlipBC : public NodalNormalBC
23 {
24 public:
25  MomentumFreeSlipBC(const InputParameters & parameters);
26  virtual ~MomentumFreeSlipBC();
27 
28  virtual bool shouldApply() override;
29 
30 protected:
31  virtual Real computeQpResidual() override;
32 
34  const unsigned int _mesh_dimension;
35 
37  const VariableValue & _rho_u;
39  const VariableValue & _rho_v;
41  const VariableValue & _rho_w;
42 };
43 
MomentumFreeSlipBC::shouldApply
virtual bool shouldApply() override
Definition: MomentumFreeSlipBC.C:43
MomentumFreeSlipBC::computeQpResidual
virtual Real computeQpResidual() override
Definition: MomentumFreeSlipBC.C:50
MomentumFreeSlipBC::_mesh_dimension
const unsigned int _mesh_dimension
The dimension of the mesh.
Definition: MomentumFreeSlipBC.h:34
MomentumFreeSlipBC
Boundary condition that applies free slip condition at nodes.
Definition: MomentumFreeSlipBC.h:22
MomentumFreeSlipBC::_rho_w
const VariableValue & _rho_w
Momentum in z-direction.
Definition: MomentumFreeSlipBC.h:41
MomentumFreeSlipBC::MomentumFreeSlipBC
MomentumFreeSlipBC(const InputParameters &parameters)
Definition: MomentumFreeSlipBC.C:31
MomentumFreeSlipBC::_rho_v
const VariableValue & _rho_v
Momentum in y-direction.
Definition: MomentumFreeSlipBC.h:39
MomentumFreeSlipBC::~MomentumFreeSlipBC
virtual ~MomentumFreeSlipBC()
Definition: MomentumFreeSlipBC.C:40
MomentumFreeSlipBC::_rho_u
const VariableValue & _rho_u
Momentum in x-direction.
Definition: MomentumFreeSlipBC.h:37
validParams< MomentumFreeSlipBC >
InputParameters validParams< MomentumFreeSlipBC >()
Definition: MomentumFreeSlipBC.C:21