OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
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 - 2013 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 
38 #include "../sm/EngineeringModels/structengngmodel.h"
39 #include "floatarray.h"
40 #include "floatmatrix.h"
41 #include "sparselinsystemnm.h"
42 #include "sparsemtrxtype.h"
43 
44 #define LOCAL_ZERO_MASS_REPLACEMENT 1
45 
47 
48 #define _IFT_NlDEIDynamic_Name "nldeidynamic"
49 #define _IFT_NlDEIDynamic_dumpcoef "dumpcoef"
50 #define _IFT_NlDEIDynamic_deltat "deltat"
51 #define _IFT_NlDEIDynamic_drflag "drflag"
52 #define _IFT_NlDEIDynamic_tau "tau"
53 #define _IFT_NlDEIDynamic_py "py"
54 #define _IFT_NlDEIDynamic_nonlocalext "nonlocalext"
55 
56 
57 namespace oofem {
89 {
90 protected:
102  double dumpingCoef;
104  double deltaT;
106  int initFlag;
107 
108  // dynamic relaxation specific vars
110  int drFlag;
114  double c;
116  double pt;
118  double Tau;
120  double pyEstimate;
122  double pMp;
123 
128 
129 public:
130  NlDEIDynamic(int i, EngngModel * _master = NULL);
131 
132  virtual ~NlDEIDynamic();
133 
134  virtual void solveYourself();
135  virtual void solveYourselfAt(TimeStep *tStep);
136 
137  virtual void updateYourself(TimeStep *tStep);
138  virtual double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof);
140 
141  virtual TimeStep *giveNextStep();
143 
144  virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode);
146 
147  virtual void printOutputAt(FILE *file, TimeStep *tStep);
148 
149  virtual void printDofOutputAt(FILE *stream, Dof *iDof, TimeStep *tStep);
150 
151  // identification
152  virtual const char *giveInputRecordName() const { return _IFT_NlDEIDynamic_Name; }
153  virtual const char *giveClassName() const { return "NlDEIDynamic"; }
154  virtual fMode giveFormulation() { return TL; }
155 
156  virtual int giveNumberOfFirstStep(bool force = false) { return 0; }
157 
158 protected:
166  void computeLoadVector(FloatArray &answer, ValueModeType mode, TimeStep *tStep);
176  void computeMassMtrx(FloatArray &mass, double &maxOm, TimeStep *tStep);
177  void computeMassMtrx2(FloatMatrix &mass, double &maxOm, TimeStep *tStep);
178 
179 public:
180  virtual int estimateMaxPackSize(IntArray &commMap, DataStream &buff, int packUnpackType);
181 };
182 } // end namespace oofem
183 #endif // nldeidynamic_h
LinSystSolverType
The values of this type should be related not to specific solvers, but more to specific packages that...
FloatArray loadRefVector
Reference load vector.
Definition: nldeidynamic.h:112
void computeMassMtrx(FloatArray &mass, double &maxOm, TimeStep *tStep)
Assembles the diagonal mass matrix of receiver.
Definition: nldeidynamic.C:506
virtual void solveYourself()
Starts solution process.
Definition: nldeidynamic.C:176
virtual void printOutputAt(FILE *file, TimeStep *tStep)
Prints output of receiver to output domain stream, for given time step.
Definition: nldeidynamic.C:789
FloatArray internalForces
Vector of real nodal forces.
Definition: nldeidynamic.h:100
virtual void updateYourself(TimeStep *tStep)
Updates internal state after finishing time step.
Definition: nldeidynamic.C:475
virtual void solveYourselfAt(TimeStep *tStep)
Solves problem for given time step.
Definition: nldeidynamic.C:191
virtual NumericalMethod * giveNumericalMethod(MetaStep *mStep)
Returns reference to receiver's numerical method.
Definition: nldeidynamic.C:72
Class and object Domain.
Definition: domain.h:115
Base class for all matrices stored in sparse format.
Definition: sparsemtrx.h:60
Class representing meta step.
Definition: metastep.h:62
Total Lagrange.
Definition: fmode.h:44
void computeMassMtrx2(FloatMatrix &mass, double &maxOm, TimeStep *tStep)
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
This base class is an abstraction for all numerical methods solving sparse linear system of equations...
virtual void printDofOutputAt(FILE *stream, Dof *iDof, TimeStep *tStep)
DOF printing routine.
Definition: nldeidynamic.C:777
This base class is an abstraction for numerical algorithm.
Definition: nummet.h:80
double c
Parameter determining rate of the loading process.
Definition: nldeidynamic.h:114
virtual ~NlDEIDynamic()
Definition: nldeidynamic.C:69
#define _IFT_NlDEIDynamic_Name
Definition: nldeidynamic.h:48
Class implementing an array of integers.
Definition: intarray.h:61
FloatArray previousIncrementOfDisplacementVector
Vector storing displacement increments.
Definition: nldeidynamic.h:96
This class implements NonLinear (- may be changed) solution of dynamic problems using Direct Explicit...
Definition: nldeidynamic.h:88
LinSystSolverType solverType
Definition: nldeidynamic.h:125
double pyEstimate
Estimate of loadRefVector^T*displacementVector(Tau).
Definition: nldeidynamic.h:120
double deltaT
Time step.
Definition: nldeidynamic.h:104
double pt
Load level.
Definition: nldeidynamic.h:116
SparseMtrxType
Enumerative type used to identify the sparse matrix type.
FloatArray displacementVector
Displacement, velocity and acceleration vectors.
Definition: nldeidynamic.h:98
SparseLinearSystemNM * nMethod
Definition: nldeidynamic.h:127
virtual int giveNumberOfFirstStep(bool force=false)
Returns number of first time step used by receiver.
Definition: nldeidynamic.h:156
void computeLoadVector(FloatArray &answer, ValueModeType mode, TimeStep *tStep)
Assembles the load vector.
Definition: nldeidynamic.C:487
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description in input reader.
Definition: nldeidynamic.C:84
virtual double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof)
Returns requested unknown.
Definition: nldeidynamic.C:120
virtual const char * giveInputRecordName() const
Definition: nldeidynamic.h:152
FloatArray accelerationVector
Definition: nldeidynamic.h:98
Class representing vector of real numbers.
Definition: floatarray.h:82
Implementation of matrix containing floating point numbers.
Definition: floatmatrix.h:94
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode)
Restores the state of model from output stream.
Definition: nldeidynamic.C:744
virtual fMode giveFormulation()
Indicates type of non linear computation (total or updated formulation).
Definition: nldeidynamic.h:154
double Tau
End of time interval.
Definition: nldeidynamic.h:118
Class representing the general Input Record.
Definition: inputrecord.h:101
FloatArray velocityVector
Definition: nldeidynamic.h:98
fMode
Type representing the type of formulation (total or updated) of non-linear computation.
Definition: fmode.h:42
virtual int estimateMaxPackSize(IntArray &commMap, DataStream &buff, int packUnpackType)
Determines the space necessary for send/receive buffer.
Definition: nldeidynamic.C:683
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
FloatArray massMatrix
Mass matrix.
Definition: nldeidynamic.h:92
double dumpingCoef
Dumping coefficient (C = dumpingCoef * MassMtrx).
Definition: nldeidynamic.h:102
This class implements extension of EngngModel for structural models.
virtual const char * giveClassName() const
Returns class name of the receiver.
Definition: nldeidynamic.h:153
NlDEIDynamic(int i, EngngModel *_master=NULL)
Definition: nldeidynamic.C:59
SparseMtrxType sparseMtrxType
Definition: nldeidynamic.h:126
Abstract base class representing the "problem" under consideration.
Definition: engngm.h:181
int initFlag
Flag indicating the need for initialization.
Definition: nldeidynamic.h:106
the oofem namespace is to define a context or scope in which all oofem names are defined.
FloatArray loadVector
Load vector.
Definition: nldeidynamic.h:94
Abstract class Dof represents Degree Of Freedom in finite element mesh.
Definition: dof.h:93
Class representing solution step.
Definition: timestep.h:80
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode)
Stores the state of model to output stream.
Definition: nldeidynamic.C:712
int drFlag
Flag indicating whether dynamic relaxation takes place.
Definition: nldeidynamic.h:110
double pMp
Product of p^tM^(-1)p; where p is reference load vector.
Definition: nldeidynamic.h:122
virtual TimeStep * giveNextStep()
Returns next time step (next to current step) of receiver.
Definition: nldeidynamic.C:156
SparseMtrx * massMatrixConsistent
Definition: nldeidynamic.h:124

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:30 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011