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