https://mooseframework.inl.gov
Loading...
Searching...
No Matches
INSFVMomentumDiffusion.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 "MathFVUtils.h"
13#include "INSFVFluxKernel.h"
18
20{
21public:
25 void gatherRCData(const FaceInfo & fi) override final;
26
27 // To get warnings tracked in the SolutionInvalidityOutput
29
30protected:
35 virtual ADReal computeStrongResidual(const bool populate_a_coeffs);
36
37 virtual ADReal computeSegregatedContribution() override;
38
41
44
47
50
57
60
63
66
68 const unsigned int _dim;
69
71 const bool _newton_solve;
72};
DualNumber< Real, DNDerivativeType, true > ADReal
A flux kernel that momentum residual objects that add non-advection flux terms, or more specifically ...
void gatherRCData(const Elem &) override final
Should be a non-empty implementation if the residual object is a FVElementalKernel and introduces res...
ADReal _ae
The a coefficient for the element.
ADReal _an
The a coefficient for the neighbor.
const bool _include_isotropic_viscous_stress
Whether to add the -(2/3) mu div(u) I contribution.
const Moose::Functor< ADReal > *const _v_var
y-velocity
const unsigned int _dim
dimension
const Moose::Functor< ADReal > *const _w_var
z-velocity
const bool _newton_solve
For Newton solves we want to add extra zero-valued terms to avoid sparsity pattern changes.
const Moose::FV::InterpMethod _mu_interp_method
The face interpolation method for the viscosity.
const Moose::Functor< ADReal > *const _u_var
x-velocity
virtual ADReal computeStrongResidual(const bool populate_a_coeffs)
Routine to compute this object's strong residual (e.g.
static InputParameters validParams()
const bool _limit_interpolation
Boolean parameter to limit interpolation.
virtual ADReal computeSegregatedContribution() override
Compute the contribution which goes into the residual of the segregated system.
const Moose::Functor< ADReal > & _mu
The dynamic viscosity.
void gatherRCData(const FaceInfo &fi) override final
Should be a non-empty implementation if the residual object is a FVFluxKernel and introduces residual...
const bool _complete_expansion
Boolean parameter to include the complete momentum expansion.