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

This class computes the momentum equation residual and Jacobian contributions for the pressure term of the incompressible Navier-Stokes momentum equation. More...

#include <INSADMomentumPressure.h>

Inheritance diagram for INSADMomentumPressure< compute_stage >:
[legend]

Public Member Functions

 INSADMomentumPressure (const InputParameters &parameters)
 

Protected Member Functions

virtual ADResidual computeQpResidual () override
 

Protected Attributes

const bool _integrate_p_by_parts
 
const ADVariableValue & _p
 
const ADVariableGradient & _grad_p
 
 usingVectorKernelMembers
 

Detailed Description

template<ComputeStage compute_stage>
class INSADMomentumPressure< compute_stage >

This class computes the momentum equation residual and Jacobian contributions for the pressure term of the incompressible Navier-Stokes momentum equation.

Definition at line 17 of file INSADMomentumPressure.h.

Constructor & Destructor Documentation

◆ INSADMomentumPressure()

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

Definition at line 24 of file INSADMomentumPressure.C.

25  : ADVectorKernel<compute_stage>(parameters),
26  _integrate_p_by_parts(adGetParam<bool>("integrate_p_by_parts")),
27  _p(adCoupledValue("p")),
28  _grad_p(adCoupledGradient("p"))
29 {
30 }
const ADVariableGradient & _grad_p
const ADVariableValue & _p

Member Function Documentation

◆ computeQpResidual()

template<ComputeStage compute_stage>
ADResidual INSADMomentumPressure< compute_stage >::computeQpResidual ( )
overrideprotectedvirtual

Definition at line 34 of file INSADMomentumPressure.C.

35 {
37  return -_p[_qp] * _grad_test[_i][_qp].tr();
38  else
39  return _test[_i][_qp] * _grad_p[_qp];
40 }
const ADVariableGradient & _grad_p
const ADVariableValue & _p

Member Data Documentation

◆ _grad_p

template<ComputeStage compute_stage>
const ADVariableGradient& INSADMomentumPressure< compute_stage >::_grad_p
protected

Definition at line 37 of file INSADMomentumPressure.h.

◆ _integrate_p_by_parts

template<ComputeStage compute_stage>
const bool INSADMomentumPressure< compute_stage >::_integrate_p_by_parts
protected

Definition at line 35 of file INSADMomentumPressure.h.

◆ _p

template<ComputeStage compute_stage>
const ADVariableValue& INSADMomentumPressure< compute_stage >::_p
protected

Definition at line 36 of file INSADMomentumPressure.h.

◆ usingVectorKernelMembers

template<ComputeStage compute_stage>
INSADMomentumPressure< compute_stage >::usingVectorKernelMembers
protected

Definition at line 39 of file INSADMomentumPressure.h.


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