www.mooseframework.org
INSADMassPSPG.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 "INSADMassPSPG.h"
11 
12 registerMooseObject("NavierStokesApp", INSADMassPSPG);
13 
16 {
18  params.addClassDescription(
19  "This class adds PSPG stabilization to the mass equation, enabling use of "
20  "equal order shape functions for pressure and velocity variables");
21  params.addParam<MaterialPropertyName>("rho_name", "rho", "The name of the density");
22  return params;
23 }
24 
26  : ADKernelGrad(parameters),
27  _rho(getADMaterialProperty<Real>("rho_name")),
28  _tau(getADMaterialProperty<Real>("tau")),
29  _momentum_strong_residual(getADMaterialProperty<RealVectorValue>("momentum_strong_residual"))
30 {
31 }
32 
35 {
37 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static InputParameters validParams()
registerMooseObject("NavierStokesApp", INSADMassPSPG)
INSADMassPSPG(const InputParameters &parameters)
Definition: INSADMassPSPG.C:25
This class adds PSPG stabilization to the mass equation, enabling use of equal order shape functions ...
Definition: INSADMassPSPG.h:18
ADRealVectorValue precomputeQpResidual() override
Definition: INSADMassPSPG.C:34
const ADMaterialProperty< Real > & _rho
The density.
Definition: INSADMassPSPG.h:29
const ADMaterialProperty< RealVectorValue > & _momentum_strong_residual
The strong residual of the momentum equation, computed using INSADMaterial.
Definition: INSADMassPSPG.h:33
const ADMaterialProperty< Real > & _tau
The stabilization parameter tau.
Definition: INSADMassPSPG.h:31
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
Definition: INSADMassPSPG.C:15
unsigned int _qp