GaussQuadRule1d.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: 2001/10/02 20:20:12 $ 00023 // $Source: /usr/local/cvs/OpenSees/SRC/element/nonlinearBeamColumn/quadrule/GaussQuadRule1d.h,v $ 00024 00025 // Written: rms 00026 // Created: 12/98 00027 // 00028 // Description: This file contains the class definition for 00029 // GaussQuadRule1d (Quadrature Rule). 00030 00031 #ifndef GaussQuadRule1d_h 00032 #define GaussQuadRule1d_h 00033 00034 #include <QuadRule1d.h> 00035 00036 class Vector; 00037 class Matrix; 00038 00039 class GaussQuadRule1d: public QuadRule1d 00040 { 00041 public: 00042 GaussQuadRule1d (); 00043 ~GaussQuadRule1d(); 00044 00045 int setOrder (int quadOrder); 00046 int getOrder (void) const; 00047 int getNumIntegrPoints (void) const; 00048 const Matrix & getIntegrPointCoords (void) const; 00049 const Vector & getIntegrPointWeights (void) const; 00050 const Matrix & getIntegrPointCoords (int quadOrder); 00051 const Vector & getIntegrPointWeights (int quadOrder); 00052 00053 protected: 00054 00055 private: 00056 int order; 00057 00058 Matrix *myPts; 00059 Vector *myWts; 00060 00061 enum {maxOrder = 10}; 00062 00063 static bool dataSet; 00064 00065 static double ptsArray[]; 00066 static double wtsArray[]; 00067 00068 static Matrix pts1; 00069 static Matrix pts2; 00070 static Matrix pts3; 00071 static Matrix pts4; 00072 static Matrix pts5; 00073 static Matrix pts6; 00074 static Matrix pts7; 00075 static Matrix pts8; 00076 static Matrix pts9; 00077 static Matrix pts10; 00078 00079 static Vector wts1; 00080 static Vector wts2; 00081 static Vector wts3; 00082 static Vector wts4; 00083 static Vector wts5; 00084 static Vector wts6; 00085 static Vector wts7; 00086 static Vector wts8; 00087 static Vector wts9; 00088 static Vector wts10; 00089 }; 00090 00091 #endif |