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.2 $ 00022 // $Date: 2001/05/03 06:14:16 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/analysis/dof_grp/TransformationDOF_Group.h,v $ 00024 00025 00026 #ifndef TransformationDOF_Group_h 00027 #define TransformationDOF_Group_h 00028 00029 // File: ~/analysis/dof_grp/TransformationDOF_Group.h 00030 // 00031 // Written: fmk 00032 // Created: 05/99 00033 // Revision: A 00034 // 00035 // Description: This file contains the class definition for 00036 // TransformationDOF_Group. A TransformationDOF_Group object is 00037 // instantiated by the TransformationConstraintHandler for 00038 // every node in the domain which is constrained by an MP_Constraint 00039 // or an SP_Constrant. 00040 // 00041 // What: "@(#) TransformationDOF_Group.h, revA" 00042 00043 #include <DOF_Group.h> 00044 00045 #include <MP_Constraint.h> 00046 #include <SP_Constraint.h> 00047 00058 class TransformationDOF_Group: public DOF_Group 00059 { 00060 public: 00062 TransformationDOF_Group(int tag, Node *myNode, MP_Constraint *mp); 00063 00065 TransformationDOF_Group(int tag, Node *myNode); 00067 ~TransformationDOF_Group(); 00068 00070 int doneID(void); 00072 const ID &getID(void) const; 00074 virtual void setID(int dof, int value); 00076 Matrix *getT(void); 00078 virtual int getNumDOF(void) const; 00080 virtual int getNumFreeDOF(void) const; 00082 virtual int getNumConstrainedDOF(void) const; 00083 00085 const Matrix &getTangent(Integrator *theIntegrator); 00086 00088 const Vector &getUnbalance(Integrator *theIntegrator); 00090 virtual void addM_Force(const Vector &Udotdot, double fact = 1.0); 00091 00093 const Vector & getCommittedDisp(void); 00095 const Vector & getCommittedVel(void); 00097 const Vector & getCommittedAccel(void); 00098 00100 void setNodeDisp(const Vector &u); 00102 void setNodeVel(const Vector &udot); 00104 void setNodeAccel(const Vector &udotdot); 00105 00107 void incrNodeDisp(const Vector &u); 00109 void incrNodeVel(const Vector &udot); 00111 void incrNodeAccel(const Vector &udotdot); 00112 00114 virtual void setEigenvector(int mode, const Vector &eigenvalue); 00115 00117 int addSP_Constraint(SP_Constraint &theSP); 00119 int enforceSPs(void); 00120 00121 protected: 00122 00123 private: 00125 MP_Constraint *theMP; 00127 Matrix *Trans; 00129 Matrix *modTangent; 00131 Vector *modUnbalance; 00133 ID *modID; 00135 int modNumDOF; 00136 00138 SP_Constraint **theSPs; 00139 00141 static Matrix **modMatrices; 00142 static Vector **modVectors; 00143 static int numTransDOFs; // number of objects 00144 }; 00145 00146 #endif 00147