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