ConstraintHandler.cpp

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.4 $
00022 // $Date: 2005/11/28 21:34:03 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/handler/ConstraintHandler.cpp,v $
00024                                                                         
00025 // Written: fmk 
00026 // Created: 11/96
00027 // Revision: A
00028 //
00029 // Description: This file contains the implementation of ConstraintHandler.
00030 //
00031 // What: "@(#) ConstraintHandler.h, revA"
00032 
00033 #include <ConstraintHandler.h>
00034 #include <Domain.h>
00035 #include <AnalysisModel.h>
00036 #include <Integrator.h>
00037 #include <FE_EleIter.h>
00038 #include <FE_Element.h>
00039 
00040 ConstraintHandler::ConstraintHandler(int clasTag)
00041 :MovableObject(clasTag),
00042  theDomainPtr(0),theAnalysisModelPtr(0),theIntegratorPtr(0)
00043 {
00044 }
00045 
00046 
00047 ConstraintHandler::~ConstraintHandler()
00048 {
00049     
00050 }
00051 
00052 int
00053 ConstraintHandler::doneNumberingDOF(void)
00054 {
00055   // iterate through the FE_Element getting them to set their IDs
00056   FE_EleIter &theEle = theAnalysisModelPtr->getFEs();
00057   FE_Element *elePtr;
00058   while ((elePtr = theEle()) != 0)
00059     elePtr->setID();
00060   return 0;
00061 }
00062 
00063 void 
00064 ConstraintHandler::setLinks(Domain &theDomain, 
00065                             AnalysisModel &theModel,
00066                             Integrator &theIntegrator)
00067 {
00068     theDomainPtr = &theDomain;
00069     theAnalysisModelPtr = &theModel;
00070     theIntegratorPtr = &theIntegrator;
00071 }
00072         
00073 
00074 int
00075 ConstraintHandler::update(void)
00076 {
00077   return 0;
00078 }
00079 
00080 int
00081 ConstraintHandler::applyLoad(void)
00082 {
00083   return 0;
00084 }
00085 
00086 
00087 Domain *
00088 ConstraintHandler::getDomainPtr(void) const
00089 {
00090     return theDomainPtr;
00091 }
00092 
00093 AnalysisModel *
00094 ConstraintHandler::getAnalysisModelPtr(void) const
00095 {
00096     return theAnalysisModelPtr;
00097 }
00098 
00099 Integrator *
00100 ConstraintHandler::getIntegratorPtr(void) const
00101 {
00102     return theIntegratorPtr;
00103 }
00104 
00105 
00106 

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