OOFEM 3.0
Loading...
Searching...
No Matches
nlineardynamic.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 nlineardynamic_h
36#define nlineardynamic_h
37
39#include "sparsemtrxtype.h"
40#include "sparselinsystemnm.h"
43
45
46#define _IFT_NonLinearDynamic_Name "nonlineardynamic"
47#define _IFT_NonLinearDynamic_deltat "deltat"
48#define _IFT_NonLinearDynamic_refloadmode "refloadmode"
49#define _IFT_NonLinearDynamic_nonlocstiff "nonlocstiff"
50#define _IFT_NonLinearDynamic_nonlocalext "nonlocalext"
51#define _IFT_NonLinearDynamic_ddtScheme "ddtscheme"
52#define _IFT_NonLinearDynamic_gamma "gamma"
53#define _IFT_NonLinearDynamic_beta "beta"
54#define _IFT_NonLinearDynamic_eta "eta"
55#define _IFT_NonLinearDynamic_delta "delta"
57
58namespace oofem {
59
86{
87protected:
88 std :: unique_ptr< SparseMtrx > effectiveStiffnessMatrix, massMatrix;
89
92
95 double gamma, beta;
96 double eta, delta;
97 double a0, a1, a2, a3, a4, a5, a6, a7;
98
105
110 std :: unique_ptr< SparseNonLinearSystemNM > nMethod;
112 double deltaT;
113
114public:
115 NonLinearDynamic(int i, EngngModel *master = nullptr);
116 virtual ~NonLinearDynamic();
117
118 void solveYourself() override;
119 void solveYourselfAt(TimeStep *tStep) override;
120
121 void printOutputAt(FILE *file, TimeStep *tStep) override;
122 void printDofOutputAt(FILE *stream, Dof *iDof, TimeStep *tStep) override;
123
124 void updateYourself(TimeStep *tStep) override;
125 void updateComponent(TimeStep *tStep, NumericalCmpn, Domain *d) override;
126 void updateSolution(FloatArray &solutionVector, TimeStep *tStep, Domain *d) override;
127 void updateInternalRHS(FloatArray &answer, TimeStep *tStep, Domain *d, FloatArray *eNorm) override;
128 void updateMatrix(SparseMtrx &mat, TimeStep *tStep, Domain *d) override;
129 void updateAttributes(MetaStep *mStep) override;
130 void initializeYourself(TimeStep *tStep) override;
131
132 double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof) override;
133
134 void initializeFrom(InputRecord &ir) override;
135 TimeStep *giveNextStep() override;
137
138 void saveContext(DataStream &stream, ContextMode mode) override;
139 void restoreContext(DataStream &stream, ContextMode mode) override;
140
141 void updateDomainLinks() override;
142
143 // Identification
144 const char *giveInputRecordName() const { return _IFT_NonLinearDynamic_Name; }
145 const char *giveClassName() const override { return "NonLinearDynamic"; }
147 int useNonlocalStiffnessOption() override { return this->nonlocalStiffnessFlag; }
148 int giveUnknownDictHashIndx(ValueModeType mode, TimeStep *tStep) override { return ( int ) mode; }
149 void timesMtrx(FloatArray &answer, FloatArray &vec, CharType type, Domain *domain, TimeStep *tStep);
150
152
153#ifdef __OOFEG
154 void showSparseMtrxStructure(int type, oofegGraphicContext &gc, TimeStep *tStep) override;
155#endif
156
157 int estimateMaxPackSize(IntArray &commMap, DataStream &buff, int packUnpackType) override;
158#ifdef __MPI_PARALLEL_MODE
159 LoadBalancer *giveLoadBalancer() override;
161#endif
162
163protected:
164 void assemble(SparseMtrx &answer, TimeStep *tStep, const MatrixAssembler &ma,
165 const UnknownNumberingScheme &, Domain *domain) override;
166
167 void proceedStep(int di, TimeStep *tStep);
168 void determineConstants(TimeStep *tStep);
169
170 void packMigratingData(TimeStep *tStep) override;
171 void unpackMigratingData(TimeStep *tStep) override;
172};
173} // end namespace oofem
174#endif // nlineardynamic_h
enum fMode nonLinFormulation
Type of non linear formulation (total or updated formulation).
Definition engngm.h:283
EngngModel * master
Master e-model; if defined receiver is in maintained (slave) mode.
Definition engngm.h:274
TimeDiscretizationType initialTimeDiscretization
void updateSolution(FloatArray &solutionVector, TimeStep *tStep, Domain *d) override
void printOutputAt(FILE *file, TimeStep *tStep) override
LoadBalancerMonitor * giveLoadBalancerMonitor() override
void updateInternalRHS(FloatArray &answer, TimeStep *tStep, Domain *d, FloatArray *eNorm) override
void assemble(SparseMtrx &answer, TimeStep *tStep, const MatrixAssembler &ma, const UnknownNumberingScheme &, Domain *domain) override
void packMigratingData(TimeStep *tStep) override
FloatArray previousAccelerationVector
void updateAttributes(MetaStep *mStep) override
FloatArray previousTotalDisplacement
TimeDiscretizationType giveInitialTimeDiscretization()
void determineConstants(TimeStep *tStep)
void updateYourself(TimeStep *tStep) override
fMode giveFormulation() override
void updateDomainLinks() override
LinSystSolverType solverType
const char * giveInputRecordName() const
int estimateMaxPackSize(IntArray &commMap, DataStream &buff, int packUnpackType) override
void unpackMigratingData(TimeStep *tStep) override
void updateComponent(TimeStep *tStep, NumericalCmpn, Domain *d) override
void proceedStep(int di, TimeStep *tStep)
FloatArray previousIncrementOfDisplacement
void saveContext(DataStream &stream, ContextMode mode) override
double deltaT
Intrinsic time increment.
NumericalMethod * giveNumericalMethod(MetaStep *mStep) override
Returns reference to receiver's numerical method.
std ::unique_ptr< SparseMtrx > effectiveStiffnessMatrix
void showSparseMtrxStructure(int type, oofegGraphicContext &gc, TimeStep *tStep) override
double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof) override
LoadBalancer * giveLoadBalancer() override
void solveYourselfAt(TimeStep *tStep) override
std ::unique_ptr< SparseMtrx > massMatrix
const char * giveClassName() const override
Returns class name of the receiver.
TimeStep * giveNextStep() override
Returns next time step (next to current step) of receiver.
std ::unique_ptr< SparseNonLinearSystemNM > nMethod
Numerical method used to solve the problem.
void restoreContext(DataStream &stream, ContextMode mode) override
int giveUnknownDictHashIndx(ValueModeType mode, TimeStep *tStep) override
void initializeYourself(TimeStep *tStep) override
void updateMatrix(SparseMtrx &mat, TimeStep *tStep, Domain *d) override
void initializeFrom(InputRecord &ir) override
int useNonlocalStiffnessOption() override
Returns nonzero if nonlocal stiffness option activated.
void solveYourself() override
SparseMtrxType sparseMtrxType
void printDofOutputAt(FILE *stream, Dof *iDof, TimeStep *tStep) override
void timesMtrx(FloatArray &answer, FloatArray &vec, CharType type, Domain *domain, TimeStep *tStep)
NonLinearDynamic(int i, EngngModel *master=nullptr)
StructuralEngngModel(int i, EngngModel *master=nullptr)
Creates new StructuralEngngModel with number i, associated to domain d.
long ContextMode
Definition contextmode.h:43
fMode
Definition fmode.h:42
TimeDiscretizationType
Time discretization used by transient solvers.
#define _IFT_NonLinearDynamic_Name
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]

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