UniaxialFiber3d.hGo 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.8 $ 00022 // $Date: 2006/08/04 18:32:01 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/fiber/UniaxialFiber3d.h,v $ 00024 00025 00026 // File: ~/fiber/UniaxialFiber3d.h 00027 // 00028 // Written: Remo Magalhaes de Souza 00029 // Created: 10/98 00030 // Revision: 00031 // 00032 // Description: This file contains the class definition for 00033 // UniaxialFiber3d.h. UniaxialFiber3d provides the abstraction of a 00034 // uniaxial fiber that forms a fiber section for 3d frame elements (the 00035 // fiber position inside the section is defined by two coordinates) 00036 // The UniaxialFiber3d is subjected to a stress state with 00037 // only one nonzero axial stress and corresponding axial strain. 00038 // 00039 // What: "@(#) UniaxialFiber3d.h, revA" 00040 00041 #ifndef UniaxialFiber3d_h 00042 #define UniaxialFiber3d_h 00043 00044 #include <Matrix.h> 00045 #include <Fiber.h> 00046 00047 class UniaxialMaterial; 00048 class Response; 00049 00050 class UniaxialFiber3d: public Fiber 00051 { 00052 public: 00053 UniaxialFiber3d (); 00054 UniaxialFiber3d (int tag, UniaxialMaterial &theMat, double Area, 00055 const Vector &position); 00056 00057 ~UniaxialFiber3d(); 00058 00059 int setTrialFiberStrain(const Vector &vs); 00060 Vector &getFiberStressResultants (void); 00061 Matrix &getFiberTangentStiffContr (void); 00062 00063 int commitState(void); 00064 int revertToLastCommit(void); 00065 int revertToStart(void); 00066 00067 Fiber *getCopy(void); 00068 int getOrder(void); 00069 const ID &getType(void); 00070 00071 int sendSelf(int cTag, Channel &theChannel); 00072 int recvSelf(int cTag, Channel &theChannel, FEM_ObjectBroker &theBroker); 00073 void Print(OPS_Stream &s, int flag =0); 00074 00075 Response *setResponse(const char **argv, int argc, Information &info, OPS_Stream &S); 00076 int getResponse(int responseID, Information &info); 00077 00078 void getFiberLocation(double &y, double &z); 00079 UniaxialMaterial *getMaterial(void) {return theMaterial;}; 00080 double getArea(void) {return area;}; 00081 00082 protected: 00083 00084 private: 00085 UniaxialMaterial *theMaterial; // pointer to a material 00086 double area; // area of the fiber 00087 double as[2]; // matrix that transforms 00088 // section deformations into fiber strain 00089 static Matrix ks; // static class wide matrix object for returns 00090 static Vector fs; // static class wide vector object for returns 00091 static ID code; 00092 }; 00093 00094 00095 #endif 00096 |