1 #ifndef linear_algebra_h
2 #define linear_algebra_h
10 #pragma GCC diagnostic push
11 #pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
13 #pragma GCC diagnostic pop
60 auto insert_pair = [
this, &shape](
int i,
int j)
62 shape[2*i].insert(2*j);
63 shape[2*i].insert(2*j+1);
64 shape[2*i+1].insert(2*j);
65 shape[2*i+1].insert(2*j+1);
67 for (
int i = 0; i <
NOD; ++i)
68 { insert_pair(i, i); }
71 insert_pair(edge.first, edge.second);
72 insert_pair(edge.second, edge.first);
125 std::vector<double>
Xw;
set of class to handle sparse matrix operations for gradient conjugate algorithms a sparse vector cla...
Definition: linear_algebra.h:34
LinAlgebra(Settings &s, Mesh::mesh &my_msh)
Definition: linear_algebra.h:39
double DW_vz
Definition: linear_algebra.h:137
const int NOD
Definition: linear_algebra.h:110
double get_v_max(void)
Definition: linear_algebra.h:98
void setExtSpaceField(Settings &s)
Definition: linear_algebra.cpp:73
Nodes::index idx_dir
Definition: linear_algebra.h:107
double v_max
Definition: linear_algebra.h:140
algebra::iteration< double > iter
Definition: linear_algebra.h:116
void prepareElements(Eigen::Vector3d const &Hext, timing const &t_prm)
Definition: linear_algebra.cpp:22
algebra::MatrixShape build_shape()
Definition: linear_algebra.h:57
void set_DW_vz(double vz)
Definition: linear_algebra.h:95
int solver(timing const &t_prm)
Definition: solver.cpp:6
const std::vector< Tetra::prm > & prmTetra
Definition: linear_algebra.h:131
Mesh::mesh * refMsh
Definition: linear_algebra.h:113
void buildInitGuess(std::vector< double > &G) const
Definition: linear_algebra.cpp:13
std::vector< double > Xw
Definition: linear_algebra.h:125
algebra::r_sparseMat K
Definition: linear_algebra.h:119
const std::vector< Facette::prm > & prmFacette
Definition: linear_algebra.h:134
void base_projection()
Definition: linear_algebra.cpp:3
std::vector< double > L_rhs
Definition: linear_algebra.h:122
std::vector< Eigen::Matrix< double, Nodes::DIM, Tetra::NPI > > extSpaceField
Definition: linear_algebra.h:143
const int verbose
Definition: linear_algebra.h:128
std::vector< std::pair< int, int > > edges
Definition: mesh.h:229
Container for all the settings provided by the user, with conversions to/from YAML.
Definition: feellgoodSettings.h:63
Nodes::index recentering_direction
Definition: feellgoodSettings.h:137
field_exprType getFieldType(void) const
Definition: feellgoodSettings.h:278
bool recenter
Definition: feellgoodSettings.h:134
Read-mode square sparse matrix.
Definition: sparseMat.h:87
Definition: time_integration.h:6
contains namespace Facette header containing Fac class, and some constants and a less_than operator t...
many settings to give some parameters to the solver, boundary conditions for the problem,...
@ R4toR3
Definition: feellgoodSettings.h:36
class mesh, readMesh is expecting a mesh file in gmsh format either text or binary,...
index
Definition: node.h:34
std::vector< std::set< int > > MatrixShape
Definition: sparseMat.h:41
header to define struct Node
namespace Tetra header containing Tet class, some constants, and integrales