ABLATE Source Documentation  0.12.36
mq.hpp
1 #ifndef ABLATELIBRARY_RBF_MQ_HPP
2 #define ABLATELIBRARY_RBF_MQ_HPP
3 
4 #include "rbf.hpp"
5 
6 #define __RBF_MQ_DEFAULT_PARAM 0.1
7 
8 namespace ablate::domain::rbf {
9 
10 class MQ : virtual public RBF {
11  private:
12  const double scale = -1;
13 
14  public:
15  std::string_view type() const override { return "MQ"; }
16 
17  MQ(int p = 4, double scale = 0.1, 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_MQ_HPP
Definition: mq.hpp:10
std::string_view type() const override
Definition: mq.hpp:15
PetscReal RBFDer(PetscInt dim, PetscReal x[], PetscInt dx, PetscInt dy, PetscInt dz) override
Definition: mq.cpp:20
PetscReal RBFVal(PetscInt dim, PetscReal x[], PetscReal y[]) override
Definition: mq.cpp:11
Definition: rbf.hpp:12