https://mooseframework.inl.gov
Loading...
Searching...
No Matches
INSFEFluidKernelBase.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 "Kernel.h"
14#include "MooseVariable.h"
15
21{
22public:
24
27
28protected:
29 Real velocityDiv() { return _grad_u_vel[_qp](0) + _grad_v_vel[_qp](1) + _grad_w_vel[_qp](2); }
30 RealVectorValue velocityDot() const;
31
33 // Coupled variables
37
43
47
52
53 // Gradients
59
60 // Variable numberings
66
67 // Material properties
73
78 unsigned int mapVarNumber(unsigned int var) const;
79
81
82 RealVectorValue _vec_g;
83};
84
85inline RealVectorValue
87{
88 RealVectorValue vec_vel_dot(_u_vel_dot[_qp], _v_vel_dot[_qp], _w_vel_dot[_qp]);
89 return vec_vel_dot;
90}
OutputTools< Real >::VariableSecond VariableSecond
This class couples together all the variables for the 3D fluid equations to allow them to be used in ...
const VariableGradient & _grad_pressure
const VariableValue & _w_vel
const VariableValue & _temperature
const VariableGradient & _grad_v_vel
const VariableValue & _u_vel
RealVectorValue velocityDot() const
const MaterialProperty< RealTensorValue > & _inertia_resistance_coeff
const MaterialProperty< Real > & _dynamic_viscosity
const VariableValue & _w_vel_dot
const VariableValue & _v_vel_dot
const VariableValue & _v_vel
const SinglePhaseFluidProperties & _eos
const VariableValue & _porosity
const MaterialProperty< Real > & _turbulence_viscosity
const MaterialProperty< RealTensorValue > & _viscous_stress_tensor
const VariableGradient & _grad_w_vel
const MaterialProperty< RealTensorValue > & _viscous_resistance_coeff
const MaterialProperty< Real > & _rho
static InputParameters validParams()
const VariableGradient & _grad_u_vel
const VariableGradient & _grad_temperature
const VariableValue & _u_vel_dot
const VariableSecond & _second_u
unsigned int mapVarNumber(unsigned int var) const
Helper function for mapping Moose variable numberings into the "canonical" numbering for the porous m...
const VariableValue & _pressure
unsigned int _qp
const InputParameters & parameters() const
Common class for single phase fluid properties.
VariableValueTempl< false > VariableValue
VariableGradientTempl< false > VariableGradient