https://mooseframework.inl.gov
Loading...
Searching...
No Matches
LevelSetOlssonBubble.h
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
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
19{
20public:
22
24
25 using Function::value;
26 virtual Real value(Real /*t*/, const Point & p) const override;
27 virtual ADReal value(const ADReal & /*t*/, const ADPoint & p) const override;
28
29 virtual RealGradient gradient(Real /*t*/, const Point & p) const override;
30
31protected:
33 const RealVectorValue & _center;
34
36 const Real & _radius;
37
39 const Real & _epsilon;
40};
DualNumber< Real, DNDerivativeType, true > ADReal
const Real p
virtual Real value(Real t, const Point &p) const
Implements the "bubble" function from Olsson and Kreiss (2005).
const Real & _radius
The radius of the bubble.
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
const InputParameters & parameters() const