www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
PressureGradient Class Reference

#include <PressureGradient.h>

Inheritance diagram for PressureGradient:
[legend]

Public Member Functions

 PressureGradient (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 

Protected Attributes

unsigned int _component
 
const VariableValue & _pressure
 

Detailed Description

Definition at line 23 of file PressureGradient.h.

Constructor & Destructor Documentation

◆ PressureGradient()

PressureGradient::PressureGradient ( const InputParameters &  parameters)

Definition at line 24 of file PressureGradient.C.

25  : Kernel(parameters),
26  _component(getParam<unsigned int>("component")),
27  _pressure(coupledValue("pressure"))
28 {
29 }
const VariableValue & _pressure
unsigned int _component

Member Function Documentation

◆ computeQpJacobian()

Real PressureGradient::computeQpJacobian ( )
protectedvirtual

Definition at line 38 of file PressureGradient.C.

39 {
40  return 0.;
41 }

◆ computeQpResidual()

Real PressureGradient::computeQpResidual ( )
protectedvirtual

Definition at line 32 of file PressureGradient.C.

33 {
34  return -_pressure[_qp] * _grad_test[_i][_qp](_component);
35 }
const VariableValue & _pressure
unsigned int _component

Member Data Documentation

◆ _component

unsigned int PressureGradient::_component
protected

Definition at line 32 of file PressureGradient.h.

Referenced by computeQpResidual().

◆ _pressure

const VariableValue& PressureGradient::_pressure
protected

Definition at line 33 of file PressureGradient.h.

Referenced by computeQpResidual().


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