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