chombo-discharge
Loading...
Searching...
No Matches
CD_CylinderSdf.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_CYLINDERSDF_H
14#define CD_CYLINDERSDF_H
15
16// Chombo includes
17#include <BaseIF.H>
18
19// Our includes
20#include <CD_NamespaceHeader.H>
21
25class CylinderSdf : public BaseIF
26{
27public:
35 CylinderSdf(const RealVect& a_center1, const RealVect& a_center2, const Real& a_radius, const bool& a_fluidInside);
36
42
48 virtual Real
49 value(const RealVect& a_point) const;
50
55 virtual BaseIF*
56 newImplicitFunction() const;
57
58protected:
63
68
73
78
83
88
93
98};
99
100#include <CD_NamespaceFooter.H>
101
102#endif
Declaration of a cylinder IF class.
Definition CD_CylinderSdf.H:26
RealVect m_center
Center.
Definition CD_CylinderSdf.H:82
virtual BaseIF * newImplicitFunction() const
IF factory method.
Definition CD_CylinderSdf.cpp:84
RealVect m_axis
Top.
Definition CD_CylinderSdf.H:77
Real m_radius
Cylinder radius.
Definition CD_CylinderSdf.H:92
RealVect m_top
Top.
Definition CD_CylinderSdf.H:72
RealVect m_endPoint1
One end point.
Definition CD_CylinderSdf.H:62
virtual Real value(const RealVect &a_point) const
Test whether inside or not.
Definition CD_CylinderSdf.cpp:44
Real m_length
Cylinder length.
Definition CD_CylinderSdf.H:87
bool m_fluidInside
Inside or outside domain.
Definition CD_CylinderSdf.H:97
RealVect m_endPoint2
The other end point.
Definition CD_CylinderSdf.H:67
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38