INSCompressibilityPenalty Class Reference

The penalty term may be used when Dirichlet boundary condition is applied to the entire boundary. More...

#include <INSCompressibilityPenalty.h>

Inheritance diagram for INSCompressibilityPenalty:
[legend]

## Public Member Functions

INSCompressibilityPenalty (const InputParameters &parameters)

virtual ~INSCompressibilityPenalty ()

## Protected Member Functions

virtual Real computeQpResidual ()

virtual Real computeQpJacobian ()

virtual Real computeQpOffDiagJacobian (unsigned jvar)

Real _penalty

## Detailed Description

The penalty term may be used when Dirichlet boundary condition is applied to the entire boundary.

Definition at line 24 of file INSCompressibilityPenalty.h.

## ◆ INSCompressibilityPenalty()

 INSCompressibilityPenalty::INSCompressibilityPenalty ( const InputParameters & parameters )

Definition at line 27 of file INSCompressibilityPenalty.C.

28  : Kernel(parameters),
29  // penalty value
30  _penalty(getParam<Real>("penalty"))
31
32 {
33 }

## ◆ ~INSCompressibilityPenalty()

 virtual INSCompressibilityPenalty::~INSCompressibilityPenalty ( )
inlinevirtual

Definition at line 29 of file INSCompressibilityPenalty.h.

29 {}

## ◆ computeQpJacobian()

 Real INSCompressibilityPenalty::computeQpJacobian ( )
protectedvirtual

Definition at line 50 of file INSCompressibilityPenalty.C.

51 {
52  // Derivative wrt to p
53  return _penalty * _phi[_j][_qp] * _test[_i][_qp];
54 }

## ◆ computeQpOffDiagJacobian()

 Real INSCompressibilityPenalty::computeQpOffDiagJacobian ( unsigned jvar )
protectedvirtual

Definition at line 43 of file INSCompressibilityPenalty.C.

44 {
45  // does not couple any variables
46  return 0;
47 }

## ◆ computeQpResidual()

 Real INSCompressibilityPenalty::computeQpResidual ( )
protectedvirtual

Definition at line 36 of file INSCompressibilityPenalty.C.

37 {
38  // penalty*p*q
39  return _penalty * _u[_qp] * _test[_i][_qp];
40 }

## ◆ _penalty

 Real INSCompressibilityPenalty::_penalty
protected

Definition at line 39 of file INSCompressibilityPenalty.h.

Referenced by computeQpJacobian(), and computeQpResidual().

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