OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
incrementallinearstatic.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 incrementallinearstatic_h
36 #define incrementallinearstatic_h
37 
38 #include "../sm/EngineeringModels/structengngmodel.h"
39 #include "sparselinsystemnm.h"
40 #include "sparsemtrxtype.h"
41 
42 #include <memory>
43 
45 
46 #define _IFT_IncrementalLinearStatic_Name "incrlinearstatic"
47 #define _IFT_IncrementalLinearStatic_endoftimeofinterest "endoftimeofinterest"
48 #define _IFT_IncrementalLinearStatic_prescribedtimes "prescribedtimes"
49 #define _IFT_IncrementalLinearStatic_deltat "deltat"
50 
51 
52 namespace oofem {
67 {
68 protected:
69  std :: unique_ptr< SparseMtrx > stiffnessMatrix;
74  bool fixedSteps;
75  double deltaT;
78  std :: unique_ptr< SparseLinearSystemNM > nMethod;
79 
82 
83 public:
84  IncrementalLinearStatic(int i, EngngModel * _master = NULL);
85  virtual ~IncrementalLinearStatic();
86 
88 
89  virtual void solveYourself();
90  virtual void solveYourselfAt(TimeStep *tStep);
91 
92  virtual double giveUnknownComponent(ValueModeType mode, TimeStep *tStep, Domain *d, Dof *dof);
95  virtual TimeStep *giveNextStep();
96 
109  double giveDiscreteTime(int iStep);
110  virtual double giveEndOfTimeOfInterest() { return endOfTimeOfInterest; }
111 
113 
114  virtual fMode giveFormulation() { return TL; }
115 
116  virtual const char *giveInputRecordName() const { return _IFT_IncrementalLinearStatic_Name; }
117  virtual const char *giveClassName() const { return "IncrementalLinearStatic"; }
118 
119  virtual int requiresUnknownsDictionaryUpdate() { return true; }
120  virtual bool requiresEquationRenumbering(TimeStep *) { return true; }
122  // Here we store only total and incremental value; so hash is computed from mode value only
123  virtual int giveUnknownDictHashIndx(ValueModeType mode, TimeStep *tStep);
124 };
125 } // end namespace oofem
126 #endif // incrementallinearstatic_h
LinSystSolverType
The values of this type should be related not to specific solvers, but more to specific packages that...
std::unique_ptr< SparseMtrx > stiffnessMatrix
Class and object Domain.
Definition: domain.h:115
Class representing meta step.
Definition: metastep.h:62
Total Lagrange.
Definition: fmode.h:44
IncrementalLinearStatic(int i, EngngModel *_master=NULL)
The purpose of DataStream abstract class is to allow to store/restore context to different streams...
Definition: datastream.h:54
virtual NumericalMethod * giveNumericalMethod(MetaStep *mStep)
Returns reference to receiver&#39;s numerical method.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Definition: valuemodetype.h:78
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description in input reader.
This base class is an abstraction for numerical algorithm.
Definition: nummet.h:80
virtual bool requiresEquationRenumbering(TimeStep *)
Returns true if equation renumbering is required for given solution step.
This class implements Incremental LinearStatic Engineering problem.
virtual contextIOResultType saveContext(DataStream &stream, ContextMode mode)
Stores the state of model to output stream.
virtual const char * giveClassName() const
Returns class name of the receiver.
Base class for dof managers.
Definition: dofmanager.h:113
virtual contextIOResultType restoreContext(DataStream &stream, ContextMode mode)
Restores the state of model from output stream.
std::unique_ptr< SparseLinearSystemNM > nMethod
Numerical method used to solve the problem.
double giveDiscreteTime(int iStep)
This function returns time valid for iStep time step, used in integration of structure response...
virtual void solveYourselfAt(TimeStep *tStep)
Solves problem for given time step.
SparseMtrxType
Enumerative type used to identify the sparse matrix type.
#define _IFT_IncrementalLinearStatic_Name
virtual double giveUnknownComponent(ValueModeType mode, TimeStep *tStep, Domain *d, Dof *dof)
Returns requested unknown.
virtual double giveEndOfTimeOfInterest()
Returns end of time interest (time corresponding to end of time integration).
virtual TimeStep * giveNextStep()
Returns next time step (next to current step) of receiver.
Class representing vector of real numbers.
Definition: floatarray.h:82
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
virtual int requiresUnknownsDictionaryUpdate()
Indicates if EngngModel requires Dofs dictionaries to be updated.
Class representing the general Input Record.
Definition: inputrecord.h:101
fMode
Type representing the type of formulation (total or updated) of non-linear computation.
Definition: fmode.h:42
virtual const char * giveInputRecordName() const
long ContextMode
Context mode (mask), defining the type of information written/read to/from context.
Definition: contextmode.h:43
This class implements extension of EngngModel for structural models.
virtual int giveUnknownDictHashIndx(ValueModeType mode, TimeStep *tStep)
This method is responsible for computing unique dictionary id (ie hash value) from given valueModeTyp...
Abstract base class representing the "problem" under consideration.
Definition: engngm.h:181
virtual void updateDofUnknownsDictionary(DofManager *, TimeStep *)
Updates necessary values in Dofs unknown dictionaries.
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
virtual void solveYourself()
Starts solution process.
Class representing solution step.
Definition: timestep.h:80
virtual fMode giveFormulation()
Indicates type of non linear computation (total or updated formulation).

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