XC Open source finite element analysis program
GaussQuadRule1d.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 /* ****************************************************************** **
28 ** OpenSees - Open System for Earthquake Engineering Simulation **
29 ** Pacific Earthquake Engineering Research Center **
30 ** **
31 ** **
32 ** (C) Copyright 1999, The Regents of the University of California **
33 ** All Rights Reserved. **
34 ** **
35 ** Commercial use of this program without express permission of the **
36 ** University of California, Berkeley, is strictly prohibited. See **
37 ** file 'COPYRIGHT' in main directory for information on usage and **
38 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
39 ** **
40 ** Developed by: **
41 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
42 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
43 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
44 ** **
45 ** ****************************************************************** */
46 
47 // $Revision: 1.2 $
48 // $Date: 2001/10/02 20:20:12 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/element/nonlinearBeamColumn/quadrule/GaussQuadRule1d.h,v $
50 
51 // Written: rms
52 // Created: 12/98
53 //
54 // Description: This file contains the class definition for
55 // GaussQuadRule1d (Quadrature Rule).
56 
57 #ifndef GaussQuadRule1d_h
58 #define GaussQuadRule1d_h
59 
60 #include <domain/mesh/element/truss_beam_column/nonlinearBeamColumn/quadrule/QuadRule1d.h>
61 
62 namespace XC {
63 class Vector;
64 class Matrix;
65 
67 //
70  {
71  private:
72  int order;
73 
74  Matrix *myPts;
75  Vector *myWts;
76 
77  enum {maxOrder = 10};
78 
79  static bool dataSet;
80 
81  static double ptsArray[];
82  static double wtsArray[];
83 
84  static Matrix pts1;
85  static Matrix pts2;
86  static Matrix pts3;
87  static Matrix pts4;
88  static Matrix pts5;
89  static Matrix pts6;
90  static Matrix pts7;
91  static Matrix pts8;
92  static Matrix pts9;
93  static Matrix pts10;
94 
95  static Vector wts1;
96  static Vector wts2;
97  static Vector wts3;
98  static Vector wts4;
99  static Vector wts5;
100  static Vector wts6;
101  static Vector wts7;
102  static Vector wts8;
103  static Vector wts9;
104  static Vector wts10;
105  public:
106  GaussQuadRule1d(void);
107 
108  int setOrder (int quadOrder);
109  int getOrder (void) const;
110  int getNumIntegrPoints (void) const;
111  const Matrix & getIntegrPointCoords (void) const;
112  const Vector & getIntegrPointWeights (void) const;
113  const Matrix & getIntegrPointCoords (int quadOrder);
114  const Vector & getIntegrPointWeights (int quadOrder);
115  };
116 } // end of XC namespace
117 
118 #endif
Base class for one-dimesional integrations rules (quadratures).
Definition: QuadRule1d.h:76
Definition: Vector.h:82
One-dimensional Gauss quadrature.
Definition: GaussQuadRule1d.h:69
Definition: Matrix.h:82
================================================================================
Definition: ContinuaReprComponent.h:34