www.mooseframework.org
LevelSetOlssonReinitialization.h
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
7 
8 #ifndef LEVELSETOLSSONREINITIALIZATION_H
9 #define LEVELSETOLSSONREINITIALIZATION_H
10 
11 // MOOSE includes
12 #include "Kernel.h"
13 
14 // Forward declarations
16 
17 template <>
19 
23 class LevelSetOlssonReinitialization : public Kernel
24 {
25 public:
26  LevelSetOlssonReinitialization(const InputParameters & parameters);
27 
28 protected:
29  virtual Real computeQpResidual() override;
30  virtual Real computeQpJacobian() override;
31 
33  const VariableGradient & _grad_levelset_0;
34 
36  const PostprocessorValue & _epsilon;
37 
40  RealVectorValue _f;
41  Real _s;
42  RealVectorValue _n_hat;
44 };
45 
46 #endif // LEVELSETOLSSONREINITIALIZATION_H
const VariableGradient & _grad_levelset_0
Gradient of the level set variable at time, = 0.
const PostprocessorValue & _epsilon
Interface thickness.
Implements the re-initialization equation proposed by Olsson et.
LevelSetOlssonReinitialization(const InputParameters &parameters)
InputParameters validParams< LevelSetOlssonReinitialization >()