solver for electrostatic problem when STT is required header containing electrostatSolver class. It uses biconjugate stabilized gradient with diagonal preconditioner. The solver is only called once to compute voltages V for each nodes of the mesh, when STT computation is involved.
More...
#include <iostream>
#include <map>
#include "config.h"
#include "fem.h"
#include "mesh.h"
#include "facette.h"
#include "tetra.h"
#include "spinTransferTorque.h"
Go to the source code of this file.
solver for electrostatic problem when STT is required header containing electrostatSolver class. It uses biconjugate stabilized gradient with diagonal preconditioner. The solver is only called once to compute voltages V for each nodes of the mesh, when STT computation is involved.
◆ assembling_mat()
void assembling_mat |
( |
Tetra::Tet const & |
tet, |
|
|
double |
Ke[Tetra::N][Tetra::N], |
|
|
std::vector< Eigen::Triplet< double >> & |
K |
|
) |
| |
|
inline |
assemble the matrix K from tet and Ke inputs
◆ assembling_vect()
void assembling_vect |
( |
Facette::Fac const & |
fac, |
|
|
std::vector< double > const & |
Le, |
|
|
Eigen::Ref< Eigen::VectorXd > |
L |
|
) |
| |
|
inline |
assemble the vector L from fac and Le inputs
◆ integrales() [1/2]
void integrales |
( |
Facette::Fac const & |
fac, |
|
|
double |
pot_val, |
|
|
std::vector< double > & |
BE |
|
) |
| |
compute integrales for vector coefficients, input from facette
◆ integrales() [2/2]
void integrales |
( |
Tetra::Tet const & |
tet, |
|
|
double |
sigma, |
|
|
double |
AE[Tetra::N][Tetra::N] |
|
) |
| |
compute side problem (electrostatic potential on the nodes) integrales for matrix coefficients,input from tet ; sigma is the region conductivity