OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
metastep.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 metastep_h
36 #define metastep_h
37 
38 #include "oofemcfg.h"
39 #include "inputrecord.h"
40 
42 
43 #define _IFT_MetaStep_Name "metastep"
44 #define _IFT_MetaStep_nsteps "nsteps"
45 
46 
47 namespace oofem {
48 class EngngModel;
49 
62 class OOFEM_EXPORT MetaStep
63 {
64 protected:
70  double deltaT;
74  int sindex;
76  int number;
77 public:
83  MetaStep(int n, EngngModel * e);
84  MetaStep(int n, EngngModel * e, int nsteps, InputRecord & attrib);
86  ~MetaStep();
87 
89  int giveNumber() { return number; }
91  int giveNumberOfSteps() { return this->numberOfSteps; }
93  double giveTimeIncrement() { return this->deltaT; }
95  InputRecord *giveAttributesRecord() { return this->attributes; }
99  IRResultType initializeFrom(InputRecord *ir);
101  int setStepBounds(int startStepNumber);
103  void setNumberOfSteps(int newNumberOfSteps);
105  int isStepValid(int solStepNumber);
107  int giveStepRelativeNumber(int stepNumber) { return ( stepNumber - sindex + 1 ); }
109  int giveFirstStepNumber() { return sindex; }
111  int giveLastStepNumber() { return ( sindex + numberOfSteps - 1 ); }
113  const char *giveClassName() const { return "MetaStep"; }
114 };
115 } // end namespace oofem
116 #endif // metastep_h
InputRecord * giveAttributesRecord()
Returns e-model attributes.
Definition: metastep.h:95
int giveNumberOfSteps()
Returns number of Steps it represent.
Definition: metastep.h:91
Class representing meta step.
Definition: metastep.h:62
EngngModel * eModel
Engineering model of receiver.
Definition: metastep.h:66
int numberOfSteps
Number of subsequent steps the receiver represent.
Definition: metastep.h:68
int sindex
Start solution step number for which receiver is responsible.
Definition: metastep.h:74
int number
Receiver number.
Definition: metastep.h:76
InputRecord * attributes
Engineering model attributes.
Definition: metastep.h:72
int giveLastStepNumber()
Returns last step number.
Definition: metastep.h:111
int giveFirstStepNumber()
Returns first step number.
Definition: metastep.h:109
double deltaT
Intrinsic time increment.
Definition: metastep.h:70
const char * giveClassName() const
Returns class name of receiver.
Definition: metastep.h:113
double giveTimeIncrement()
Returns time increment.
Definition: metastep.h:93
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
int giveStepRelativeNumber(int stepNumber)
Returns the step relative number to receiver.
Definition: metastep.h:107
Class representing the general Input Record.
Definition: inputrecord.h:101
int giveNumber()
Returns receiver's number.
Definition: metastep.h:89
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.

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