21 "center", RealVectorValue(0.5, 0.5, 0),
"The center of the bubble.");
22 params.
addParam<Real>(
"radius", 0.15,
"The radius of the bubble.");
23 params.
addParam<Real>(
"epsilon", 0.01,
"The interface thickness.");
29 _center(getParam<RealVectorValue>(
"center")),
30 _radius(getParam<Real>(
"radius")),
31 _epsilon(getParam<Real>(
"epsilon"))
39 return 1.0 / (1 + std::exp(
x));
47 return 1.0 / (1 + exp(
x));
61 output(i) = -(g_prime * std::exp(g)) / ((std::exp(g) + 1) * (std::exp(g) + 1));
DualNumber< Real, DNDerivativeType, true > ADReal
const std::vector< double > x
registerMooseObject("LevelSetApp", LevelSetOlssonBubble)
static InputParameters validParams()
Implements the "bubble" function from Olsson and Kreiss (2005).
const Real & _radius
The radius of the bubble.
LevelSetOlssonBubble(const InputParameters ¶meters)
const Real & _epsilon
The interface thickness.
const RealVectorValue & _center
The 'center' of the bubble.
static InputParameters validParams()
virtual RealGradient gradient(Real, const Point &p) const override
virtual Real value(Real, const Point &p) const override
static constexpr std::size_t dim