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/dof_grp/LagrangeDOF_Group.h,v $ 00024 00025 00026 #ifndef LagrangeDOF_Group_h 00027 #define LagrangeDOF_Group_h 00028 00029 // File: ~/analysis/dof_grp/LagrangeDOF_Group.h 00030 // 00031 // Written: fmk 00032 // Created: 02/99 00033 // Revision: A 00034 // 00035 // Description: This file contains the class definition for LagrangeDOF_Group. 00036 // A LagrangeDOF_Group object is instantiated by a LagrangeConstraintHandler for 00037 // every constrained node in the domain. 00038 // 00039 // What: "@(#) LagrangeDOF_Group.h, revA" 00040 00041 #include <DOF_Group.h> 00042 #include <SP_Constraint.h> 00043 #include <MP_Constraint.h> 00044 00053 class LagrangeDOF_Group: public DOF_Group 00054 { 00055 public: 00057 LagrangeDOF_Group(int tag, SP_Constraint &spPtr); 00058 00060 LagrangeDOF_Group(int tag, MP_Constraint &mpPtr); 00062 virtual ~LagrangeDOF_Group(); 00063 00065 virtual const Matrix &getTangent(Integrator *theIntegrator); 00066 00068 virtual const Vector &getUnbalance(Integrator *theIntegrator); 00069 00071 virtual const Vector &getCommittedDisp(void); 00073 virtual const Vector &getCommittedVel(void); 00075 virtual const Vector &getCommittedAccel(void); 00076 00078 virtual void setNodeDisp(const Vector &u); 00080 virtual void setNodeVel(const Vector &udot); 00082 virtual void setNodeAccel(const Vector &udotdot); 00083 00085 virtual void incrNodeDisp(const Vector &u); 00087 virtual void incrNodeVel(const Vector &udot); 00089 virtual void incrNodeAccel(const Vector &udotdot); 00090 00092 virtual void zeroTangent(void); 00094 virtual void addMtoTang(double fact = 1.0); 00096 virtual void zeroUnbalance(void); 00098 virtual void addPtoUnbalance(double fact = 1.0); 00100 virtual void addPIncInertiaToUnbalance(double fact = 1.0); 00102 virtual void addM_Force(const Vector &Udotdot, double fact = 1.0); 00103 00104 protected: 00105 00106 private: 00107 00108 }; 00109 00110 #endif 00111