DummyNode.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.2 $
00022 // $Date: 2003/02/14 23:00:58 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/domain/node/DummyNode.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/domain/node/DummyNode.h
00027 //
00028 // Written: fmk 
00029 // Created: Fri Sep 20 15:34:47: 1996
00030 // Revision: A
00031 //
00032 // Purpose: This file contains the class definition for DummyNode.
00033 // DummyNodes are a type of node created and used by Subdomains for their
00034 // exterior nodes. They reference a real node and most methods invoked on
00035 // them are in turn invoked by the dummy node on the real node. The calls
00036 // asking the real node to change its current state are ignored. The
00037 // calls involving DOF\_Group are handled by the dummy node. \\
00038 //
00039 // 
00040 // What: "@(#) DummyNode.h, revA"
00041 
00042 #ifndef DummyNode_h
00043 #define DummyNode_h
00044 
00045 #include <Node.h>
00046 
00047 class DOF_Group;
00048 
00049 class DummyNode : public Node
00050 {
00051   public:
00052     DummyNode();    
00053     DummyNode(Node &theRealNode);
00054     
00055     ~DummyNode();
00056     
00057     Node *getNode(void) const;
00058     
00059     void setDOF_GroupPtr(DOF_Group *theDOF_Grp);
00060     DOF_Group *getDOF_GroupPtr(void);
00061     int  getNumberDOF(void) const;
00062 
00063     const Matrix &getMass(void);
00064     int setMass(const Matrix &);
00065     
00066     const Vector &getCrds(void) const;
00067 
00068     const Vector &getDisp(void) ;
00069     const Vector &getVel(void) ;
00070     const Vector &getAccel(void) ;    
00071 
00072     const Vector &getTrialDisp(void) ;    
00073     const Vector &getTrialVel(void) ;    
00074     const Vector &getTrialAccel(void) ;    
00075     
00076     int setTrialDisp(const Vector &);    
00077     int setTrialVel(const Vector &);    
00078     int setTrialAccel(const Vector &);        
00079 
00080     int setIncrTrialDisp(const Vector &);    
00081     int setIncrTrialVel(const Vector &);    
00082     int setIncrTrialAccel(const Vector &);        
00083     
00084     void addUnbalancedLoad(const Vector &);        
00085     const Vector &getUnbalancedLoad(void) const;    
00086     void zeroUnbalancedLoad(void);
00087     int commitState();
00088 
00089     void Print(OPS_Stream &s) const;
00090     friend OPS_Stream &operator<<(OPS_Stream &s, const DummyNode &N);
00091 
00092     int addElementPtr(Element *);
00093 
00094     void setColor(int newColor);
00095     int getColor(void) const;
00096 
00097     int sendSelf(Channel &theChannel, FEM_ObjectBroker &theBroker);
00098     int recvSelf(Channel &theChannel, FEM_ObjectBroker &theBroker);    
00099     
00100   private:
00101     Node *theRealNode;
00102     DOF_Group *theDOFGroup;
00103 };
00104 
00105 #endif
00106 

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