https://mooseframework.inl.gov
INSFEFluidKernelStabilization.C
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 
11 #include "libmesh/quadrature.h"
12 
15 {
17  return params;
18 }
19 
21  : INSFEFluidKernelBase(parameters),
22  _u_dot(_bTransient ? _var.uDot() : _zero),
23  _du_dot_du(_bTransient ? _var.duDotDu() : _zero),
24  _tauc(getMaterialProperty<Real>("tauc")),
25  _taum(getMaterialProperty<Real>("taum")),
26  _taue(getMaterialProperty<Real>("taue"))
27 {
28 }
29 
30 void
32 {
33  _vel_elem = RealVectorValue(0, 0, 0);
34  // calculating element average velocity
35  for (_qp = 0; _qp < _qrule->n_points(); _qp++)
36  {
37  _vel_elem(0) += _u_vel[_qp];
38  _vel_elem(1) += _v_vel[_qp];
39  _vel_elem(2) += _w_vel[_qp];
40  }
41  _vel_elem(0) = _vel_elem(0) / _qp;
42  _vel_elem(1) = _vel_elem(1) / _qp;
43  _vel_elem(2) = _vel_elem(2) / _qp;
44 }
INSFEFluidKernelStabilization(const InputParameters &parameters)
const VariableValue & _w_vel
This class couples together all the variables for the 3D fluid equations to allow them to be used in ...
const QBase *const & _qrule
const VariableValue & _u_vel
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const VariableValue & _v_vel
static InputParameters validParams()
unsigned int _qp