Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ImposedMotionSP1.h

Go 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.1 $
00022 // $Date: 2000/12/12 07:50:58 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/constraints/ImposedMotionSP1.h,v $
00024                                                                         
00025 #ifndef ImposedMotionSP1_h
00026 #define ImposedMotionSP1_h
00027 
00028 // File: ~/domain/constraints/ImposedMotionSP1.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 returns as the constraint, the DISPLACEMENT 
00036 // ground motion response for a particular time.
00037 //
00038 // What: "@(#) ImposedMotionSP, revA"
00039 
00040 #include <SP_Constraint.h>
00041 #include <Vector.h>
00042 #include <GroundMotion.h>
00043 #include <Node.h>
00044 
00046 class ImposedMotionSP1 : public SP_Constraint
00047 {
00048   public:
00050     ImposedMotionSP1();        
00052     ImposedMotionSP1(int spTag, int nodeTag, int ndof, 
00053        GroundMotion &theGroundMotion, bool destroyMotion);
00054 
00056     ~ImposedMotionSP1();
00057 
00059     int applyConstraint(double loadFactor);    
00061     double getValue(void);
00063     bool isHomogeneous(void) const;
00064     
00066     int sendSelf(int commitTag, Channel &theChannel);
00068     int recvSelf(int commitTag, Channel &theChannel, 
00069     FEM_ObjectBroker &theBroker);
00070 
00072     void Print(ostream &s, int flag =0);
00073 
00074   protected:
00075     
00076   private:
00078     GroundMotion *theGroundMotion;  
00079     Node *theNode;                  
00080     Vector theGroundMotionResponse; 
00081     int destroyMotion;              // flag indiacting if destructor to be invoked
00082                              // on GMotion when done    
00083 };
00084 
00085 #endif
00086 
00087 
00088 ÿ
Copyright Contact Us