https://mooseframework.inl.gov
Loading...
Searching...
No Matches
INSFEFluidMomentumBC.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
13#include "Function.h"
14
25{
26public:
28
30
31protected:
32 virtual Real computeQpResidual() override;
33 virtual Real computeQpJacobian() override;
34 virtual Real computeQpOffDiagJacobian(unsigned int jvar) override;
35
36private:
40 const bool _p_int_by_parts;
42 const unsigned _component;
48 const bool _has_pbc;
50 const bool _has_vbc;
52 const Function * _p_fn;
54 const Function * _v_fn;
55
56 // variables for branch pressure and density
66 RealVectorValue _vec_g;
69};
This class couples together all the variables for the 3D fluid equations to allow them to be used in ...
Specifies flow of momentum out of a boundary.
virtual Real computeQpJacobian() override
RealVectorValue _vec_g
Gravity vector.
unsigned int _p_branch_var_number
The var number of the branch pressure.
const bool _conservative_form
Whether conservative form to be used for the convection term.
const MaterialProperty< Real > & _mu
Fluid dynamic viscosity.
Point _branch_center
The location of the center (a reference point) of the connected branch.
const Function * _p_fn
The function that specifies the boundary pressure.
bool _has_pbranch
Whether a (SAM) branch component is connected.
virtual Real computeQpResidual() override
const VariableValue & _rho_branch
The fluid density of the connected branch component.
static InputParameters validParams()
const MaterialProperty< Real > & _mu_t
Turbulent viscosity.
const bool _has_vbc
Whether boundary velocity is specified.
const Function * _v_fn
The function that specifies the boundary velocity.
const bool _has_pbc
Whether boundary pressure is specified.
const unsigned _component
The component (x=0, y=1, z=2) of the momentum equation this kernel is applied.
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const VariableValue & _p_branch
The pressure of the connected branch component.
const bool _p_int_by_parts
Whether integration by parts to be used for the pressure gradient term.
const InputParameters & parameters() const
VariableValueTempl< false > VariableValue