WaveBEM: Unsteady Nonlinear Potential Flow Solver for Ship-Wave Interaction.
local_expansion_coeff.h
Go to the documentation of this file.
1 /*
2  * File: LocalExpansionCoeff.hpp
3  * Author: matteo
4  *
5  * Created on April 3, 2015, 6:05 PM
6  */
7 
8 #ifndef LOCALEXPANSIONCOEFF_H
9 #define LOCALEXPANSIONCOEFF_H
10 
12 {
13 public:
15  LocalExpansionCoeff(const unsigned int &p);
17  double get(const unsigned int &n, const unsigned int &m, const unsigned int &nn, const unsigned int &mm);
18  void set(const unsigned int &n, const unsigned int &m, const unsigned int &nn, const unsigned int &mm, const double &value);
19  unsigned int getNumberOfElements();
20  unsigned int getNNOffset(const unsigned int &nn);
21  unsigned int getMOffset(const unsigned int &m);
22  unsigned int getNOffset(const unsigned int &n);
23  virtual ~LocalExpansionCoeff();
24 
25  //Debugging and test of indexes
26 // static unsigned int const loopDebugger(const unsigned int & p);
27 // void fillCoeffWithIndex();
28 // void printCoeff();
29 
30 private:
31  unsigned int _p;
32  double *_coeff;
33 
34 };
35 
36 #endif /* LOCALEXPANSIONCOEFF_HPP */
unsigned int getNumberOfElements()
void set(const unsigned int &n, const unsigned int &m, const unsigned int &nn, const unsigned int &mm, const double &value)
unsigned int getNNOffset(const unsigned int &nn)
unsigned int getMOffset(const unsigned int &m)
static const bool value
unsigned int getNOffset(const unsigned int &n)