00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 #ifndef BeamColumnJoint2d_h
00036 #define BeamColumnJoint2d_h
00037
00038 #include <Element.h>
00039 #include <ID.h>
00040 #include <Matrix.h>
00041 #include <Vector.h>
00042 #include <FileStream.h>
00043 #include <OPS_Stream.h>
00044
00045 class Node;
00046 class Channel;
00047 class FEM_ObjectBroker;
00048 class Response;
00049 class Renderer;
00050 class UniaxialMaterial;
00051
00052 class BeamColumnJoint2d : public Element
00053 {
00054 public:
00055
00056 BeamColumnJoint2d();
00057
00058
00059 BeamColumnJoint2d(int tag,int Nd1, int Nd2, int Nd3, int Nd4,
00060 UniaxialMaterial& theMat1, UniaxialMaterial& theMat2,
00061 UniaxialMaterial& theMat3, UniaxialMaterial& theMat4,
00062 UniaxialMaterial& theMat5, UniaxialMaterial& theMat6,
00063 UniaxialMaterial& theMat7, UniaxialMaterial& theMat8,
00064 UniaxialMaterial& theMat9, UniaxialMaterial& theMat10,
00065 UniaxialMaterial& theMat11, UniaxialMaterial& theMat12,
00066 UniaxialMaterial& theMat13);
00067
00068 BeamColumnJoint2d(int tag,int Nd1, int Nd2, int Nd3, int Nd4,
00069 UniaxialMaterial& theMat1, UniaxialMaterial& theMat2,
00070 UniaxialMaterial& theMat3, UniaxialMaterial& theMat4,
00071 UniaxialMaterial& theMat5, UniaxialMaterial& theMat6,
00072 UniaxialMaterial& theMat7, UniaxialMaterial& theMat8,
00073 UniaxialMaterial& theMat9, UniaxialMaterial& theMat10,
00074 UniaxialMaterial& theMat11, UniaxialMaterial& theMat12,
00075 UniaxialMaterial& theMat13, double Hgtfac, double Wdtfac);
00076
00077
00078 ~BeamColumnJoint2d();
00079
00080
00081 const char *getClassType(void) const {return "BeamColumnJoint2d";};
00082
00084 bool isSubdomain(void) { return false; } ;
00085
00086
00087 int getNumExternalNodes(void) const;
00088
00089
00090 const ID &getExternalNodes(void);
00091 Node **getNodePtrs(void);
00092
00093
00094 int getNumDOF(void);
00095
00096
00097 void setDomain(Domain *theDomain);
00098
00100
00101
00102 int commitState(void);
00103
00104
00105 int revertToLastCommit(void);
00106
00107
00108 int revertToStart(void);
00109
00110
00111 int update(void);
00112
00115
00116
00117 const Matrix &getTangentStiff(void);
00118 const Matrix &getInitialStiff(void);
00119
00120
00121 const Matrix &getDamp(void);
00122 const Matrix &getMass(void);
00123
00124
00125 void zeroLoad(void);
00126 int addLoad(ElementalLoad *theLoad, double loadFactor);
00127 int addInertiaLoadToUnbalance(const Vector &accel);
00128
00129
00130 const Vector &getResistingForce(void);
00131
00132
00133 const Vector &getResistingForceIncInertia(void);
00134
00135
00136 int sendSelf(int commitTag, Channel &theChannel);
00137 int recvSelf(int commitTag, Channel &theChannel,
00138 FEM_ObjectBroker &theBroker);
00139
00140
00141 int displaySelf(Renderer &theViewer, int displayMode, float fact);
00142
00143
00144 void Print(OPS_Stream &s, int flag =0);
00145
00146
00147 Response *setResponse(const char **argv, int argc, Information &eleInfo, OPS_Stream &s);
00148 int getResponse(int responseID, Information &eleInformation);
00149
00150 int setParameter (char **argv, int argc, Information &info);
00151 int updateParameter (int parameterID, Information &info);
00152
00153
00154 protected:
00155
00156 private:
00157
00158
00159 void getGlobalDispls(Vector&) ;
00160 void getBCJoint(void);
00161 void getdg_df(void);
00162 void getdDef_du(void);
00163 void matDiag(Vector, Matrix&);
00164 void getMatResponse(Vector, Vector&, Vector&);
00165 void formR(Vector);
00166 void formK(Vector);
00167 double getStepSize(double,double,Vector,Vector,Vector,Vector,double);
00168
00169
00170 UniaxialMaterial **MaterialPtr;
00171
00172
00173 ID connectedExternalNodes;
00174 Node* nodePtr[4];
00175
00176
00177 int nodeDbTag, dofDbTag;
00178
00179
00180 double elemActHeight;
00181 double elemActWidth;
00182 double elemWidth;
00183 double elemHeight;
00184 double HgtFac;
00185 double WdtFac;
00186
00187 Vector Uecommit;
00188 Vector UeIntcommit;
00189 Vector UeprCommit;
00190 Vector UeprIntCommit;
00191 Matrix BCJoint;
00192 Matrix dg_df;
00193 Matrix dDef_du;
00194
00195 Matrix K;
00196 Vector R;
00197 };
00198
00199 #endif