chombo-discharge
Loading...
Searching...
No Matches
CD_SphereSdf.H
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021-2026 SINTEF Energy Research
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
13#ifndef CD_SPHERESDF_H
14#define CD_SPHERESDF_H
15
16// Chombo includes
17#include <BaseIF.H>
18
19// Our includes
20#include <CD_NamespaceHeader.H>
21
25class SphereSdf : public BaseIF
26{
27public:
34 SphereSdf(const RealVect& a_center, const Real& a_radius, const bool& a_fluidInside);
35
41
45 virtual ~SphereSdf();
46
52 virtual Real
53 value(const RealVect& a_point) const;
54
59 virtual BaseIF*
60 newImplicitFunction() const;
61
62protected:
67
72
77};
78
79#include <CD_NamespaceFooter.H>
80
81#endif
Signed distance function for sphere.
Definition CD_SphereSdf.H:26
bool m_fluidInside
Inside or outside domain.
Definition CD_SphereSdf.H:76
virtual Real value(const RealVect &a_point) const
Get distance to sphere.
Definition CD_SphereSdf.cpp:28
RealVect m_center
Sphere center.
Definition CD_SphereSdf.H:66
virtual BaseIF * newImplicitFunction() const
IF factory method.
Definition CD_SphereSdf.cpp:43
Real m_radius
Cylinder radius.
Definition CD_SphereSdf.H:71
virtual ~SphereSdf()
Destructor.
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38