|
Feellgood
|
template class for the different solvers template parameter DIM_PROBLEM: dimensionnality of the problem to solve More...
#include <solver.h>
Public Member Functions | |
| solver (Mesh::mesh &_msh, std::vector< Tetra::prm > &_pTetra, std::vector< Facette::prm > &_pFac, const std::string name, const double _tol, const bool v, const int max_iter) | |
| virtual void | checkBoundaryConditions (void) const =0 |
Protected Member Functions | |
| template<int N> | |
| void | buildMat (std::vector< int > &ind, Eigen::Matrix< double, DIM_PROBLEM *N, DIM_PROBLEM *N > &Ke, algebra::w_sparseMat &K) |
| template<int N> | |
| void | buildVect (std::vector< int > &ind, std::vector< double > &Le, std::vector< double > &L) |
Protected Attributes | |
| Mesh::mesh * | msh |
| const int | NOD |
| const std::vector< Tetra::prm > & | paramTet |
| const std::vector< Facette::prm > & | paramFac |
| const bool | verbose |
| algebra::iteration< double > | iter |
Static Protected Attributes | |
| static const int | DIM_PB = DIM_PROBLEM |
template class for the different solvers template parameter DIM_PROBLEM: dimensionnality of the problem to solve
|
inlineexplicit |
constructor
| [in] | _msh | mesh |
| [in] | _pTetra | ref to vector of param tet (volume region parameters) |
| [in] | _pFac | ref to vector of param fac (surface region parameters) |
| [in] | name | name of the solver method |
| [in] | _tol | solver tolerance |
| [in] | v | verbose mode for iteration monitor |
| [in] | max_iter | maximum number of iterations |
|
inlineprotected |
function template. parameter N is the number of indices of the element to build matrix from: ind.size() = N
|
inlineprotected |
function template. parameter N is the number of indices of the element to build vector from
|
pure virtual |
check boundary conditions, exit if there is a mistake in the boundary conditions
Implemented in spinAcc, LinAlgebra, and electrostatSolver.
|
staticprotected |
dimensionnality of the problem
|
protected |
monitor the solver called in method solve()
|
protected |
mesh pointer to access nodes, fac, tet, and others geometrical values and methods
|
protected |
number of nodes in the mesh
|
protected |
this vector contains the material parameters for all surface regions for all the triangular facettes
|
protected |
this vector contains the material parameters for all volume regions for all the tetrahedrons
|
protected |
if verbose set to true, some printing are sent to terminal