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

SUPG stabilization term for a forcing function. More...

#include <LevelSetForcingFunctionSUPG.h>

Inheritance diagram for LevelSetForcingFunctionSUPG:
[legend]

Public Member Functions

 LevelSetForcingFunctionSUPG (const InputParameters &parameters)
 

Protected Member Functions

Real computeQpResidual () override
 
Real computeQpJacobian () override
 
void computeQpVelocity ()
 This method should be called when the velocity vector needs to be updated, this is not done automatically to avoid populating a vector that is not used. More...
 

Protected Attributes

RealVectorValue _velocity
 Storage for velocity vector. More...
 
const VariableValue & _velocity_x
 
const VariableValue & _velocity_y
 
const VariableValue & _velocity_z
 
const unsigned int _x_vel_var
 
const unsigned int _y_vel_var
 
const unsigned int _z_vel_var
 

Detailed Description

SUPG stabilization term for a forcing function.

Definition at line 24 of file LevelSetForcingFunctionSUPG.h.

Constructor & Destructor Documentation

LevelSetForcingFunctionSUPG::LevelSetForcingFunctionSUPG ( const InputParameters &  parameters)

Member Function Documentation

Real LevelSetForcingFunctionSUPG::computeQpJacobian ( )
overrideprotected

Definition at line 35 of file LevelSetForcingFunctionSUPG.C.

36 {
38  Real tau = _current_elem->hmin() / (2 * _velocity.norm());
39  return -tau * _velocity * _grad_test[_i][_qp] * _function.value(_t, _q_point[_qp]);
40 }
RealVectorValue _velocity
Storage for velocity vector.
void computeQpVelocity()
This method should be called when the velocity vector needs to be updated, this is not done automatic...
Real LevelSetForcingFunctionSUPG::computeQpResidual ( )
overrideprotected

Definition at line 27 of file LevelSetForcingFunctionSUPG.C.

28 {
30  Real tau = _current_elem->hmin() / (2 * _velocity.norm());
31  return -tau * _velocity * _grad_test[_i][_qp] * _function.value(_t, _q_point[_qp]);
32 }
RealVectorValue _velocity
Storage for velocity vector.
void computeQpVelocity()
This method should be called when the velocity vector needs to be updated, this is not done automatic...
void LevelSetVelocityInterface< BodyForce >::computeQpVelocity ( )
protectedinherited

This method should be called when the velocity vector needs to be updated, this is not done automatically to avoid populating a vector that is not used.

Referenced by computeQpJacobian(), and computeQpResidual().

Member Data Documentation

RealVectorValue LevelSetVelocityInterface< BodyForce >::_velocity
protectedinherited

Storage for velocity vector.

Definition at line 54 of file LevelSetVelocityInterface.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const VariableValue& LevelSetVelocityInterface< BodyForce >::_velocity_x
protectedinherited

Coupled velocity variables

Definition at line 41 of file LevelSetVelocityInterface.h.

const VariableValue& LevelSetVelocityInterface< BodyForce >::_velocity_y
protectedinherited

Definition at line 42 of file LevelSetVelocityInterface.h.

const VariableValue& LevelSetVelocityInterface< BodyForce >::_velocity_z
protectedinherited

Definition at line 43 of file LevelSetVelocityInterface.h.

const unsigned int LevelSetVelocityInterface< BodyForce >::_x_vel_var
protectedinherited

Coupled velocity identifiers

Definition at line 48 of file LevelSetVelocityInterface.h.

const unsigned int LevelSetVelocityInterface< BodyForce >::_y_vel_var
protectedinherited

Definition at line 49 of file LevelSetVelocityInterface.h.

const unsigned int LevelSetVelocityInterface< BodyForce >::_z_vel_var
protectedinherited

Definition at line 50 of file LevelSetVelocityInterface.h.


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