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

SUPG stabilization for the advection portion of the level set equation. More...

#include <LevelSetAdvectionSUPG.h>

Inheritance diagram for LevelSetAdvectionSUPG:
[legend]

Public Member Functions

 LevelSetAdvectionSUPG (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 for the advection portion of the level set equation.

Definition at line 26 of file LevelSetAdvectionSUPG.h.

Constructor & Destructor Documentation

◆ LevelSetAdvectionSUPG()

LevelSetAdvectionSUPG::LevelSetAdvectionSUPG ( const InputParameters &  parameters)

Definition at line 25 of file LevelSetAdvectionSUPG.C.

Member Function Documentation

◆ computeQpJacobian()

Real LevelSetAdvectionSUPG::computeQpJacobian ( )
overrideprotected

Definition at line 39 of file LevelSetAdvectionSUPG.C.

40 {
42  Real tau = _current_elem->hmin() / (2 * _velocity.norm());
43  return (tau * _velocity * _grad_test[_i][_qp]) * (_velocity * _grad_phi[_j][_qp]);
44 }
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...

◆ computeQpResidual()

Real LevelSetAdvectionSUPG::computeQpResidual ( )
overrideprotected

Definition at line 31 of file LevelSetAdvectionSUPG.C.

32 {
34  Real tau = _current_elem->hmin() / (2 * _velocity.norm());
35  return (tau * _velocity * _grad_test[_i][_qp]) * (_velocity * _grad_u[_qp]);
36 }
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...

◆ computeQpVelocity()

void LevelSetVelocityInterface< Kernel >::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.

Definition at line 61 of file LevelSetVelocityInterface.h.

Referenced by computeQpJacobian(), LevelSetAdvection::computeQpJacobian(), computeQpResidual(), and LevelSetAdvection::computeQpResidual().

62 {
63  _velocity(0) = _velocity_x[T::_qp];
64  _velocity(1) = _velocity_y[T::_qp];
65  _velocity(2) = _velocity_z[T::_qp];
66 }
RealVectorValue _velocity
Storage for velocity vector.

Member Data Documentation

◆ _velocity

RealVectorValue LevelSetVelocityInterface< Kernel >::_velocity
protectedinherited

◆ _velocity_x

const VariableValue& LevelSetVelocityInterface< Kernel >::_velocity_x
protectedinherited

Coupled velocity variables

Definition at line 43 of file LevelSetVelocityInterface.h.

◆ _velocity_y

const VariableValue& LevelSetVelocityInterface< Kernel >::_velocity_y
protectedinherited

Definition at line 44 of file LevelSetVelocityInterface.h.

◆ _velocity_z

const VariableValue& LevelSetVelocityInterface< Kernel >::_velocity_z
protectedinherited

Definition at line 45 of file LevelSetVelocityInterface.h.

◆ _x_vel_var

const unsigned int LevelSetVelocityInterface< Kernel >::_x_vel_var
protectedinherited

Coupled velocity identifiers

Definition at line 50 of file LevelSetVelocityInterface.h.

◆ _y_vel_var

const unsigned int LevelSetVelocityInterface< Kernel >::_y_vel_var
protectedinherited

Definition at line 51 of file LevelSetVelocityInterface.h.

◆ _z_vel_var

const unsigned int LevelSetVelocityInterface< Kernel >::_z_vel_var
protectedinherited

Definition at line 52 of file LevelSetVelocityInterface.h.


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