ImposedMotionSP.hGo to the documentation of this file.00001 /* ****************************************************************** ** 00002 ** OpenSees - Open System for Earthquake Engineering Simulation ** 00003 ** Pacific Earthquake Engineering Research Center ** 00004 ** ** 00005 ** ** 00006 ** (C) Copyright 1999, The Regents of the University of California ** 00007 ** All Rights Reserved. ** 00008 ** ** 00009 ** Commercial use of this program without express permission of the ** 00010 ** University of California, Berkeley, is strictly prohibited. See ** 00011 ** file 'COPYRIGHT' in main directory for information on usage and ** 00012 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. ** 00013 ** ** 00014 ** Developed by: ** 00015 ** Frank McKenna (fmckenna@ce.berkeley.edu) ** 00016 ** Gregory L. Fenves (fenves@ce.berkeley.edu) ** 00017 ** Filip C. Filippou (filippou@ce.berkeley.edu) ** 00018 ** ** 00019 ** ****************************************************************** */ 00020 00021 // $Revision: 1.3 $ 00022 // $Date: 2005/11/22 19:41:17 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/constraints/ImposedMotionSP.h,v $ 00024 00025 #ifndef ImposedMotionSP_h 00026 #define ImposedMotionSP_h 00027 00028 // File: ~/domain/constraints/ImposedMotionSP.h 00029 // 00030 // Written: fmk 00031 // Created: 11/00 00032 // Revision: A 00033 // 00034 // Purpose: This file contains the class definition for ImposedMotionSP. 00035 // ImposedMotionSP is a class which imposes the ground motion response 00036 // values for a GroundMotion at a particular dof at a node. 00037 // 00038 // What: "@(#) ImposedMotionSP, revA" 00039 00040 #include <SP_Constraint.h> 00041 #include <Vector.h> 00042 class GroundMotion; 00043 class Node; 00044 00045 class ImposedMotionSP : public SP_Constraint 00046 { 00047 public: 00048 // constructors 00049 ImposedMotionSP(); 00050 ImposedMotionSP(int spTag, int nodeTag, int ndof, int patternTag, int theGroundMotionTag); 00051 00052 // destructor 00053 ~ImposedMotionSP(); 00054 00055 int applyConstraint(double loadFactor); 00056 double getValue(void); 00057 bool isHomogeneous(void) const; 00058 00059 int sendSelf(int commitTag, Channel &theChannel); 00060 int recvSelf(int commitTag, Channel &theChannel, 00061 FEM_ObjectBroker &theBroker); 00062 00063 void Print(OPS_Stream &s, int flag =0); 00064 00065 protected: 00066 00067 private: 00068 int groundMotionTag; 00069 int patternTag; 00070 00071 GroundMotion *theGroundMotion; // pointer to ground motion 00072 Node *theNode; // pointer to node being constrained 00073 Vector *theNodeResponse; // vector for setting nodal response 00074 Vector theGroundMotionResponse; // the GMotions response 00075 }; 00076 00077 #endif 00078 00079 |