QuadPatch.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.2 $ 00022 // $Date: 2003/02/14 23:01:36 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/material/section/repres/patch/QuadPatch.h,v $ 00024 00025 00026 // File: QuadPatch.h 00027 // Written by Remo M. de Souza 00028 // December 1998 00029 00030 #ifndef QuadPatch_h 00031 #define QuadPatch_h 00032 00033 #include <Patch.h> 00034 00035 class Cell; 00036 class Matrix; 00037 00038 class QuadPatch: public Patch 00039 { 00040 public: 00041 00042 QuadPatch(); 00043 QuadPatch(int materialID, int numSubdivIJ, int numSubdivJK, 00044 const Matrix &vertexCoords); 00045 00046 ~QuadPatch(); 00047 00048 // edition functions 00049 00050 void setMaterialID (int materialID); 00051 void setDiscretization (int numSubdivIJ, int numSubdivJK); 00052 void setVertCoords (const Matrix &vertexCoords); 00053 00054 // reinforcing bar inquiring functions 00055 00056 int getMaterialID (void) const; 00057 int getNumCells (void) const; 00058 Cell **getCells (void) const; 00059 Patch *getCopy (void) const; 00060 00061 void getDiscretization (int &numSubdivIJ, int &numSubdivJK) const; 00062 const Matrix &getVertCoords (void) const; 00063 00064 void Print(OPS_Stream &s, int flag =0) const; 00065 friend OPS_Stream &operator<<(OPS_Stream &s, QuadPatch &quadPatch); 00066 00067 protected: 00068 00069 private: 00070 int matID; 00071 int nDivIJ, nDivJK; 00072 Matrix vertCoord; 00073 }; 00074 00075 00076 #endif 00077 00078 |