chombo-discharge
Loading...
Searching...
No Matches
CD_SignedDistanceDCEL.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
14#ifndef CD_SIGNEDDISTANCEDCEL_H
15#define CD_SIGNEDDISTANCEDCEL_H
16
17// Std includes
18#include <memory>
19
20// EBGeometry includes
21#include <EBGeometry.hpp>
22
23// Chombo includes
24#include <BaseIF.H>
25
26// Our includes
27#include <CD_NamespaceHeader.H>
28
33template <class T>
34class SignedDistanceDCEL : public BaseIF
35{
36public:
40 using Mesh = EBGeometry::DCEL::MeshT<T>;
41
46
54
60
65
71 Real
72 value(const RealVect& a_point) const override;
73
78 BaseIF*
79 newImplicitFunction() const override;
80
81protected:
86
91
96};
97
98#include <CD_NamespaceFooter.H>
99
101
102#endif
Implementation of CD_SignedDistanceDCEL.H.
Signed distance function from a DCEL mesh.
Definition CD_SignedDistanceDCEL.H:35
Real m_zCoord
For 2D only. z-coordinate through which we slice the 3D object.
Definition CD_SignedDistanceDCEL.H:95
~SignedDistanceDCEL()
Destructor (does nothing)
Definition CD_SignedDistanceDCELImplem.H:39
Real value(const RealVect &a_point) const override
Value function.
Definition CD_SignedDistanceDCELImplem.H:44
std::shared_ptr< Mesh > m_mesh
DCEL mesh.
Definition CD_SignedDistanceDCEL.H:85
EBGeometry::DCEL::MeshT< T > Mesh
Alias for EBGeometry DCEl mesh with precision T.
Definition CD_SignedDistanceDCEL.H:40
bool m_flipInside
Hook for turning inside to outside.
Definition CD_SignedDistanceDCEL.H:90
SignedDistanceDCEL()=delete
Disallowed, use the full constructor.
BaseIF * newImplicitFunction() const override
Factory method.
Definition CD_SignedDistanceDCELImplem.H:65
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38
TracerParticleSolver()
Default constructor.
Definition CD_TracerParticleSolverImplem.H:26