22 params.
addParam<
Real>(
"radius", 0.15,
"The radius of the bubble.");
23 params.
addParam<
Real>(
"epsilon", 0.01,
"The interface thickness.");
30 _radius(getParam<
Real>(
"radius")),
31 _epsilon(getParam<
Real>(
"epsilon"))
39 return 1.0 / (1 + std::exp(
x));
46 return 1.0 / (1 + std::exp(
x));
60 output(i) = -(g_prime * std::exp(g)) / ((std::exp(g) + 1) * (std::exp(g) + 1));
LevelSetOlssonBubble(const InputParameters ¶meters)
Implements the "bubble" function from Olsson and Kreiss (2005).
virtual RealGradient gradient(Real, const Point &p) const override
static constexpr std::size_t dim
const Real & _radius
The radius of the bubble.
virtual Real value(Real, const Point &p) const override
const RealVectorValue & _center
The 'center' of the bubble.
const std::vector< double > x
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
IntRange< T > make_range(T beg, T end)
registerMooseObject("LevelSetApp", LevelSetOlssonBubble)
static InputParameters validParams()
const Real & _epsilon
The interface thickness.