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

Implements the re-initialization equation proposed by Olsson et. More...

#include <LevelSetOlssonReinitialization.h>

Inheritance diagram for LevelSetOlssonReinitialization< compute_stage >:
[legend]

Public Member Functions

 LevelSetOlssonReinitialization (const InputParameters &parameters)
 

Protected Member Functions

virtual ADVectorResidual precomputeQpResidual () override
 

Protected Attributes

const ADVariableGradient & _grad_levelset_0
 Gradient of the level set variable at time, = 0. More...
 
const PostprocessorValue & _epsilon
 Interface thickness. More...
 
 usingKernelGradMembers
 

Detailed Description

template<ComputeStage compute_stage>
class LevelSetOlssonReinitialization< compute_stage >

Implements the re-initialization equation proposed by Olsson et.

al. (2007).

Definition at line 18 of file LevelSetOlssonReinitialization.h.

Constructor & Destructor Documentation

◆ LevelSetOlssonReinitialization()

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

Definition at line 25 of file LevelSetOlssonReinitialization.C.

27  : ADKernelGrad<compute_stage>(parameters),
28  _grad_levelset_0(adCoupledGradient("phi_0")),
29  _epsilon(getPostprocessorValue("epsilon"))
30 {
31 }
const ADVariableGradient & _grad_levelset_0
Gradient of the level set variable at time, = 0.
const PostprocessorValue & _epsilon
Interface thickness.

Member Function Documentation

◆ precomputeQpResidual()

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

Definition at line 35 of file LevelSetOlssonReinitialization.C.

36 {
37  ADReal s = _grad_levelset_0[_qp].norm() + std::numeric_limits<ADReal>::epsilon();
38  ADRealVectorValue n_hat = _grad_levelset_0[_qp] / s;
39  ADRealVectorValue f = _u[_qp] * (1 - _u[_qp]) * n_hat;
40  return (-f + _epsilon * (_grad_u[_qp] * n_hat) * n_hat);
41 }
const ADVariableGradient & _grad_levelset_0
Gradient of the level set variable at time, = 0.
const PostprocessorValue & _epsilon
Interface thickness.

Member Data Documentation

◆ _epsilon

template<ComputeStage compute_stage>
const PostprocessorValue& LevelSetOlssonReinitialization< compute_stage >::_epsilon
protected

Interface thickness.

Definition at line 38 of file LevelSetOlssonReinitialization.h.

◆ _grad_levelset_0

template<ComputeStage compute_stage>
const ADVariableGradient& LevelSetOlssonReinitialization< compute_stage >::_grad_levelset_0
protected

Gradient of the level set variable at time, = 0.

Definition at line 35 of file LevelSetOlssonReinitialization.h.

◆ usingKernelGradMembers

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

Definition at line 40 of file LevelSetOlssonReinitialization.h.


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