chombo-discharge
Loading...
Searching...
No Matches
CD_PerlinSlabSdf.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_PERLINSLABSDF_H
14#define CD_PERLINSLABSDF_H
15
16// Chombo includes
17#include <BaseIF.H>
18
19// Our includes
20#include <CD_NamespaceHeader.H>
21
25class PerlinSlabSdf : public BaseIF
26{
27public:
31 PerlinSlabSdf() = delete;
32
48 const RealVect& a_normal,
49 const RealVect& a_xyz,
50 const RealVect& a_noiseFreq,
51 const int a_octaves,
52 const Real a_noiseAmp,
53 const Real a_persistence,
54 const Real a_cornerCurv,
55 const bool a_reseed,
56 const bool a_fluidInside);
57
63
67 virtual ~PerlinSlabSdf();
68
74 virtual Real
75 value(const RealVect& a_pos) const override;
76
81 virtual BaseIF*
82 newImplicitFunction() const override;
83
84protected:
89
94};
95
96#include <CD_NamespaceFooter.H>
97
98#endif
Implicit function class describing a slab (box) with surface noise on the top.
Definition CD_PerlinSlabSdf.H:26
PerlinSlabSdf()=delete
No weak constructor allowed, use the full constructor.
virtual BaseIF * newImplicitFunction() const override
Factory function.
Definition CD_PerlinSlabSdf.cpp:96
bool m_fluidInside
Fluid on inside or not.
Definition CD_PerlinSlabSdf.H:93
virtual ~PerlinSlabSdf()
Destructor (does nothing)
RefCountedPtr< BaseIF > m_baseif
Implicit function. This is a union between cutting planes and a perlin plane.
Definition CD_PerlinSlabSdf.H:88
virtual Real value(const RealVect &a_pos) const override
Value function. Returns distance to object.
Definition CD_PerlinSlabSdf.cpp:84
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38