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/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 #include <Element.h> 00048 #include <Integrator.h> 00049 #include <AnalysisModel.h> 00050 #include <Domain.h> 00051 #include <MP_Constraint.h> 00052 #include <Node.h> 00053 #include <DOF_Group.h> 00054 00078 class LagrangeMP_FE: public FE_Element 00079 { 00080 public: 00082 LagrangeMP_FE(Domain &theDomain, MP_Constraint &theMP, 00083 00084 DOF_Group &theDofGrp, double alpha = 1.0); 00086 virtual ~LagrangeMP_FE(); 00087 00089 virtual int setID(void); 00091 virtual const Matrix &getTangent(Integrator *theIntegrator); 00093 virtual const Vector &getResidual(Integrator *theIntegrator); 00095 virtual const Vector &getTangForce(const Vector &x, double fact = 1.0); 00096 00097 protected: 00098 00099 private: 00101 double alpha; 00103 void determineTangent(void); 00104 00106 MP_Constraint *theMP; 00108 Node *theConstrainedNode; 00110 Node *theRetainedNode; 00111 00113 DOF_Group *theDofGroup; 00115 Matrix *tang; 00117 Vector *resid; 00118 }; 00119 00120 #endif 00121 00122