https://mooseframework.inl.gov
LinearFVRZViscousSource.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 <array>
14 
22 {
23 public:
25 
27 
28 protected:
31 
32 private:
36  const unsigned int _component;
38  const unsigned int _rz_radial_coord;
40  const unsigned int _dim;
47 
49  std::array<MooseLinearVariableFVReal *, 2> _velocity_vars;
50 
52  const MooseLinearVariableFVReal & velocityVar(unsigned int dir) const;
53 };
const bool _use_deviatoric_terms
Whether the deviatoric correction (-2/3 div u) is requested.
const Moose::Functor< Real > & _mu
Dynamic viscosity functor evaluated at each element.
Real computeMatrixContribution() override
std::array< MooseLinearVariableFVReal *, 2 > _velocity_vars
Cached pointers to the velocity components required to build divergence.
const MooseLinearVariableFVReal & velocityVar(unsigned int dir) const
Helper to access the velocity variable for a given direction.
Adds the axisymmetric viscous source term that appears in the vector Laplacian of cylindrical coordi...
const unsigned int _rz_radial_coord
Index of the radial coordinate for the current mesh (0 -> x, 1 -> y, ...)
const Moose::CoordinateSystemType _coord_type
Coordinate system of the active blocks (must be COORD_RZ)
static InputParameters validParams()
Real computeRightHandSideContribution() override
const unsigned int _dim
Spatial dimension of the mesh.
LinearFVRZViscousSource(const InputParameters &params)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
CoordinateSystemType
const Real _stress_multiplier
Precomputed factor (1 or 2) multiplying the implicit hoop term.
const unsigned int _component
Momentum component this source acts on (should equal the radial direction)