epot_matrixsolver.hpp
Go to the documentation of this file.
Class nodes to degrees of freedom mapping.
Definition: epot_matrixsolver.hpp:75
void debug_print(std::ostream &os) const
Print debugging information to os.
Definition: epot_matrixsolver.cpp:88
Parent class for Matrix-based solvers for Electric potential problem.
Definition: epot_matrixsolver.hpp:62
void get_resjac(const CRowMatrix **J, const Vector **R, const Vector &X)
Return const pointers to jacobian matrix and residual vector of the problem to J and R at X.
Definition: epot_matrixsolver.cpp:905
void set_solution(MeshScalarField &epot, const Vector &X) const
Load electric potential from solution vector.
Definition: epot_matrixsolver.cpp:798
const Vector * _sol
Current solution vector.
Definition: epot_matrixsolver.hpp:111
CRowMatrix * _fd_mat
Finite Difference matrix.
Definition: epot_matrixsolver.hpp:108
virtual void save(std::ostream &s) const
Saves problem data to stream.
Definition: epot_matrixsolver.cpp:960
virtual void debug_print(std::ostream &os) const
Print debugging information to os.
Definition: epot_matrixsolver.cpp:943
Vector * _d_vec
Derivative vector for nonlinear solution.
Definition: epot_matrixsolver.hpp:110
void get_vecmat(const CRowMatrix **A, const Vector **B)
Return const pointers to the matrix A and vector B of the linear problem.
Definition: epot_matrixsolver.cpp:897
Node2DoF _n2d
Nodes to degrees of freedom map.
Definition: epot_matrixsolver.hpp:107
virtual ~EpotMatrixSolver()
Destructor.
Definition: epot_matrixsolver.cpp:128
void reset_matrix(void)
Reset matrix representation.
Definition: epot_matrixsolver.cpp:771
EpotMatrixSolver(Geometry &geom)
Constructor.
Definition: epot_matrixsolver.cpp:114
void preprocess(MeshScalarField &epot, const MeshScalarField &scharge)
Preprocess.
Definition: epot_matrixsolver.cpp:811
Vector * _fd_vec
Finite Difference vector.
Definition: epot_matrixsolver.hpp:109
void set_initial_guess(const MeshScalarField &epot, Vector &X) const
Return true if problem is linear.
Definition: epot_matrixsolver.cpp:785
void postprocess(void)
Postprocess.
Definition: epot_matrixsolver.cpp:890
Class for constructing the linear/nonlinear problem for the solver.
Definition: epot_solver.hpp:210
Compressed row sparse matrix algebra.
Poisson equation problem for solving electric potential.
N-dimensional vector.