change: Grid.hpp | finished outline Grid class
This commit is contained in:
parent
fc999f09b3
commit
16640fe122
@ -1,10 +1,11 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <Eigen/Core>
|
||||||
|
|
||||||
using namespace std;
|
using namespace Eigen;
|
||||||
|
|
||||||
class Grid {
|
class Grid {
|
||||||
public:
|
public:
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Construct a new Grid object
|
* @brief Construct a new Grid object
|
||||||
*
|
*
|
||||||
@ -20,16 +21,42 @@ class Grid {
|
|||||||
*/
|
*/
|
||||||
Grid(int n, int m);
|
Grid(int n, int m);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Set the Concentrations object
|
||||||
|
*
|
||||||
|
* @param concentrations
|
||||||
|
*/
|
||||||
|
void setConcentrations(Matrix2d concentrations);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Get the Concentrations object
|
||||||
|
*
|
||||||
|
* @return auto
|
||||||
|
*/
|
||||||
|
auto getConcentrations();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Set the Alpha object
|
* @brief Set the Alpha object
|
||||||
*
|
*
|
||||||
* @param alpha
|
* @param alpha
|
||||||
*/
|
*/
|
||||||
void setAlpha(vector<float> alpha);
|
void setAlpha(Matrix2d alpha);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Set the Alpha object
|
||||||
|
*
|
||||||
|
* @param alpha_x
|
||||||
|
* @param alpha_y
|
||||||
|
*/
|
||||||
|
void setAlpha(Matrix2d alpha_x, Matrix2d alpha_y);
|
||||||
|
|
||||||
void setAlpha(vector<float> alpha_x, vector<float> alpha_y);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
int dim;
|
||||||
|
int n;
|
||||||
|
int m;
|
||||||
|
Matrix2d concentrations;
|
||||||
|
Matrix2d alpha_x;
|
||||||
|
Matrix2d alpha_y;
|
||||||
};
|
};
|
||||||
Loading…
x
Reference in New Issue
Block a user