www.mooseframework.org
INSADMomentumViscous.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
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 #include "INSADMomentumViscous.h"
11 
13 
16  ADVectorKernelGrad,
17  params.addClassDescription("Adds the viscous term to the INS momentum equation");
18  params.addParam<MaterialPropertyName>("mu_name",
19  "mu",
20  "The name of the viscosity material property"););
21 
22 template <ComputeStage compute_stage>
24  : ADVectorKernelGrad<compute_stage>(parameters), _mu(getADMaterialProperty<Real>("mu_name"))
25 {
26 }
27 
28 template <ComputeStage compute_stage>
29 ADRealTensorValue
31 {
32  return _mu[_qp] * _grad_u[_qp];
33 }
INSADMomentumViscous::precomputeQpResidual
virtual ADRealTensorValue precomputeQpResidual() override
Definition: INSADMomentumViscous.C:30
INSADMomentumViscous.h
INSADMomentumViscous::INSADMomentumViscous
INSADMomentumViscous(const InputParameters &parameters)
Definition: INSADMomentumViscous.C:23
registerADMooseObject
registerADMooseObject("NavierStokesApp", INSADMomentumViscous)
INSADMomentumViscous
This class computes the momentum equation residual and Jacobian contributions for the viscous term of...
Definition: INSADMomentumViscous.h:16
defineADValidParams
defineADValidParams(INSADMomentumViscous, ADVectorKernelGrad, params.addClassDescription("Adds the viscous term to the INS momentum equation");params.addParam< MaterialPropertyName >("mu_name", "mu", "The name of the viscosity material property");)