ABLATE Source Documentation  0.12.36
phs.hpp
1 #ifndef ABLATELIBRARY_RBF_PHS_HPP
2 #define ABLATELIBRARY_RBF_PHS_HPP
3 
4 #include "rbf.hpp"
5 
6 #define __RBF_PHS_DEFAULT_PARAM 5
7 
8 namespace ablate::domain::rbf {
9 
10 class PHS : public RBF {
11  private:
12  const int phsOrder = -1; // The PHS order
13 
14  public:
15  std::string_view type() const override { return "PHS"; }
16 
17  PHS(int p = 4, int phsOrder = 4, bool doesNotHaveDerivatives = false, bool doesNotHaveInterpolation = false);
18 
19  PetscReal RBFVal(PetscInt dim, PetscReal x[], PetscReal y[]) override;
20  PetscReal RBFDer(PetscInt dim, PetscReal x[], PetscInt dx, PetscInt dy, PetscInt dz) override;
21 };
22 
23 } // namespace ablate::domain::rbf
24 
25 #endif // ABLATELIBRARY_RBF_PHS_HPP
Definition: phs.hpp:10
PetscReal RBFDer(PetscInt dim, PetscReal x[], PetscInt dx, PetscInt dy, PetscInt dz) override
Definition: phs.cpp:18
std::string_view type() const override
Definition: phs.hpp:15
PetscReal RBFVal(PetscInt dim, PetscReal x[], PetscReal y[]) override
Definition: phs.cpp:10
Definition: rbf.hpp:12