ConstraintHandler.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.3 $
00022 // $Date: 2005/08/31 17:28:10 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/handler/ConstraintHandler.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef ConstraintHandler_h
00027 #define ConstraintHandler_h
00028 
00029 // Written: fmk 
00030 // Created: 11/96
00031 // Revision: A
00032 //
00033 // Description: This file contains the class definition for ConstraintHandler.
00034 // ConstraintHandler is an abstract base class, i.e. no objects of it's
00035 // type can be created. ConstraintHandlers enforce the single and multi point 
00036 // constraints that exist in the domain by creating the appropriate FE_Element
00037 // and DOF_Group objects.
00038 //
00039 // What: "@(#) ConstraintHandler.h, revA"
00040 
00041 #include <MovableObject.h>
00042 
00043 class AnalysisMethod;
00044 class ID;
00045 class Domain;
00046 class AnalysisModel;
00047 class Integrator;
00048 class FEM_ObjectBroker;
00049 
00050 class ConstraintHandler : public MovableObject
00051 {
00052   public:
00053     ConstraintHandler(int classTag);
00054     virtual ~ConstraintHandler();
00055 
00056     void setLinks(Domain &theDomain, 
00057                   AnalysisModel &theModel,
00058                   Integrator &theIntegrator);
00059 
00060     // pure virtual functions
00061     virtual int handle(const ID *nodesNumberedLast =0) =0;
00062     virtual int update(void);
00063     virtual int applyLoad(void);
00064     virtual int doneNumberingDOF(void);
00065     virtual void clearAll(void) =0;    
00066 
00067   protected:
00068     Domain *getDomainPtr(void) const;
00069     AnalysisModel *getAnalysisModelPtr(void) const;
00070     Integrator *getIntegratorPtr(void) const;
00071     
00072   private:
00073     Domain *theDomainPtr;
00074     AnalysisModel *theAnalysisModelPtr;
00075     Integrator *theIntegratorPtr;
00076 };
00077 
00078 #endif
00079 

Generated on Mon Oct 23 15:04:58 2006 for OpenSees by doxygen 1.5.0