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

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