https://mooseframework.inl.gov
INSFVMomentumViscousSourceRZ.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 "INSFVElementalKernel.h"
13 
20 {
21 public:
24 
26  void gatherRCData(const Elem &) override;
27 
28 protected:
30 
31 private:
35  const unsigned int _rz_radial_coord;
38 
42  ADReal computeCoefficient(const Moose::ElemArg & elem_arg, const Moose::StateArg & state) const;
43 };
An elemental kernel that momentum residual objects that add body forces should inherit from...
const unsigned int _rz_radial_coord
Index of the radial coordinate in an RZ system.
DualNumber< Real, DNDerivativeType, false > ADReal
ADReal computeSegregatedContribution() override
Compute the contribution which goes into the residual of the segregated system.
INSFVMomentumViscousSourceRZ(const InputParameters &params)
void gatherRCData(const FaceInfo &) override final
Should be a non-empty implementation if the residual object is a FVFluxKernel and introduces residual...
Adds the axisymmetric viscous source term (-mu * u_r / r^2) that appears in the Laplacian of the radi...
ADReal computeCoefficient(const Moose::ElemArg &elem_arg, const Moose::StateArg &state) const
Compute the diagonal multiplier for this dof.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Real _expansion_multiplier
Multiplier applied when the complete expansion form is requested.
const Moose::Functor< ADReal > & _mu
Viscosity functor.
void gatherRCData(const Elem &) override
Should be a non-empty implementation if the residual object is a FVElementalKernel and introduces res...