www.mooseframework.org
INSADMomentumTimeDerivative.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 
11 
13 
16  ADTimeKernelValue,
17  params.addClassDescription("This class computes the time derivative for the incompressible "
18  "Navier-Stokes momentum equation.");
19  params.addCoupledVar("temperature",
20  "The temperature on which material properties may depend. If properties "
21  "do depend on temperature, this variable must be coupled in in order to "
22  "correctly resize the element matrix");
23  params.addParam<MaterialPropertyName>("rho_name", "rho", "density name"););
24 
25 template <ComputeStage compute_stage>
27  const InputParameters & parameters)
28  : ADVectorTimeKernelValue<compute_stage>(parameters),
29  _rho(getADMaterialProperty<Real>("rho_name"))
30 {
31 }
32 
33 template <ComputeStage compute_stage>
34 ADRealVectorValue
36 {
37  return _rho[_qp] * _u_dot[_qp];
38 }
INSADMomentumTimeDerivative.h
INSADMomentumTimeDerivative::INSADMomentumTimeDerivative
INSADMomentumTimeDerivative(const InputParameters &parameters)
Definition: INSADMomentumTimeDerivative.C:26
defineADValidParams
defineADValidParams(INSADMomentumTimeDerivative, ADTimeKernelValue, params.addClassDescription("This class computes the time derivative for the incompressible " "Navier-Stokes momentum equation.");params.addCoupledVar("temperature", "The temperature on which material properties may depend. If properties " "do depend on temperature, this variable must be coupled in in order to " "correctly resize the element matrix");params.addParam< MaterialPropertyName >("rho_name", "rho", "density name");)
registerADMooseObject
registerADMooseObject("NavierStokesApp", INSADMomentumTimeDerivative)
INSADMomentumTimeDerivative
This class computes the time derivative for the incompressible Navier-Stokes momentum equation.
Definition: INSADMomentumTimeDerivative.h:16
INSADMomentumTimeDerivative::precomputeQpResidual
virtual ADRealVectorValue precomputeQpResidual() override
Definition: INSADMomentumTimeDerivative.C:35