NewElement.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.6 $
00022 // $Date: 2006/09/05 21:02:06 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/element/NewElement.h,v $
00024                                                                         
00025 #ifndef NewElement_h
00026 #define NewElement_h
00027 
00028 // Written: fmk 
00029 // Created: 08/01
00030 //
00031 // Description: This file contains the class definition for NewElement. 
00032 //
00033 // What: "@(#) NewElement.h, revA"
00034 
00035 #include <Element.h>
00036 #include <Matrix.h>
00037 #include <Vector.h>
00038 
00039 class Channel;
00040 class UniaxialMaterial;
00041 
00042 #define ELE_TAG_NewElement 100001
00043 
00044 class NewElement : public Element
00045 {
00046   public:
00047     NewElement(int tag);
00048     NewElement();    
00049     ~NewElement();
00050 
00051         const char *getClassType(void) const {return "NewElement";};
00052 
00053     // public methods to obtain inforrmation about dof & connectivity    
00054     int getNumExternalNodes(void) const;
00055     const ID &getExternalNodes(void);
00056     Node **getNodePtrs(void);
00057     int getNumDOF(void);        
00058     void setDomain(Domain *theDomain);
00059 
00060     // public methods to set the state of the element    
00061     int commitState(void);
00062     int revertToLastCommit(void);        
00063     int revertToStart(void);        
00064     int update(void);
00065     
00066     // public methods to obtain stiffness, mass, damping and 
00067     // residual information    
00068     const Matrix &getTangentStiff(void);
00069     const Matrix &getInitialStiff(void);    
00070 
00071     void zeroLoad(void);        
00072     int addLoad(const Vector &addP);
00073     int addInertiaLoadToUnbalance(const Vector &accel);
00074     const Vector &getResistingForce(void);
00075     const Vector &getResistingForceIncInertia(void);            
00076 
00077     // public methods for element output
00078     int sendSelf(int commitTag, Channel &theChannel);
00079     int recvSelf(int commitTag, Channel &theChannel, 
00080                  FEM_ObjectBroker &theBroker);
00081     int displaySelf(Renderer &theViewer, int displayMode, float fact);    
00082     void Print(OPS_Stream &s, int flag =0);    
00083 
00084     Response *setResponse(const char **argv, int argc, Information &eleInfo, OPS_Stream &);
00085     int getResponse(int responseID, Information &eleInformation);
00086 
00087     int setParameter (const char **argv, int argc, Parameter &param);
00088     int updateParameter (int parameterID, Information &info);
00089 
00090   protected:
00091     
00092   private:
00093     ID  connectedExternalNodes;   // contains the tags of the end nodes
00094     Matrix theMatrix;             // matrix to return stiff, damp & mass
00095     Vector theVector;             // vector to return the residual
00096 };
00097 
00098 #endif
00099 
00100 
00101 
00102 

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