XC Open source finite element analysis program
GroundMotion.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:11 $
49 // $Source: domain/load/groundMotion/GroundMotion.h,v $
50 
51 
52 // File: ~/earthquake/GroundMotion.h
53 //
54 // Written: fmk
55 // Created: 05/98
56 // Revision: A
57 //
58 // Description: This file contains the class definition for GroundMotion.
59 // GroundMotion is an abstract base class, i.e. no objects of it's
60 // type can be created. A GroundMotion describes the motion of the ground
61 // in a dynamic analysis.
62 //
63 // What: "@(#) GroundMotion.h, revA"
64 
65 #ifndef GroundMotion_h
66 #define GroundMotion_h
67 
68 #include "utility/actor/actor/MovableObject.h"
69 #include "utility/matrix/Vector.h"
70 
71 namespace XC {
72  class TimeSeries;
73  class Information;
74 
79 //
81 //
83 class GroundMotion: public MovableObject, public EntCmd
84  {
85  protected:
86  mutable Vector data;
87  public:
88  GroundMotion(int classTag);
89 
90  virtual ~GroundMotion(void)
91  {}
92 
93  virtual GroundMotion *getCopy(void) const= 0;
94 
95  virtual double getDuration(void) const= 0;
96 
97  virtual double getPeakAccel() const= 0;
98  virtual double getPeakVel() const= 0;
99  virtual double getPeakDisp() const= 0;
100 
101  virtual double getAccel(double time) const= 0;
102  virtual double getVel(double time) const= 0;
103  virtual double getDisp(double time) const= 0;
104  virtual const Vector &getDispVelAccel(double time) const;
105 
106 /* void setIntegrator(TimeSeriesIntegrator *integrator); */
107 /* TimeSeries *integrate(TimeSeries *theSeries, double delta = 0.01); */
108 
109  int sendSelf(CommParameters &);
110  int recvSelf(const CommParameters &);
111 
112  // AddingSensitivity:BEGIN //////////////////////////////////////////
113  virtual double getAccelSensitivity(double time)= 0;
114  virtual int setParameter(const std::vector<std::string> &argv, Parameter &param)= 0;
115  virtual int updateParameter(int parameterID, Information &info)= 0;
116  virtual int activateParameter(int parameterID)= 0;
117  // AddingSensitivity:END ///////////////////////////////////////////
118 
119  };
120 
123 
124 
125 } // end of XC namespace
126 
127 #endif
128 
Definition: Vector.h:82
Vector que almacena los dbTags de los miembros de la clase.
Definition: DbTagData.h:43
GroundMotion * receiveGroundMotionPtr(GroundMotion *, DbTagData &, const CommParameters &cp, const BrokedPtrCommMetaData &)
Recibe a pointer a «ground motion» through the channel being passed as parameter. ...
Definition: GroundMotion.cpp:163
int sendGroundMotionPtr(GroundMotion *, DbTagData &, CommParameters &cp, const BrokedPtrCommMetaData &)
Envía a pointer al «ground motion» through the channel being passed as parameter. ...
Definition: GroundMotion.cpp:146
Information about an element.
Definition: Information.h:80
Data to transmit for a pointer «broked».
Definition: BrokedPtrCommMetaData.h:39
Object that can move between processes.
Definition: MovableObject.h:91
Definition: Parameter.h:65
Base class for ground motions.
Definition: GroundMotion.h:83
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34