www.mooseframework.org
LevelSetOlssonBubble.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #pragma once
11 
12 // MOOSE includes
13 #include "Function.h"
14 
16 
17 template <>
18 InputParameters validParams<LevelSetOlssonBubble>();
19 
23 class LevelSetOlssonBubble : public Function
24 {
25 public:
26  LevelSetOlssonBubble(const InputParameters & parameters);
27 
28  virtual Real value(Real /*t*/, const Point & p) const override;
29 
30  virtual RealGradient gradient(Real /*t*/, const Point & p) const override;
31 
32 protected:
34  const RealVectorValue & _center;
35 
37  const Real & _radius;
38 
40  const Real & _epsilon;
41 };
libMesh::RealGradient
VectorValue< Real > RealGradient
Definition: GrainForceAndTorqueInterface.h:17
LevelSetOlssonBubble::_epsilon
const Real & _epsilon
The interface thickness.
Definition: LevelSetOlssonBubble.h:40
LevelSetOlssonBubble::gradient
virtual RealGradient gradient(Real, const Point &p) const override
Definition: LevelSetOlssonBubble.C:44
LevelSetOlssonBubble::LevelSetOlssonBubble
LevelSetOlssonBubble(const InputParameters &parameters)
Definition: LevelSetOlssonBubble.C:28
LevelSetOlssonBubble::_center
const RealVectorValue & _center
The 'center' of the bubble.
Definition: LevelSetOlssonBubble.h:34
LevelSetOlssonBubble::_radius
const Real & _radius
The radius of the bubble.
Definition: LevelSetOlssonBubble.h:37
LevelSetOlssonBubble
Implements the "bubble" function from Olsson and Kreiss (2005).
Definition: LevelSetOlssonBubble.h:23
validParams< LevelSetOlssonBubble >
InputParameters validParams< LevelSetOlssonBubble >()
Definition: LevelSetOlssonBubble.C:17
LevelSetOlssonBubble::value
virtual Real value(Real, const Point &p) const override
Definition: LevelSetOlssonBubble.C:37