xc
EarthquakePattern.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.5 $
48 // $Date: 2005/02/17 01:15:27 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/domain/load/pattern/EarthquakePattern.h,v $
50 
51 
52 #ifndef EarthquakePattern_h
53 #define EarthquakePattern_h
54 
55 // File: ~/domain/load/pattern/EarthquakePattern.h
56 //
57 // Written: fmk 11/98
58 // Revised:
59 //
60 // Purpose: This file contains the class definition for EarthquakePattern.
61 // EarthquakePattern is an abstract class.
62 
63 #include "EQBasePattern.h"
64 #include "utility/matrix/Vector.h"
65 
66 namespace XC {
67 class GroundMotion;
68 
70 //
80  {
81  private:
82  Vector uDotG;
83  Vector uDotDotG;
84  double currentTime;
85 
86 // AddingSensitivity:BEGIN //////////////////////////////////////////
87  int parameterID;
88 // AddingSensitivity:END ///////////////////////////////////////////
90  EarthquakePattern &operator=(const EarthquakePattern &);
91  protected:
92  void copy(const Vector *,const Vector *);
93  int addMotion(GroundMotion &);
94  int sendData(CommParameters &);
95  int recvData(const CommParameters &);
96  public:
97  EarthquakePattern(int tag, int classTag);
98 
99  virtual void applyLoad(double time);
101  virtual bool addNodalLoad(NodalLoad *);
102  virtual bool addElementalLoad(ElementalLoad *);
103 
104  // methods for o/p
105  virtual int sendSelf(CommParameters &) =0;
106  virtual int recvSelf(const CommParameters &) =0;
107 
108  virtual void Print(std::ostream &s, int flag =0);
109 
110  // AddingSensitivity:BEGIN //////////////////////////////////////////
111  virtual void applyLoadSensitivity(double pseudoTime = 0.0);
112  virtual int setParameter(const std::vector<std::string> &argv, Parameter &param);
113  virtual int updateParameter(int parameterID, Information &info);
114  virtual int activateParameter(int parameterID);
115  // AddingSensitivity:END ///////////////////////////////////////////
116 
117  };
118 } // end of XC namespace
119 
120 #endif
Float vector abstraction.
Definition: Vector.h:93
Information about an element.
Definition: Information.h:80
Earthquake load pattern.
Definition: EarthquakePattern.h:79
virtual void applyLoad(double time)
Applies the earthquake load.
Definition: EarthquakePattern.cpp:88
virtual int activateParameter(int parameterID)
Activates the parameter identified by parameterID.
Definition: EarthquakePattern.cpp:238
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: EarthquakePattern.cpp:194
virtual void Print(std::ostream &s, int flag=0)
Prints load pattern information.
Definition: EarthquakePattern.cpp:214
int addMotion(GroundMotion &)
Adds the GroundMotion, theMotion to the list of GroundMotion objects.
Definition: EarthquakePattern.cpp:162
virtual int setParameter(const std::vector< std::string > &argv, Parameter &param)
Sets the value param to the parameter argv.
Definition: EarthquakePattern.cpp:218
Single freedom constraint.
Definition: SFreedom_Constraint.h:84
Base class for ground motions.
Definition: GroundMotion.h:83
virtual bool addNodalLoad(NodalLoad *)
Adds the nodal load being passed as parameter.
Definition: EarthquakePattern.cpp:179
virtual bool addElementalLoad(ElementalLoad *)
Adds the element load being passed as parameter.
Definition: EarthquakePattern.cpp:186
virtual int sendSelf(CommParameters &)=0
Sends object through the channel being passed as parameter.
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: EarthquakePattern.cpp:204
virtual bool addSFreedom_Constraint(SFreedom_Constraint *)
Adds the constraint being passed as parameter.
Definition: EarthquakePattern.cpp:172
virtual int updateParameter(int parameterID, Information &info)
Updates the parameter identified by parameterID with info.
Definition: EarthquakePattern.cpp:235
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Communication parameters between processes.
Definition: CommParameters.h:65
Definition: Parameter.h:65
Base class for loads over elements.
Definition: ElementalLoad.h:77
Earthquake load pattern.
Definition: EQBasePattern.h:42
virtual int recvSelf(const CommParameters &)=0
Receives object through the channel being passed as parameter.
Load over a node.
Definition: NodalLoad.h:82