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

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

#include <LevelSetForcingFunctionSUPG.h>

Inheritance diagram for LevelSetForcingFunctionSUPG< compute_stage >:
[legend]

Public Member Functions

 LevelSetForcingFunctionSUPG (const InputParameters &parameters)
 

Protected Member Functions

virtual ADVectorResidual precomputeQpResidual () 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

Function & _function
 Function value. More...
 
 usingKernelGradMembers
 
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

template<ComputeStage compute_stage>
class LevelSetForcingFunctionSUPG< compute_stage >

SUPG stabilization term for a forcing function.

Definition at line 19 of file LevelSetForcingFunctionSUPG.h.

Constructor & Destructor Documentation

◆ LevelSetForcingFunctionSUPG()

template<ComputeStage compute_stage>
LevelSetForcingFunctionSUPG< compute_stage >::LevelSetForcingFunctionSUPG ( const InputParameters &  parameters)

Definition at line 23 of file LevelSetForcingFunctionSUPG.C.

26  _function(getFunction("function"))
27 {
28 }
A helper class for defining the velocity as coupled variables for the levelset equation.
Function & _function
Function value.

Member Function Documentation

◆ computeQpVelocity()

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

◆ precomputeQpResidual()

template<ComputeStage compute_stage>
ADVectorResidual LevelSetForcingFunctionSUPG< compute_stage >::precomputeQpResidual ( )
overrideprotectedvirtual

Definition at line 32 of file LevelSetForcingFunctionSUPG.C.

33 {
35  ADReal tau = _current_elem->hmin() / (2 * _velocity.norm());
36  return -tau * _velocity * _function.value(_t, _q_point[_qp]);
37 }
RealVectorValue _velocity
Storage for velocity vector.
Function & _function
Function value.
void computeQpVelocity()
This method should be called when the velocity vector needs to be updated, this is not done automatic...

Member Data Documentation

◆ _function

template<ComputeStage compute_stage>
Function& LevelSetForcingFunctionSUPG< compute_stage >::_function
protected

Function value.

Definition at line 36 of file LevelSetForcingFunctionSUPG.h.

◆ _velocity

RealVectorValue LevelSetVelocityInterface< ADKernelGrad< compute_stage > >::_velocity
protectedinherited

Storage for velocity vector.

Definition at line 56 of file LevelSetVelocityInterface.h.

◆ _velocity_x

const VariableValue& LevelSetVelocityInterface< ADKernelGrad< compute_stage > >::_velocity_x
protectedinherited

Coupled velocity variables

Definition at line 43 of file LevelSetVelocityInterface.h.

◆ _velocity_y

const VariableValue& LevelSetVelocityInterface< ADKernelGrad< compute_stage > >::_velocity_y
protectedinherited

Definition at line 44 of file LevelSetVelocityInterface.h.

◆ _velocity_z

const VariableValue& LevelSetVelocityInterface< ADKernelGrad< compute_stage > >::_velocity_z
protectedinherited

Definition at line 45 of file LevelSetVelocityInterface.h.

◆ _x_vel_var

const unsigned int LevelSetVelocityInterface< ADKernelGrad< compute_stage > >::_x_vel_var
protectedinherited

Coupled velocity identifiers

Definition at line 50 of file LevelSetVelocityInterface.h.

◆ _y_vel_var

const unsigned int LevelSetVelocityInterface< ADKernelGrad< compute_stage > >::_y_vel_var
protectedinherited

Definition at line 51 of file LevelSetVelocityInterface.h.

◆ _z_vel_var

const unsigned int LevelSetVelocityInterface< ADKernelGrad< compute_stage > >::_z_vel_var
protectedinherited

Definition at line 52 of file LevelSetVelocityInterface.h.

◆ usingKernelGradMembers

template<ComputeStage compute_stage>
LevelSetForcingFunctionSUPG< compute_stage >::usingKernelGradMembers
protected

Definition at line 38 of file LevelSetForcingFunctionSUPG.h.


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