OOFEM 3.0
Loading...
Searching...
No Matches
nldeidynamic.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 nldeidynamic_h
36#define nldeidynamic_h
37
39#include "floatarray.h"
40#include "floatmatrix.h"
41#include "sparselinsystemnm.h"
42#include "sparsemtrxtype.h"
43
44#include <memory>
45
46#define LOCAL_ZERO_MASS_REPLACEMENT 1
47
49
50#define _IFT_NlDEIDynamic_Name "nldeidynamic"
51#define _IFT_NlDEIDynamic_dumpcoef "dumpcoef"
52#define _IFT_NlDEIDynamic_deltat "deltat"
53#define _IFT_NlDEIDynamic_drflag "drflag"
54#define _IFT_NlDEIDynamic_tau "tau"
55#define _IFT_NlDEIDynamic_py "py"
56#define _IFT_NlDEIDynamic_nonlocalext "nonlocalext"
57#define _IFT_NlDEIDynamic_reduct "reduct"
59
60namespace oofem {
92{
93protected:
107 double deltaT;
112 // dynamic relaxation specific vars
118 double c;
120 double pt;
122 double Tau;
126 double pMp;
127
130 std::unique_ptr<SparseLinearSystemNM> nMethod;
131
132public:
133 NlDEIDynamic(int i, EngngModel *master = nullptr);
134
135 virtual ~NlDEIDynamic();
136
137 void solveYourself() override;
138 void solveYourselfAt(TimeStep *tStep) override;
139
140 void updateYourself(TimeStep *tStep) override;
141 double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof) override;
142 void initializeFrom(InputRecord &ir) override;
143
144 TimeStep *giveNextStep() override;
146
147 void saveContext(DataStream &stream, ContextMode mode) override;
148 void restoreContext(DataStream &stream, ContextMode mode) override;
149
150 void printOutputAt(FILE *file, TimeStep *tStep) override;
151
152 void printDofOutputAt(FILE *stream, Dof *iDof, TimeStep *tStep) override;
153
154 // identification
155 const char *giveInputRecordName() const { return _IFT_NlDEIDynamic_Name; }
156 const char *giveClassName() const override { return "NlDEIDynamic"; }
157 fMode giveFormulation() override { return TL; }
158
159 int giveNumberOfFirstStep(bool force = false) override { return 0; }
160
161protected:
169 void computeLoadVector(FloatArray &answer, ValueModeType mode, TimeStep *tStep);
179 void computeMassMtrx(FloatArray &mass, double &maxOm, TimeStep *tStep);
180 void computeMassMtrx2(FloatMatrix &mass, double &maxOm, TimeStep *tStep);
181
182 double giveInitialTime() override {return 1;}
183
184public:
185 int estimateMaxPackSize(IntArray &commMap, DataStream &buff, int packUnpackType) override;
186};
187} // end namespace oofem
188#endif // nldeidynamic_h
EngngModel * master
Master e-model; if defined receiver is in maintained (slave) mode.
Definition engngm.h:274
FloatArray internalForces
Vector of real nodal forces.
void saveContext(DataStream &stream, ContextMode mode) override
FloatArray massMatrix
Mass matrix.
virtual ~NlDEIDynamic()
double pMp
Product of p^tM^(-1)p; where p is reference load vector.
FloatArray accelerationVector
TimeStep * giveNextStep() override
Returns next time step (next to current step) of receiver.
int estimateMaxPackSize(IntArray &commMap, DataStream &buff, int packUnpackType) override
void restoreContext(DataStream &stream, ContextMode mode) override
double dumpingCoef
Dumping coefficient (C = dumpingCoef * MassMtrx).
double reductionFactor
Optional reduction factor for time step deltaT.
FloatArray loadRefVector
Reference load vector.
double deltaT
Time step.
NlDEIDynamic(int i, EngngModel *master=nullptr)
void solveYourselfAt(TimeStep *tStep) override
FloatArray velocityVector
void updateYourself(TimeStep *tStep) override
void computeMassMtrx(FloatArray &mass, double &maxOm, TimeStep *tStep)
double Tau
End of time interval.
int giveNumberOfFirstStep(bool force=false) override
double pt
Load level.
SparseMtrxType sparseMtrxType
FloatArray loadVector
Load vector.
double pyEstimate
Estimate of loadRefVector^T*displacementVector(Tau).
double giveInitialTime() override
return time at the begining of analysis
LinSystSolverType solverType
FloatArray previousIncrementOfDisplacementVector
Vector storing displacement increments.
fMode giveFormulation() override
void solveYourself() override
const char * giveInputRecordName() const
void printDofOutputAt(FILE *stream, Dof *iDof, TimeStep *tStep) override
FloatArray displacementVector
Displacement, velocity and acceleration vectors.
NumericalMethod * giveNumericalMethod(MetaStep *mStep) override
Returns reference to receiver's numerical method.
std::unique_ptr< SparseLinearSystemNM > nMethod
double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof) override
int initFlag
Flag indicating the need for initialization.
double c
Parameter determining rate of the loading process.
const char * giveClassName() const override
Returns class name of the receiver.
void computeMassMtrx2(FloatMatrix &mass, double &maxOm, TimeStep *tStep)
void computeLoadVector(FloatArray &answer, ValueModeType mode, TimeStep *tStep)
void initializeFrom(InputRecord &ir) override
void printOutputAt(FILE *file, TimeStep *tStep) override
int drFlag
Flag indicating whether dynamic relaxation takes place.
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
@ TL
Total Lagrange.
Definition fmode.h:44
#define _IFT_NlDEIDynamic_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