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.1.1.1 $
00022 // $Date: 2000/09/15 08:23:17 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/handler/TransformationConstraintHandler.h,v $
00024
00025
00026 // File: ~/analysis/handler/TransformationConstraintHandler.h
00027 //
00028 // Written: fmk
00029 // Created: May 1998.
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition for
00033 // TransformationConstraintHandler. TransformationConstraintHandler is a
00034 // constraint handler for handling constraints using the Transformation method.
00035 // for each element and degree-of-freedom at a node it constructs regular
00036 // FE_Element and DOF_Groups if there is no SP_Constraint or MP_Constraint
00037 // constraining an elements node or the node; otherwise a TransformationFE
00038 // element and a TransformationDOF_Group are created.
00039 //
00040 // What: "@(#) TransformationConstraintHandler.h, revA"
00041
00042 #ifndef TransformationConstraintHandler_h
00043 #define TransformationConstraintHandler_h
00044
00045 #include <ConstraintHandler.h>
00046
00047 #include <FE_Element.h>
00048 #include <DOF_Group.h>
00049
00063 class TransformationConstraintHandler : public ConstraintHandler
00064 {
00065 public:
00073 TransformationConstraintHandler();
00074
00079 ~TransformationConstraintHandler();
00080
00081
00085 int handle(const ID *nodesNumberedLast =0);
00086
00088 void clearAll(void);
00089
00091 int enforceSPs(void);
00093 int doneDOFids(void);
00094
00096 int sendSelf(int commitTag, Channel &theChannel);
00098 int recvSelf(int commitTag, Channel &theChannel,
00099 FEM_ObjectBroker &theBroker);
00100
00101 protected:
00102
00103 private:
00105 FE_Element **theFEs;
00107 DOF_Group **theDOFs;
00109 int numFE;
00111 int numDOF;
00113 Domain *theDomain;
00115 int numConstrainedNodes;
00116 };
00117
00118 #endif
00119
00120
00121
00122