www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
INSADMassPSPG< compute_stage > Class Template Reference

This class adds PSPG stabilization to the mass equation, enabling use of equal order shape functions for pressure and velocity variables. More...

#include <INSADMassPSPG.h>

Inheritance diagram for INSADMassPSPG< compute_stage >:
[legend]

Public Member Functions

 INSADMassPSPG (const InputParameters &parameters)
 

Protected Member Functions

ADVectorResidual precomputeQpResidual () override
 
const ADMaterialProperty (Real) &_rho
 The density. More...
 
const ADMaterialProperty (Real) &_tau
 The stabilization parameter tau. More...
 
const ADMaterialProperty (RealVectorValue) &_momentum_strong_residual
 The strong residual of the momentum equation, computed using INSADMaterial. More...
 

Protected Attributes

 usingKernelGradMembers
 

Detailed Description

template<ComputeStage compute_stage>
class INSADMassPSPG< compute_stage >

This class adds PSPG stabilization to the mass equation, enabling use of equal order shape functions for pressure and velocity variables.

Definition at line 17 of file INSADMassPSPG.h.

Constructor & Destructor Documentation

◆ INSADMassPSPG()

template<ComputeStage compute_stage>
INSADMassPSPG< compute_stage >::INSADMassPSPG ( const InputParameters &  parameters)

Definition at line 24 of file INSADMassPSPG.C.

25  : ADKernelGrad<compute_stage>(parameters),
26  _rho(adGetADMaterialProperty<Real>("rho_name")),
27  _tau(adGetADMaterialProperty<Real>("tau")),
28  _momentum_strong_residual(adGetADMaterialProperty<RealVectorValue>("momentum_strong_residual"))
29 {
30 }

Member Function Documentation

◆ ADMaterialProperty() [1/3]

template<ComputeStage compute_stage>
const INSADMassPSPG< compute_stage >::ADMaterialProperty ( Real  ) &
protected

The density.

◆ ADMaterialProperty() [2/3]

template<ComputeStage compute_stage>
const INSADMassPSPG< compute_stage >::ADMaterialProperty ( Real  ) &
protected

The stabilization parameter tau.

◆ ADMaterialProperty() [3/3]

template<ComputeStage compute_stage>
const INSADMassPSPG< compute_stage >::ADMaterialProperty ( RealVectorValue  ) &
protected

The strong residual of the momentum equation, computed using INSADMaterial.

◆ precomputeQpResidual()

template<ComputeStage compute_stage>
ADVectorResidual INSADMassPSPG< compute_stage >::precomputeQpResidual ( )
overrideprotected

Definition at line 34 of file INSADMassPSPG.C.

35 {
36  return -_tau[_qp] / _rho[_qp] * _momentum_strong_residual[_qp];
37 }

Member Data Documentation

◆ usingKernelGradMembers

template<ComputeStage compute_stage>
INSADMassPSPG< compute_stage >::usingKernelGradMembers
protected

Definition at line 41 of file INSADMassPSPG.h.


The documentation for this class was generated from the following files: