OOFEM 3.0
Loading...
Searching...
No Matches
diidynamic.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 diidynamic_h
36#define diidynamic_h
37
39#include "sparselinsystemnm.h"
40#include "sparsemtrx.h"
42
44
45#define _IFT_DIIDynamic_Name "diidynamic"
46#define _IFT_DIIDynamic_deltat "deltat"
47#define _IFT_DIIDynamic_ddtScheme "ddtscheme"
48#define _IFT_DIIDynamic_gamma "gamma"
49#define _IFT_DIIDynamic_beta "beta"
50#define _IFT_DIIDynamic_eta "eta"
51#define _IFT_DIIDynamic_delta "delta"
52#define _IFT_DIIDynamic_theta "theta"
54
55namespace oofem {
74{
75protected:
77 std :: unique_ptr< SparseMtrx > stiffnessMatrix;
83 double a0, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11;
84 double gamma, beta, deltaT;
85 double eta, delta;
86 double theta;
87
90
93
95 std :: unique_ptr< SparseLinearSystemNM > nMethod;
96
97public:
98 DIIDynamic(int i, EngngModel *master = nullptr);
99 virtual ~DIIDynamic();
100
101 void solveYourself() override;
102 void solveYourselfAt(TimeStep *tStep) override;
103 void updateYourself(TimeStep *tStep) override;
104 double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof) override;
105 void initializeFrom(InputRecord &ir) override;
106 TimeStep *giveNextStep() override;
108 void initializeYourself(TimeStep *tStep) override;
109
110 // identification
111 const char *giveClassName() const override { return "DIIDynamic"; }
112 const char *giveInputRecordName() const { return _IFT_DIIDynamic_Name; }
113 fMode giveFormulation() override { return TL; }
114
115 void printDofOutputAt(FILE *stream, Dof *iDof, TimeStep *tStep) override;
116
117 void timesMtrx(FloatArray &answer, FloatArray &vec, CharType type, Domain *domain, TimeStep *tStep);
118 void assembleLoadVector(FloatArray &_loadVector, Domain *domain, ValueModeType mode, TimeStep *tStep);
119
120
121 void assembleDirichletBcRhsVector (FloatArray& answer, Domain* d, TimeStep *tStep);
122 void determineConstants(TimeStep *tStep);
123 void saveContext(DataStream &stream, ContextMode mode) override;
124 void restoreContext(DataStream &stream, ContextMode mode) override;
125
127};
128} // end namespace oofem
129#endif // diidynamic_h
void restoreContext(DataStream &stream, ContextMode mode) override
Definition diidynamic.C:643
void printDofOutputAt(FILE *stream, Dof *iDof, TimeStep *tStep) override
Definition diidynamic.C:405
void solveYourselfAt(TimeStep *tStep) override
Definition diidynamic.C:239
void timesMtrx(FloatArray &answer, FloatArray &vec, CharType type, Domain *domain, TimeStep *tStep)
Definition diidynamic.C:417
DIIDynamic(int i, EngngModel *master=nullptr)
Definition diidynamic.C:51
FloatArray previousDisplacementVector
Definition diidynamic.h:80
void determineConstants(TimeStep *tStep)
Definition diidynamic.C:547
void initializeFrom(InputRecord &ir) override
Definition diidynamic.C:83
NumericalMethod * giveNumericalMethod(MetaStep *mStep) override
Returns reference to receiver's numerical method.
Definition diidynamic.C:65
FloatArray rhs
Definition diidynamic.h:78
TimeDiscretizationType previousTimeDiscretization
Definition diidynamic.h:91
TimeDiscretizationType giveInitialTimeDiscretization()
Definition diidynamic.h:126
fMode giveFormulation() override
Definition diidynamic.h:113
void updateYourself(TimeStep *tStep) override
Definition diidynamic.C:392
void assembleDirichletBcRhsVector(FloatArray &answer, Domain *d, TimeStep *tStep)
Definition diidynamic.C:483
std ::unique_ptr< SparseLinearSystemNM > nMethod
Numerical method used to solve the problem.
Definition diidynamic.h:95
FloatArray previousVelocityVector
Definition diidynamic.h:80
LinSystSolverType solverType
Definition diidynamic.h:88
double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof) override
Definition diidynamic.C:132
void assembleLoadVector(FloatArray &_loadVector, Domain *domain, ValueModeType mode, TimeStep *tStep)
Definition diidynamic.C:471
TimeDiscretizationType initialTimeDiscretization
Definition diidynamic.h:92
void saveContext(DataStream &stream, ContextMode mode) override
Definition diidynamic.C:616
FloatArray velocityVector
Definition diidynamic.h:79
FloatArray accelerationVector
Definition diidynamic.h:79
FloatArray previousAccelerationVector
Definition diidynamic.h:80
FloatArray previousIncrementOfDisplacement
Definition diidynamic.h:81
FloatArray previousLoadVector
Definition diidynamic.h:78
FloatArray displacementVector
Definition diidynamic.h:79
void initializeYourself(TimeStep *tStep) override
Definition diidynamic.C:190
FloatArray help
Definition diidynamic.h:82
FloatArray loadVector
Definition diidynamic.h:78
TimeStep * giveNextStep() override
Returns next time step (next to current step) of receiver.
Definition diidynamic.C:165
FloatArray rhs2
Definition diidynamic.h:78
void solveYourself() override
Definition diidynamic.C:234
const char * giveInputRecordName() const
Definition diidynamic.h:112
std ::unique_ptr< SparseMtrx > stiffnessMatrix
Definition diidynamic.h:77
virtual ~DIIDynamic()
Definition diidynamic.C:61
SparseMtrxType sparseMtrxType
Definition diidynamic.h:89
const char * giveClassName() const override
Returns class name of the receiver.
Definition diidynamic.h:111
EngngModel * master
Master e-model; if defined receiver is in maintained (slave) mode.
Definition engngm.h:274
StructuralEngngModel(int i, EngngModel *master=nullptr)
Creates new StructuralEngngModel with number i, associated to domain d.
#define _IFT_DIIDynamic_Name
Definition diidynamic.h:45
long ContextMode
Definition contextmode.h:43
fMode
Definition fmode.h:42
@ TL
Total Lagrange.
Definition fmode.h:44
TimeDiscretizationType
Time discretization used by transient solvers.

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