www.mooseframework.org
LevelSetOlssonBubble.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 LEVELSETOLSSONBUBBLE_H
9 #define LEVELSETOLSSONBUBBLE_H
10 
11 // MOOSE includes
12 #include "Function.h"
13 
15 
16 template <>
17 InputParameters validParams<LevelSetOlssonBubble>();
18 
22 class LevelSetOlssonBubble : public Function
23 {
24 public:
25  LevelSetOlssonBubble(const InputParameters & parameters);
26 
27  virtual Real value(Real /*t*/, const Point & p) override;
28 
29  virtual RealGradient gradient(Real /*t*/, const Point & p) override;
30 
31 protected:
33  const RealVectorValue & _center;
34 
36  const Real & _radius;
37 
39  const Real & _epsilon;
40 };
41 
42 #endif // LEVELSETOLSSONBUBBLE_H
LevelSetOlssonBubble(const InputParameters &parameters)
Implements the "bubble" function from Olsson and Kreiss (2005).
const Real & _radius
The radius of the bubble.
const RealVectorValue & _center
The &#39;center&#39; of the bubble.
virtual Real value(Real, const Point &p) override
InputParameters validParams< LevelSetOlssonBubble >()
virtual RealGradient gradient(Real, const Point &p) override
const Real & _epsilon
The interface thickness.