1 #ifndef linear_algebra_h
2 #define linear_algebra_h
11 #pragma GCC diagnostic push
12 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
14 #pragma GCC diagnostic pop
42 my_msh, s.paramTetra, s.paramTriangle,
"bicg_dir", s.TOL, s.
verbose, s.MAXITER,
53 {
idx_dir = s.recentering_direction; }
55 for (
int i = 0; i <
NOD; i++)
57 if(!my_msh.magNode[i])
59 lvd.push_back(2 * i );
60 lvd.push_back(2 * i + 1);
76 const timing &t_prm )
const;
86 const timing &t_prm )
const;
116 std::vector<double>
Xw;
128 const std::vector< Eigen::Matrix<double,Nodes::DIM,Tetra::NPI> >&
extSpaceField;
Definition: linear_algebra.h:35
LinAlgebra(Settings &s, Mesh::mesh &my_msh)
Definition: linear_algebra.h:40
double DW_vz
Definition: linear_algebra.h:122
void setExtSpaceField(Settings &s)
Nodes::index idx_dir
Definition: linear_algebra.h:113
void base_projection() const
Definition: linear_algebra.cpp:3
double v_max
Definition: linear_algebra.h:125
void prepareElements(const Eigen::Vector3d &Hext, const timing &t_prm) const
Definition: linear_algebra.cpp:26
void set_DW_vz(const double vz)
Definition: linear_algebra.h:97
void buildInitGuess(std::vector< double > &G) const
Definition: linear_algebra.cpp:13
std::vector< int > lvd
Definition: linear_algebra.h:131
std::vector< double > Xw
Definition: linear_algebra.h:116
const std::vector< Eigen::Matrix< double, Nodes::DIM, Tetra::NPI > > & extSpaceField
Definition: linear_algebra.h:128
bool solve(const timing &t_prm)
Definition: solver.cpp:6
void checkBoundaryConditions(void) const override
Definition: linear_algebra.h:67
double get_v_max(void) const
Definition: linear_algebra.h:101
const int verbose
Definition: linear_algebra.h:119
std::vector< bool > magNode
Definition: mesh.h:363
Container for all the settings provided by the user, with conversions to/from YAML.
Definition: settings.h:70
template class for the different solvers template parameter DIM_PROBLEM: dimensionnality of the probl...
Definition: solver.h:22
Mesh::mesh * msh
Definition: solver.h:49
const int NOD
Definition: solver.h:52
Definition: time_integration.h:7
const int DIM_PB_MAG
Definition: linear_algebra.h:24
index
Definition: node.h:33
header to define struct Node
many settings to give some parameters to the solver, boundary conditions for the problem,...
two templates to fill matrix and vectors in various dimensionnality situations. DIM_PROBLEM = 1 is us...
namespace Tetra header containing Tet class, some constants, and integrales