From 16640fe122dcfcc4abd681a8b05bfef0c2d38fcb Mon Sep 17 00:00:00 2001 From: philippun Date: Thu, 13 Jul 2023 10:54:48 +0200 Subject: [PATCH] change: Grid.hpp | finished outline Grid class --- include/tug/Grid.hpp | 73 ++++++++++++++++++++++++++++++-------------- 1 file changed, 50 insertions(+), 23 deletions(-) diff --git a/include/tug/Grid.hpp b/include/tug/Grid.hpp index 194182c..5334413 100644 --- a/include/tug/Grid.hpp +++ b/include/tug/Grid.hpp @@ -1,35 +1,62 @@ #include -#include +#include -using namespace std; +using namespace Eigen; class Grid { public: - /** - * @brief Construct a new Grid object - * - * @param n - */ - Grid(int n); - /** - * @brief Construct a new Grid object - * - * @param n - * @param m - */ - Grid(int n, int m); + /** + * @brief Construct a new Grid object + * + * @param n + */ + Grid(int n); - /** - * @brief Set the Alpha object - * - * @param alpha - */ - void setAlpha(vector alpha); + /** + * @brief Construct a new Grid object + * + * @param n + * @param m + */ + Grid(int n, int m); - void setAlpha(vector alpha_x, vector alpha_y); + /** + * @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 + * + * @param alpha + */ + void setAlpha(Matrix2d alpha); + + /** + * @brief Set the Alpha object + * + * @param alpha_x + * @param alpha_y + */ + void setAlpha(Matrix2d alpha_x, Matrix2d alpha_y); + private: - + int dim; + int n; + int m; + Matrix2d concentrations; + Matrix2d alpha_x; + Matrix2d alpha_y; }; \ No newline at end of file