ElementalLoad.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.4 $ 00022 // $Date: 2006/09/05 23:25:24 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/element/ElementalLoad.h,v $ 00024 00025 00026 #ifndef ElementalLoad_h 00027 #define ElementalLoad_h 00028 00029 // Written: fmk 00030 // 00031 // Purpose: This file contains the class definition for ElementalLoad. 00032 // ElementalLoad is an abstract class. 00033 00034 #include <Load.h> 00035 #include <Vector.h> 00036 00037 class Element; 00038 00039 class ElementalLoad : public Load 00040 { 00041 public: 00042 ElementalLoad(int tag, int classTag, const ID &theElementTags); 00043 ElementalLoad(int tag, int classTag); 00044 ElementalLoad(int classTag); 00045 ~ElementalLoad(); 00046 00047 virtual void setDomain(Domain *theDomain); 00048 virtual void applyLoad(double loadfactor); 00049 virtual const Vector &getData(int &type, double loadFactor) = 0; 00050 virtual const Vector &getSensitivityData(int gradNumber); 00051 00052 virtual const ID &getElementTags(void); 00053 virtual int removeElement(int tag); // returns -1 if fails, 00054 // numElements left if removed 00055 protected: 00056 int setElementTags(const ID &theEleTags); 00057 ID *theElementTags; // copy of element tags, removed in setDomain 00058 00059 private: 00060 Element **theElements; // pointer to associated elements 00061 int numElements; // number of associated elements 00062 }; 00063 00064 #endif 00065 |