https://mooseframework.inl.gov
Loading...
Searching...
No Matches
INSADMassPSPG.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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
13
16{
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
registerMooseObject("NavierStokesApp", INSADMassPSPG)
static InputParameters validParams()
This class adds PSPG stabilization to the mass equation, enabling use of equal order shape functions ...
ADRealVectorValue precomputeQpResidual() override
const ADMaterialProperty< Real > & _rho
The density.
const ADMaterialProperty< RealVectorValue > & _momentum_strong_residual
The strong residual of the momentum equation, computed using INSADMaterial.
const ADMaterialProperty< Real > & _tau
The stabilization parameter tau.
static InputParameters validParams()
INSADMassPSPG(const InputParameters &parameters)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp