chombo-discharge
Loading...
Searching...
No Matches
Source
ImplicitFunctions
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
25
class
SphereSdf
:
public
BaseIF
26
{
27
public
:
34
SphereSdf
(
const
RealVect
&
a_center
,
const
Real
&
a_radius
,
const
bool
&
a_fluidInside
);
35
40
SphereSdf
(
const
SphereSdf
&
a_inputIF
);
41
45
virtual
~SphereSdf
();
46
52
virtual
Real
53
value
(
const
RealVect
&
a_point
)
const
;
54
59
virtual
BaseIF*
60
newImplicitFunction
()
const
;
61
62
protected
:
66
RealVect
m_center
;
67
71
Real
m_radius
;
72
76
bool
m_fluidInside
;
77
};
78
79
#include <CD_NamespaceFooter.H>
80
81
#endif
SphereSdf
Signed distance function for sphere.
Definition
CD_SphereSdf.H:26
SphereSdf::m_fluidInside
bool m_fluidInside
Inside or outside domain.
Definition
CD_SphereSdf.H:76
SphereSdf::value
virtual Real value(const RealVect &a_point) const
Get distance to sphere.
Definition
CD_SphereSdf.cpp:28
SphereSdf::m_center
RealVect m_center
Sphere center.
Definition
CD_SphereSdf.H:66
SphereSdf::newImplicitFunction
virtual BaseIF * newImplicitFunction() const
IF factory method.
Definition
CD_SphereSdf.cpp:43
SphereSdf::m_radius
Real m_radius
Cylinder radius.
Definition
CD_SphereSdf.H:71
SphereSdf::~SphereSdf
virtual ~SphereSdf()
Destructor.
TracerParticleSolver
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition
CD_TracerParticleSolver.H:38
Generated by
1.9.8