UniaxialFiber2d.h

Go 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/09/05 22:06:39 $
00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/fiber/UniaxialFiber2d.h,v $
00024                                                                         
00025                                                                         
00026 // File: ~/fiber/UniaxialFiber2d.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 // UniaxialFiber2d.h. UniaxialFiber2d provides the abstraction of a
00034 // uniaxial fiber whose position  is defined with only one coordinate.
00035 // The UniaxialFiber2d is subjected to a stress state with 
00036 // only one nonzero axial stress and corresponding axial strain.
00037 //
00038 // What: "@(#) UniaxialFiber2d.h, revA"
00039 
00040 #ifndef UniaxialFiber2d_h
00041 #define UniaxialFiber2d_h
00042 
00043 #include <Fiber.h>
00044 #include <Vector.h>
00045 #include <Matrix.h>
00046 
00047 class UniaxialMaterial;
00048 class Parameter;
00049 
00050 class UniaxialFiber2d : public Fiber
00051 {
00052   public:
00053     UniaxialFiber2d ();   
00054     UniaxialFiber2d (int tag, UniaxialMaterial &theMat, double Area, double position);
00055     ~UniaxialFiber2d();
00056 
00057     
00058     int   setTrialFiberStrain(const Vector &vs);
00059     Vector &getFiberStressResultants (void);
00060     Matrix &getFiberTangentStiffContr (void);
00061 
00062     int   commitState(void);
00063     int   revertToLastCommit(void);    
00064     int   revertToStart(void);
00065     
00066     Fiber *getCopy(void);
00067     int getOrder(void);
00068     const ID &getType(void);
00069 
00070     int sendSelf(int cTag, Channel &theChannel);
00071     int recvSelf(int cTag, Channel &theChannel, FEM_ObjectBroker &theBroker);
00072     void Print(OPS_Stream &s, int flag =0);
00073     
00074     Response *setResponse(const char **argv, int argc, Information &info, OPS_Stream &s);
00075     int getResponse(int responseID, Information &info);
00076         
00077     void getFiberLocation(double &y, double &z);
00078     UniaxialMaterial *getMaterial(void) {return theMaterial;};
00079     double getArea(void) {return area;};
00080 
00081     int setParameter(const char **argv, int argc, Parameter &param);
00082     int updateParameter(int parameterID, Information &info);
00083     int activateParameter(int parameterID);
00084 
00085     const Vector &getFiberSensitivity(int gradNumber, bool cond);
00086     int commitSensitivity(const Vector &dedh, int gradNumber,
00087                           int numGrads);
00088 
00089   protected:
00090     
00091   private:
00092     UniaxialMaterial *theMaterial;   // pointer to a material
00093     double area;                          // area of the fiber 
00094     double y;           // fiber location
00095 
00096     static Matrix ks;       // static class wide matrix object for returns
00097     static Vector fs;       // static class wide vector object for returns
00098 
00099     static ID code;
00100 };
00101 
00102 
00103 #endif
00104 
00105 
00106 
00107 
00108 
00109 

Generated on Mon Oct 23 15:05:17 2006 for OpenSees by doxygen 1.5.0