NodalLoad.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.7 $
00022 // $Date: 2006/09/05 20:46:04 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/node/NodalLoad.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef NodalLoad_h
00027 #define NodalLoad_h
00028 
00029 // Written: fmk 
00030 // Created: 11/96
00031 // Revision: A
00032 //
00033 // Purpose: This file contains the class interface for NodalLoad.
00034 // NodalLoad is a class for applying nodal loads to the model.
00035 
00036 #include <Load.h>
00037 #include <Node.h>
00038 #include <Vector.h>
00039 
00040 class NodalLoad : public Load
00041 {
00042   public:
00043     NodalLoad(int classTag);
00044     NodalLoad(int tag, int node, int classTag);
00045     NodalLoad(int tag, int node, const Vector &load, bool isLoadConstant = false);
00046     ~NodalLoad();
00047 
00048     virtual void setDomain(Domain *newDomain);
00049     virtual int getNodeTag(void) const;
00050     virtual void applyLoad(double loadFactor);
00051     
00052     virtual int sendSelf(int commitTag, Channel &theChannel);
00053     virtual int recvSelf(int commitTag, Channel &theChannel, 
00054                          FEM_ObjectBroker &theBroker);
00055     
00056     virtual void Print(OPS_Stream &s, int flag =0);   
00057     
00058     // AddingSensitivity:BEGIN //////////////////////////////////////////
00059     int setParameter(const char **argv, int argc, Parameter &param);
00060     int            updateParameter(int parameterID, Information &info);
00061     int            activateParameter(int parameterID);
00062     const Vector & getExternalForceSensitivity(int gradNumber);
00063     // AddingSensitivity:END ///////////////////////////////////////////
00064   protected:
00065 
00066   private:
00067     int  myNode;        // tag indicating associated Node objects tag
00068     Node *myNodePtr;    // pointer to Node object on which load acts
00069     Vector *load;       // the reference load - pointer to new copy or 0
00070     bool  konstant;     // true if load is load factor independent
00071     // AddingSensitivity:BEGIN /////////////////////////////////////
00072     int parameterID;
00073     static Vector gradientVector;
00074     // AddingSensitivity:END ///////////////////////////////////////
00075 };
00076 
00077 #endif
00078 

Generated on Mon Oct 23 15:05:01 2006 for OpenSees by doxygen 1.5.0