OOFEM 3.0
Loading...
Searching...
No Matches
imlsolver.h
Go to the documentation of this file.
1/*
2 *
3 * ##### ##### ###### ###### ### ###
4 * ## ## ## ## ## ## ## ### ##
5 * ## ## ## ## #### #### ## # ##
6 * ## ## ## ## ## ## ## ##
7 * ## ## ## ## ## ## ## ##
8 * ##### ##### ## ###### ## ##
9 *
10 *
11 * OOFEM : Object Oriented Finite Element Code
12 *
13 * Copyright (C) 1993 - 2025 Borek Patzak
14 *
15 *
16 *
17 * Czech Technical University, Faculty of Civil Engineering,
18 * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19 *
20 * This library is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU Lesser General Public
22 * License as published by the Free Software Foundation; either
23 * version 2.1 of the License, or (at your option) any later version.
24 *
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28 * Lesser General Public License for more details.
29 *
30 * You should have received a copy of the GNU Lesser General Public
31 * License along with this library; if not, write to the Free Software
32 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33 */
34
35#ifndef imlsolver_h
36#define imlsolver_h
37
38#include "sparselinsystemnm.h"
39#include "sparsemtrx.h"
40#include "convergedreason.h"
41#include "floatarray.h"
42#include "precond.h"
43
44#include <memory>
45
47
48#define _IFT_IMLSolver_Name "iml"
49#define _IFT_IMLSolver_stype "stype"
50#define _IFT_IMLSolver_lstol "lstol"
51#define _IFT_IMLSolver_lsiter "lsiter"
52#define _IFT_IMLSolver_lsprecond "lsprecond"
54
55namespace oofem {
56class Domain;
57class EngngModel;
58class FloatMatrix;
59
65{
66private:
71
75 SparseMtrx :: SparseMtrxVersionType lhsVersion;
77 std::unique_ptr<Preconditioner> M;
84 // Preconditioner attribute string
85 // InputRecord precondAttributes;
86
88 double tol;
90 int maxite;
91
92public:
96 virtual ~IMLSolver() {}
97
99
100 void initializeFrom(InputRecord &ir) override;
101 const char *giveClassName() const override { return "IMLSolver"; }
102 LinSystSolverType giveLinSystSolverType() const override { return ST_IML; }
103 SparseMtrxType giveRecommendedMatrix(bool symmetric) const override { return symmetric ? SMT_SymCompCol : SMT_CompCol; }
104};
105} // end namespace oofem
106#endif // imlsolver_h
IMLSolver(Domain *d, EngngModel *m)
Constructor. Creates new instance of LDLTFactorization, with number i, belonging to domain d and Engn...
LinSystSolverType giveLinSystSolverType() const override
Definition imlsolver.h:102
IMLSolverType
Solver type.
Definition imlsolver.h:68
bool precondInit
Precond. init flag.
Definition imlsolver.h:83
SparseMtrx * lhs
Last mapped Lhs matrix.
Definition imlsolver.h:73
SparseMtrxType giveRecommendedMatrix(bool symmetric) const override
Definition imlsolver.h:103
const char * giveClassName() const override
Definition imlsolver.h:101
IMLPrecondType precondType
IML Preconditioner type.
Definition imlsolver.h:81
std::unique_ptr< Preconditioner > M
Preconditioner.
Definition imlsolver.h:77
double tol
Tolerance of residual.
Definition imlsolver.h:88
IMLPrecondType
Preconditioner type.
Definition imlsolver.h:70
int maxite
Max number of iterations.
Definition imlsolver.h:90
virtual ~IMLSolver()
Destructor.
Definition imlsolver.h:96
SparseMtrx::SparseMtrxVersionType lhsVersion
Last mapped matrix version.
Definition imlsolver.h:75
IMLSolverType solverType
IML Solver type.
Definition imlsolver.h:79
SparseLinearSystemNM(Domain *d, EngngModel *m)
Constructor.
FloatArrayF< N > solve(FloatMatrixF< N, N > mtrx, const FloatArrayF< N > &b, double zeropiv=1e-20)
@ SMT_SymCompCol
Symmetric compressed column.
@ SMT_CompCol
Compressed column.
#define OOFEM_EXPORT
Definition oofemcfg.h:7

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011