Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

PenaltyConstraintHandler.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.1.1.1 $
00022 // $Date: 2000/09/15 08:23:16 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/handler/PenaltyConstraintHandler.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/analysis/handler/PenaltyConstraintHandler.h
00027 // 
00028 // Written: fmk 
00029 // Created: May 1998.
00030 // Revision: A
00031 //
00032 // Description: This file contains the class definition for 
00033 // PenaltyConstraintHandler. PenaltyConstraintHandler is a 
00034 // constraint handler for handling constraints using the penalty method.
00035 // for each element and degree-of-freedom at a node it constructs regular
00036 // FE_Element and DOF_Groups; for each SP_Constraint and MP_Constraint
00037 // PenaltySP_FE and PenaltyMP_FE elements are created.
00038 //
00039 // What: "@(#) PenaltyConstraintHandler.h, revA"
00040 
00041 #ifndef PenaltyConstraintHandler_h
00042 #define PenaltyConstraintHandler_h
00043 
00044 #include <ConstraintHandler.h>
00045 
00046 #include <FE_Element.h>
00047 #include <DOF_Group.h>
00048 
00062 class PenaltyConstraintHandler : public ConstraintHandler
00063 {
00064   public:
00072     PenaltyConstraintHandler(double alphaSP, double alphaMP);
00073 
00078     ~PenaltyConstraintHandler();
00079 
00080 
00108     int handle(const ID *nodesNumberedLast =0);
00109 
00116     void clearAll(void);    
00117 
00118 
00123     virtual int sendSelf(int commitTag, Channel &theChannel);
00124 
00129     virtual int recvSelf(int commitTag, Channel &theChannel, 
00130 
00131     FEM_ObjectBroker &theBroker);
00132     
00133   protected:
00134     
00135   private:
00137     double alphaSP;
00138 
00140     double alphaMP;
00142     FE_Element  **theFEs;
00144     DOF_Group  **theDOFs;
00146     int  numFE;
00148     int  numDOF;
00149 };
00150 
00151 #endif
00152 
00153 
00154 
00155 
Copyright Contact Us