www.mooseframework.org
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
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)
 

Protected Attributes

Real _penalty
 

Detailed Description

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

Definition at line 22 of file INSCompressibilityPenalty.h.

Constructor & Destructor Documentation

INSCompressibilityPenalty::INSCompressibilityPenalty ( const InputParameters &  parameters)

Definition at line 22 of file INSCompressibilityPenalty.C.

23  : Kernel(parameters),
24  // penalty value
25  _penalty(getParam<Real>("penalty"))
26 
27 {
28 }
virtual INSCompressibilityPenalty::~INSCompressibilityPenalty ( )
inlinevirtual

Definition at line 27 of file INSCompressibilityPenalty.h.

27 {}

Member Function Documentation

Real INSCompressibilityPenalty::computeQpJacobian ( )
protectedvirtual

Definition at line 45 of file INSCompressibilityPenalty.C.

Referenced by ~INSCompressibilityPenalty().

46 {
47  // Derivative wrt to p
48  return _penalty * _phi[_j][_qp] * _test[_i][_qp];
49 }
Real INSCompressibilityPenalty::computeQpOffDiagJacobian ( unsigned  jvar)
protectedvirtual

Definition at line 38 of file INSCompressibilityPenalty.C.

Referenced by ~INSCompressibilityPenalty().

39 {
40  // does not couple any variables
41  return 0;
42 }
Real INSCompressibilityPenalty::computeQpResidual ( )
protectedvirtual

Definition at line 31 of file INSCompressibilityPenalty.C.

Referenced by ~INSCompressibilityPenalty().

32 {
33  // penalty*p*q
34  return _penalty * _u[_qp] * _test[_i][_qp];
35 }

Member Data Documentation

Real INSCompressibilityPenalty::_penalty
protected

Definition at line 37 of file INSCompressibilityPenalty.h.

Referenced by computeQpJacobian(), and computeQpResidual().


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