www.mooseframework.org
INSADMomentumAdvection.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 "INSADMomentumAdvection.h"
11 
13 
16  ADVectorKernelValue,
17  params.addClassDescription("Adds the convective term to the INS momentum equation"););
18 
19 template <ComputeStage compute_stage>
21  : ADVectorKernelValue<compute_stage>(parameters),
22  _convective_strong_residual(
23  getADMaterialProperty<RealVectorValue>("convective_strong_residual"))
24 {
25 }
26 
27 template <ComputeStage compute_stage>
28 ADRealVectorValue
30 {
31  return _convective_strong_residual[_qp];
32 }
INSADMomentumAdvection::INSADMomentumAdvection
INSADMomentumAdvection(const InputParameters &parameters)
Definition: INSADMomentumAdvection.C:20
registerADMooseObject
registerADMooseObject("NavierStokesApp", INSADMomentumAdvection)
INSADMomentumAdvection.h
INSADMomentumAdvection::precomputeQpResidual
virtual ADRealVectorValue precomputeQpResidual() override
Definition: INSADMomentumAdvection.C:29
INSADMomentumAdvection
This class computes the momentum equation residual and Jacobian contributions for the convective term...
Definition: INSADMomentumAdvection.h:16
defineADValidParams
defineADValidParams(INSADMomentumAdvection, ADVectorKernelValue, params.addClassDescription("Adds the convective term to the INS momentum equation");)