13#include "../../types/matrix.hpp"
14#include "../../settings/settings.hpp"
15#include "../../utility/utility.hpp"
28 std::array<double, nch>
xch;
36 std::array<double, nch>
Ap,
An;
37 std::array<double, nch>
Bp,
Bn;
41 std::array<double, nch + 1>
Cc,
Dp,
Dn;
73 std::cout <<
"Error in Model_SPM::Model_SPM() when reading the files: "
constexpr size_t nch
Definition: settings.hpp:33
Slide namespace contains all the types, classes, and functions for the simulation framework.
Definition: Cell.hpp:27
std::array< std::array< T, COL >, ROW > Matrix
See source: http://cpptruths.blogspot.com/2011/10/multi-dimensional-arrays-in-c11....
Definition: matrix.hpp:21
void loadCSV_mat(const Tpath &name, Matrix< T, ROW, COL > &x)
Definition: read_CSVfiles.hpp:57
void loadCSV_1col(const Tpath &name, std::array< T, ROW > &x)
Definition: read_CSVfiles.hpp:94
Definition: Model_SPM.hpp:24
std::array< double, nch > Ap
< cn = Cn*zpos + Dn*jn
Definition: Model_SPM.hpp:36
slide::Matrix< double, nch+1, nch > Cp
Definition: Model_SPM.hpp:39
std::array< double, nch > Bp
Definition: Model_SPM.hpp:37
std::array< double, 4 > Input
array with the input parameters of the MATLAB files
Definition: Model_SPM.hpp:26
std::array< double, nch > Bn
Definition: Model_SPM.hpp:37
std::array< double, nch+1 > Dn
matrix to get the concentration at the centre node
Definition: Model_SPM.hpp:41
slide::Matrix< double, nch, nch > Vp
Definition: Model_SPM.hpp:43
std::array< double, nch+1 > Dp
Definition: Model_SPM.hpp:41
std::array< double, nch > An
only main diagonal is non-zero, so only store those values
Definition: Model_SPM.hpp:36
std::array< double, nch > xch
location of the Chebyshev nodes in the positive domain EXCLUDING centre and surface
Definition: Model_SPM.hpp:28
Model_SPM()
Definition: Model_SPM.hpp:47
std::array< double, nch+1 > Cc
Definition: Model_SPM.hpp:41
slide::Matrix< double, nch, nch > Vn
inverse of the eigenvectors for the positive/negative electrode
Definition: Model_SPM.hpp:43
static Model_SPM * makeModel()
Definition: Model_SPM.hpp:79
slide::Matrix< double, 2 *nch+3, 2 *nch+3 > Q
Matrix for Chebyshev integration.
Definition: Model_SPM.hpp:45
static constexpr auto nch
Definition: Model_SPM.hpp:25
slide::Matrix< double, nch+1, nch > Cn
Definition: Model_SPM.hpp:39