PenaltyMP_FE.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.4 $
00022 // $Date: 2006/02/08 20:20:00 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/fe_ele/penalty/PenaltyMP_FE.h,v $
00024                                                                         
00025                                                                         
00026 #ifndef PenaltyMP_FE_h
00027 #define PenaltyMP_FE_h
00028 
00029 // Written: fmk 
00030 // Created: 11/96
00031 // Revision: A
00032 //
00033 // Description: This file contains the class definition for PenaltyMP_FE.
00034 // PenaltyMP_FE is a subclass of FE_Element which handles MP_Constraints
00035 // using the penalty method.
00036 //
00037 // What: "@(#) PenaltyMP_FE.h, revA"
00038 
00039 #include <FE_Element.h>
00040 #include <ID.h>
00041 #include <Matrix.h>
00042 #include <Vector.h>
00043 
00044 class Element;
00045 class Integrator;
00046 class AnalysisModel;
00047 class Domain;
00048 class MP_Constraint;
00049 class Node;
00050 
00051 class PenaltyMP_FE: public FE_Element
00052 {
00053   public:
00054     PenaltyMP_FE(int tag, Domain &theDomain, MP_Constraint &theMP, double alpha);
00055     virtual ~PenaltyMP_FE();    
00056 
00057     // public methods
00058     virtual int  setID(void);
00059     virtual const Matrix &getTangent(Integrator *theIntegrator);
00060     virtual const Vector &getResidual(Integrator *theIntegrator);
00061     virtual const Vector &getTangForce(const Vector &x, double fact = 1.0);
00062 
00063     virtual const Vector &getK_Force(const Vector &x, double fact = 1.0);
00064     virtual const Vector &getKi_Force(const Vector &x, double fact = 1.0);
00065     virtual const Vector &getC_Force(const Vector &x, double fact = 1.0);
00066     virtual const Vector &getM_Force(const Vector &x, double fact = 1.0);
00067     
00068   protected:
00069     
00070   private:
00071     void determineTangent(void);
00072     
00073     MP_Constraint *theMP;
00074     Node *theConstrainedNode;
00075     Node *theRetainedNode;    
00076 
00077     Matrix *tang;
00078     Vector *resid;
00079     Matrix *C;    // to hold the C matrix
00080     double alpha;
00081         
00082     
00083 };
00084 
00085 #endif
00086 
00087 

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