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