XC Open source finite element analysis program
TimeSeries.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 /* ****************************************************************** **
28 ** OpenSees - Open System for Earthquake Engineering Simulation **
29 ** Pacific Earthquake Engineering Research Center **
30 ** **
31 ** **
32 ** (C) Copyright 1999, The Regents of the University of California **
33 ** All Rights Reserved. **
34 ** **
35 ** Commercial use of this program without express permission of the **
36 ** University of California, Berkeley, is strictly prohibited. See **
37 ** file 'COPYRIGHT' in main directory for information on usage and **
38 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
39 ** **
40 ** Developed by: **
41 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
42 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
43 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
44 ** **
45 ** ****************************************************************** */
46 
47 // $Revision: 1.3 $
48 // $Date: 2003/03/04 00:48:12 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/domain/load/pattern/TimeSeries.h,v $
50 
51 
52 #ifndef TimeSeries_h
53 #define TimeSeries_h
54 
55 // Written: fmk
56 // Created: 07/99
57 // Revision: A
58 //
59 // Purpose: This file contains the class definition for TimeSeries.
60 // TimeSeries is an abstract class.
61 //
62 // What: "@(#) TimeSeries.h, revA"
63 
64 #include "utility/actor/actor/MovableObject.h"
65 #include "xc_utils/src/nucleo/EntCmd.h"
66 
67 namespace XC {
68  class Information;
69  class Vector;
70 
75 //
77 //
81 class TimeSeries: public MovableObject, public EntCmd
82  {
83  protected:
84  public:
85  TimeSeries(int classTag);
86  inline virtual ~TimeSeries(void)
87  {}
88 
89  virtual TimeSeries *getCopy(void) const= 0;
90 
91  // pure virtual functions
92  virtual double getFactor(double pseudoTime) const= 0;
93  virtual double getDuration(void) const= 0;
94  virtual double getPeakFactor(void) const= 0;
95 
96  virtual double getTimeIncr (double pseudoTime) const= 0;
97  // This is defined to be the time increment from the argument
98  // 'pseudoTime' to the NEXT point in the time series path
99  // THIS MAY CHANGE -- MAY BE BETTER TO GET THE TIME INCREMENT
100  // FROM THE PREVIOUS POINT IN THE PATH UP TO 'pseudoTime', WILL
101  // DECIDE ONCE GroundMotionIntegrator IS IMPLEMENTED
102 
103  virtual void Print(std::ostream &s, int flag = 0) const= 0;
104 
105  // AddingSensitivity:BEGIN //////////////////////////////////////////
106  virtual int setParameter(const std::vector<std::string> &argv, Parameter &param);
107  virtual int updateParameter(int parameterID, Information &info);
108  virtual int activateParameter(int parameterID);
109  virtual double getFactorSensitivity(double pseudoTime);
110  // AddingSensitivity:BEGIN //////////////////////////////////////////
111  };
112 
113 int sendTimeSeriesPtr(TimeSeries *,int posClassTag, int posDbTag,DbTagData &,CommParameters &cp);
114 TimeSeries *receiveTimeSeriesPtr(TimeSeries *,int posClassTag, int posDbTag,DbTagData &,const CommParameters &cp);
115 
116 } // end of XC namespace
117 
118 #endif
Vector que almacena los dbTags de los miembros de la clase.
Definition: DbTagData.h:43
Information about an element.
Definition: Information.h:80
TimeSeries * receiveTimeSeriesPtr(TimeSeries *, int posClassTag, int posDbTag, DbTagData &, const CommParameters &cp)
Recibe a pointer a la serie through the channel being passed as parameter.
Definition: TimeSeries.cpp:111
Object that can move between processes.
Definition: MovableObject.h:91
TimeSeries(int classTag)
Constructor.
Definition: TimeSeries.cpp:73
int sendTimeSeriesPtr(TimeSeries *, int posClassTag, int posDbTag, DbTagData &, CommParameters &cp)
Envía a pointer a la serie through the channel being passed as parameter.
Definition: TimeSeries.cpp:94
Definition: Parameter.h:65
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Time variation of loads.A TimeSeries object is used to determine the load factor to be applied to the...
Definition: TimeSeries.h:81