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

Advection Kernel for the levelset equation. More...

#include <LevelSetAdvection.h>

Inheritance diagram for LevelSetAdvection:
[legend]

Public Member Functions

 LevelSetAdvection (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual () override
 
virtual 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

Advection Kernel for the levelset equation.

{v} u, where {v} is the interface velocity that is a set of coupled variables.

Definition at line 30 of file LevelSetAdvection.h.

Constructor & Destructor Documentation

◆ LevelSetAdvection()

LevelSetAdvection::LevelSetAdvection ( const InputParameters &  parameters)

Definition at line 27 of file LevelSetAdvection.C.

Member Function Documentation

◆ computeQpJacobian()

Real LevelSetAdvection::computeQpJacobian ( )
overrideprotectedvirtual

Definition at line 40 of file LevelSetAdvection.C.

41 {
43  return _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 LevelSetAdvection::computeQpResidual ( )
overrideprotectedvirtual

Definition at line 33 of file LevelSetAdvection.C.

34 {
36  return _test[_i][_qp] * (_velocity * _grad_u[_qp]);
37 }
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 LevelSetAdvectionSUPG::computeQpJacobian(), computeQpJacobian(), LevelSetAdvectionSUPG::computeQpResidual(), and 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: