OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
gaussintegrationrule.h
Go to the documentation of this file.
1 /*
2  *
3  * ##### ##### ###### ###### ### ###
4  * ## ## ## ## ## ## ## ### ##
5  * ## ## ## ## #### #### ## # ##
6  * ## ## ## ## ## ## ## ##
7  * ## ## ## ## ## ## ## ##
8  * ##### ##### ## ###### ## ##
9  *
10  *
11  * OOFEM : Object Oriented Finite Element Code
12  *
13  * Copyright (C) 1993 - 2013 Borek Patzak
14  *
15  *
16  *
17  * Czech Technical University, Faculty of Civil Engineering,
18  * Department of Structural Mechanics, 166 29 Prague, Czech Republic
19  *
20  * This library is free software; you can redistribute it and/or
21  * modify it under the terms of the GNU Lesser General Public
22  * License as published by the Free Software Foundation; either
23  * version 2.1 of the License, or (at your option) any later version.
24  *
25  * This program is distributed in the hope that it will be useful,
26  * but WITHOUT ANY WARRANTY; without even the implied warranty of
27  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
28  * Lesser General Public License for more details.
29  *
30  * You should have received a copy of the GNU Lesser General Public
31  * License along with this library; if not, write to the Free Software
32  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
33  */
34 
35 #ifndef gaussintegrationrule_h
36 #define gaussintegrationrule_h
37 
38 #include "integrationrule.h"
39 
40 #define _IFT_GaussIntegrationRule_Name "gauss"
41 
42 namespace oofem {
43 class Element;
44 
59 class OOFEM_EXPORT GaussIntegrationRule : public IntegrationRule
60 {
61 public:
70  GaussIntegrationRule(int n, Element * e, int startIndx, int endIndx, bool dynamic = false);
71  GaussIntegrationRule(int n, Element * e);
73  virtual ~GaussIntegrationRule();
74 
75  virtual const char *giveClassName() const { return "GaussIntegrationRule"; }
78 
79  virtual int getRequiredNumberOfIntegrationPoints(integrationDomain dType, int approxOrder);
80 
81 
82  virtual int SetUpPointsOnLine(int nPoints, MaterialMode mode);
83  virtual int SetUpPointsOnTriangle(int nPoints, MaterialMode mode);
84  virtual int SetUpPointsOnSquare(int nPoints, MaterialMode mode);
85  virtual int SetUpPointsOn3dDegShell(int nPointsXY, int nPointsZ, MaterialMode mode);
86  virtual int SetUpPointsOn3dDegShellLayers(int nPointsXY, int nPointsZ, MaterialMode mode, const FloatArray &layerThickness);
87  virtual int SetUpPointsOnCubeLayers(int nPoints1, int nPoints2, int nPointsDepth, MaterialMode mode, const FloatArray &layerThickness);
88  virtual int SetUpPointsOnCube(int nPoints, MaterialMode mode);
89  virtual int SetUpPointsOnTetrahedra(int nPoints, MaterialMode mode);
90  virtual int SetUpPointsOnWedge(int nPointsTri, int nPointsDepth, MaterialMode mode);
91  virtual int SetUpPointsOnWedgeLayers(int nPointsTri, int nPointsDepth, MaterialMode mode, const FloatArray &layerThickness);
92  virtual int SetUpPointsOn2DEmbeddedLine(int nPoints, MaterialMode mode, const FloatArray &coord0, const FloatArray &coord1);
93 
94  static void giveTetCoordsAndWeights(int nPoints, FloatArray &coords_xi1, FloatArray &coords_xi2, FloatArray &coords_xi3, FloatArray &weights);
95  static void giveTriCoordsAndWeights(int nPoints, FloatArray &coords_xi1, FloatArray &coords_xi2, FloatArray &weights);
96  static void giveLineCoordsAndWeights(int nPoints, FloatArray &coords_xi, FloatArray &weights);
97 };
98 } // end namespace oofem
99 #endif // gaussintegrationrule_h
integrationDomain
Used by integrator class to supply integration points for proper domain to be integrated (Area...
Abstract base class for all finite elements.
Definition: element.h:145
MaterialMode
Type representing material mode of integration point.
Definition: materialmode.h:89
Abstract base class representing integration rule.
virtual const char * giveClassName() const
virtual IntegrationRuleType giveIntegrationRuleType() const
Class representing vector of real numbers.
Definition: floatarray.h:82
IRResultType
Type defining the return values of InputRecord reading operations.
Definition: irresulttype.h:47
Class representing the general Input Record.
Definition: inputrecord.h:101
IntegrationRuleType
virtual IRResultType initializeFrom(InputRecord *ir)
the oofem namespace is to define a context or scope in which all oofem names are defined.
Class representing Gaussian-quadrature integration rule.

This page is part of the OOFEM documentation. Copyright (c) 2011 Borek Patzak
Project e-mail: info@oofem.org
Generated at Tue Jan 2 2018 20:07:28 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011