chombo-discharge
CD_GradedPerlinSphereSdf.H
Go to the documentation of this file.
1 /* chombo-discharge
2  * Copyright © 2021 SINTEF Energy Research.
3  * Please refer to Copyright.txt and LICENSE in the chombo-discharge root directory.
4  */
5 
12 #ifndef CD_GradedPerlinSphereSdf_H
13 #define CD_GradedPerlinSphereSdf_H
14 
15 // Our includes
16 #include <CD_PerlinSphereSdf.H>
17 #include <CD_NamespaceHeader.H>
18 
24 {
25 public:
38  GradedPerlinSphereSdf(const Real& a_rad,
39  const RealVect& a_center,
40  const bool& a_inside,
41  const Real& a_noiseAmp,
42  const RealVect& a_noiseFreq,
43  const Real& a_persistence,
44  const int& a_octaves,
45  const bool& a_reseed = false);
46 
51 
55  virtual ~GradedPerlinSphereSdf();
56 
60  virtual Real
61  value(const RealVect& a_pos) const;
62 
66  virtual BaseIF*
67  newImplicitFunction() const;
68 };
69 
70 #include <CD_NamespaceFooter.H>
71 
72 #endif
Implementation of CD_PerlinSphereSdf.H.
GradedPerlinSphereSdf function.
Definition: CD_GradedPerlinSphereSdf.H:24
GradedPerlinSphereSdf(const Real &a_rad, const RealVect &a_center, const bool &a_inside, const Real &a_noiseAmp, const RealVect &a_noiseFreq, const Real &a_persistence, const int &a_octaves, const bool &a_reseed=false)
Full constructor.
Definition: CD_GradedPerlinSphereSdf.cpp:19
virtual BaseIF * newImplicitFunction() const
Factory function.
Definition: CD_GradedPerlinSphereSdf.cpp:86
virtual Real value(const RealVect &a_pos) const
Value function.
Definition: CD_GradedPerlinSphereSdf.cpp:37
virtual ~GradedPerlinSphereSdf()
Destructor.
Definition: CD_GradedPerlinSphereSdf.cpp:33
Noisy sphere geometry (with Perlin noise).
Definition: CD_PerlinSphereSdf.H:27