Block3D.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:47 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/modelbuilder/tcl/Block3D.h,v $ 00024 00025 // Written: Ed Love 00026 // Created: 07/01 00027 // 00028 // Description: This file contains the implementation of Block3D. 00029 // 00030 // What: "@(#) Block3D.h, revA" 00031 00032 #include <math.h> 00033 #include <Vector.h> 00034 #include <Matrix.h> 00035 #include <ID.h> 00036 00037 class Block3D { 00038 00039 public: 00040 00041 //constructor 00042 Block3D(int numx, int numy, int numz, 00043 const ID& nodeID, 00044 const Matrix& coorArray); 00045 00046 //destructor 00047 virtual ~Block3D(); 00048 00049 //generate node 00050 const Vector &getNodalCoords(int i, int j, int k); 00051 00052 //generate element 00053 const ID &getElementNodes(int i, int j, int k); 00054 00055 protected: 00056 00057 private: 00058 00059 int nx; //number of elements x-direction 00060 00061 int ny; //number of elements y-direction 00062 00063 int nz; //number of elements z-direction 00064 00065 double xl[3][27]; //block coordinates 00066 00067 Vector coor; //coordinates of a node 00068 00069 ID element; //ID-array of an element 00070 00071 //set up xl array 00072 void setUpXl(const ID &nodeID, const Matrix &coorArray); 00073 00074 //transform to real coordiantes 00075 void transformNodalCoordinates(); 00076 00077 //shape functions 00078 void shape3d(double x1, 00079 double x2, 00080 double x3, 00081 double shape[27]); 00082 00083 }; |