OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
deidynamic.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 deidynamic_h
36 #define deidynamic_h
37 
38 #include "../sm/EngineeringModels/structengngmodel.h"
39 
41 
42 #define _IFT_DEIDynamic_Name "deidynamic"
43 #define _IFT_DEIDynamic_dumpcoef "dumpcoef"
44 #define _IFT_DEIDynamic_deltat "deltat"
45 
46 
47 namespace oofem {
74 {
75 protected:
81 
82 public:
83  DEIDynamic(int i, EngngModel * _master = NULL) : StructuralEngngModel(i, _master), massMatrix(), loadVector(),
84  nextDisplacementVector(), displacementVector(), velocityVector(), accelerationVector() {
85  ndomains = 1;
86  }
87  virtual ~DEIDynamic();
88 
89  virtual void solveYourselfAt(TimeStep *tStep);
90 
91  virtual double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof);
93  virtual TimeStep *giveNextStep();
95 
96  virtual void printDofOutputAt(FILE *stream, Dof *iDof, TimeStep *tStep);
97 
98  // identification
99  virtual const char *giveClassName() const { return "DEIDynamic"; }
100  virtual const char *giveInputRecordName() const { return _IFT_DEIDynamic_Name; }
101  virtual fMode giveFormulation() { return TL; }
102  virtual int giveNumberOfFirstStep(bool force = false) { return 0; }
103 };
104 } // end namespace oofem
105 #endif // deidynamic_h
FloatArray velocityVector
Definition: deidynamic.h:79
Class and object Domain.
Definition: domain.h:115
DEIDynamic(int i, EngngModel *_master=NULL)
Definition: deidynamic.h:83
Class representing meta step.
Definition: metastep.h:62
Total Lagrange.
Definition: fmode.h:44
virtual fMode giveFormulation()
Indicates type of non linear computation (total or updated formulation).
Definition: deidynamic.h:101
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
virtual double giveUnknownComponent(ValueModeType type, TimeStep *tStep, Domain *d, Dof *dof)
Returns requested unknown.
Definition: deidynamic.C:73
virtual void printDofOutputAt(FILE *stream, Dof *iDof, TimeStep *tStep)
DOF printing routine.
Definition: deidynamic.C:364
virtual const char * giveInputRecordName() const
Definition: deidynamic.h:100
This base class is an abstraction for numerical algorithm.
Definition: nummet.h:80
virtual int giveNumberOfFirstStep(bool force=false)
Returns number of first time step used by receiver.
Definition: deidynamic.h:102
virtual const char * giveClassName() const
Returns class name of the receiver.
Definition: deidynamic.h:99
FloatArray nextDisplacementVector
Definition: deidynamic.h:78
double dumpingCoef
Definition: deidynamic.h:80
virtual ~DEIDynamic()
Definition: deidynamic.C:50
int ndomains
Number of receiver domains.
Definition: engngm.h:205
FloatArray loadVector
Definition: deidynamic.h:77
FloatArray accelerationVector
Definition: deidynamic.h:79
virtual TimeStep * giveNextStep()
Returns next time step (next to current step) of receiver.
Definition: deidynamic.C:107
virtual void solveYourselfAt(TimeStep *tStep)
Solves problem for given time step.
Definition: deidynamic.C:126
Class representing vector of real numbers.
Definition: floatarray.h:82
virtual NumericalMethod * giveNumericalMethod(MetaStep *mStep)
Returns reference to receiver's numerical method.
Definition: deidynamic.C:52
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
FloatArray displacementVector
Definition: deidynamic.h:79
Class representing the general Input Record.
Definition: inputrecord.h:101
This class implements Linear (- may be changed) solution of dynamic problems using Direct Explicit In...
Definition: deidynamic.h:73
fMode
Type representing the type of formulation (total or updated) of non-linear computation.
Definition: fmode.h:42
#define _IFT_DEIDynamic_Name
Definition: deidynamic.h:42
This class implements extension of EngngModel for structural models.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description in input reader.
Definition: deidynamic.C:62
Abstract base class representing the "problem" under consideration.
Definition: engngm.h:181
the oofem namespace is to define a context or scope in which all oofem names are defined.
Abstract class Dof represents Degree Of Freedom in finite element mesh.
Definition: dof.h:93
Class representing solution step.
Definition: timestep.h:80
FloatArray massMatrix
Definition: deidynamic.h:76

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:28 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011