OOFEM 3.0
Loading...
Searching...
No Matches
staggeredsolver.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 staggeredsolver_h
36#define staggeredsolver_h
37
38#include "sparselinsystemnm.h"
40#include "convergedreason.h"
41#include "sparsemtrx.h"
42#include "floatarray.h"
43#include "linesearch.h"
44#include "nrsolver.h"
46
47#include <set>
48#include <vector>
49
50
52
53#define _IFT_StaggeredSolver_Name "staggeredsolver"
54#define _IFT_StaggeredSolver_DofIdList "dofidlist"
55#define _IFT_StaggeredSolver_DofIdListPositions "idpos"
57
58namespace oofem {
59class Domain;
60class EngngModel;
61
62
64{
65protected:
67 int numEqs;
69
70public:
72
73 IntArray dofIdArray; // should be private
74 bool isDefault() const override { return true; }
75 void setDofIdArray(IntArray array) { this->dofIdArray = std::move(array); }
76
77 int giveDofEquationNumber(Dof *dof) const override;
78
79 int giveRequiredNumberOfDomainEquation() const override { return numEqs; }
80
81 int giveNewEquationNumber() { return ++numEqs; }
83 int giveNumEquations() { return this->numEqs; }
84 int giveNumPresEquations() { return this->numPresEqs; }
85};
86
91{
92public:
93 std :: vector< std :: unique_ptr< SparseMtrx > > stiffnessMatrixList;
94 std :: vector< FloatArray > fIntList;
95 std :: vector< FloatArray > fExtList;
96
97 std :: vector< IntArray > locArrayList;
98 std :: vector< FloatArray > X;
99 std :: vector< FloatArray > dX;
100 std :: vector< FloatArray > ddX;
101
102 DofGrouping(const std :: vector< CustomEquationNumbering > &numberings, Domain * m);
103 void giveTotalLocationArray(IntArray &locationArray, const UnknownNumberingScheme &s, Domain *d);
104};
105
111{
112private:
115 std :: vector< CustomEquationNumbering > UnknownNumberingSchemeList;
116
118 double RRT, const FloatArray &internalForcesEBENorm, int nite, bool &errorOutOfRange, TimeStep *tStep, IntArray &dofIdArray);
119
120public:
122 virtual ~StaggeredSolver() {}
123
124 // Overloaded methods:
126 FloatArray &X, FloatArray &dX, FloatArray &F,
127 const FloatArray &internalForcesEBENorm, double &l, referenceLoadInputModeType rlm,
128 int &nite, TimeStep *) override;
129
130 void initializeFrom(InputRecord &ir) override;
131
132 const char *giveClassName() const override { return "StaggeredSolver"; }
133 const char *giveInputRecordName() const override { return _IFT_StaggeredSolver_Name; }
134};
135} // end namespace oofem
136#endif // staggeredsolver_h
int giveRequiredNumberOfDomainEquation() const override
bool isDefault() const override
int giveDofEquationNumber(Dof *dof) const override
void setDofIdArray(IntArray array)
std ::vector< FloatArray > dX
void giveTotalLocationArray(IntArray &locationArray, const UnknownNumberingScheme &s, Domain *d)
std ::vector< FloatArray > fExtList
std ::vector< FloatArray > ddX
DofGrouping(const std ::vector< CustomEquationNumbering > &numberings, Domain *m)
std ::vector< std ::unique_ptr< SparseMtrx > > stiffnessMatrixList
std ::vector< FloatArray > X
std ::vector< IntArray > locArrayList
std ::vector< FloatArray > fIntList
NRSolver(Domain *d, EngngModel *m)
const char * giveInputRecordName() const override
StaggeredSolver(Domain *d, EngngModel *m)
const char * giveClassName() const override
bool checkConvergenceDofIdArray(FloatArray &RT, FloatArray &F, FloatArray &rhs, FloatArray &ddX, FloatArray &X, double RRT, const FloatArray &internalForcesEBENorm, int nite, bool &errorOutOfRange, TimeStep *tStep, IntArray &dofIdArray)
std ::vector< CustomEquationNumbering > UnknownNumberingSchemeList
FloatArrayF< N > solve(FloatMatrixF< N, N > mtrx, const FloatArrayF< N > &b, double zeropiv=1e-20)
#define OOFEM_EXPORT
Definition oofemcfg.h:7
#define _IFT_StaggeredSolver_Name

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