OOFEM 3.0
Loading...
Searching...
No Matches
integrationrule.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 - 2025 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 integrationrule_h
36#define integrationrule_h
37
38#include "oofemenv.h"
39#include "materialmode.h"
40#include "integrationdomain.h"
41#include "contextioresulttype.h"
42#include "contextmode.h"
43#include "inputrecord.h"
44
45#include <cstdio>
46
47namespace oofem {
48class TimeStep;
49class GaussPoint;
50class Element;
51class DataStream;
52
59
95{
96protected:
98 int number;
103
105 std::vector< GaussPoint * > gaussPoints;
111
117
118public:
119 std::vector< GaussPoint *> :: iterator begin() { return gaussPoints.begin(); }
120 std::vector< GaussPoint *> :: iterator end() { return gaussPoints.end(); }
121
130 IntegrationRule(int n, Element * e, int startIndx, int endIndx, bool dynamic);
136 IntegrationRule(int n, Element * e);
138 virtual ~IntegrationRule();
139
143 int giveNumberOfIntegrationPoints() const { return (int)gaussPoints.size(); }
148 GaussPoint *getIntegrationPoint(int n);
152 GaussPoint *findIntegrationPointClosestTo(const FloatArray &lcoord);
170 int setUpIntegrationPoints(integrationDomain intdomain, int nPoints, MaterialMode matMode);
179 int setUpIntegrationPoints(integrationDomain intdomain, int nPointsXY, int nPointsZ, MaterialMode matMode);
188 int setUpEmbeddedIntegrationPoints(integrationDomain intdomain, int nPoints, MaterialMode matMode,
189 const std :: vector< FloatArray > &coords);
190
195 virtual void printOutputAt(FILE *file, TimeStep *tStep);
200 void updateYourself(TimeStep *tStep);
201
203 Element *giveElement() { return elem; }
205 void setElement(Element *e) { elem = e; }
207 int giveNumber() { return this->number; }
209 integrationDomain giveIntegrationDomain() const { return this->intdomain; }
217 virtual int getRequiredNumberOfIntegrationPoints(integrationDomain dType, int approxOrder) { return 0; }
218
228 virtual void saveContext(DataStream &stream, ContextMode mode);
238 virtual void restoreContext(DataStream &stream, ContextMode mode);
242 void clear();
243
245 virtual const IntArray *giveKnotSpan() { return NULL; }
246
247 virtual const char *giveClassName() const { return "IntegrationRule"; }
249 std :: string errorInfo(const char *func) const { return std :: string(giveClassName()) + func; }
251 virtual void initializeFrom(InputRecord &ir) { }
252
256 int SetUpPoint(MaterialMode mode);
263 virtual int SetUpPointsOnLine(int, MaterialMode mode) { return 0; }
270 virtual int SetUpPointsOnTriangle(int, MaterialMode mode) { return 0; }
277 virtual int SetUpPointsOnSquare(int, MaterialMode mode) { return 0; }
286 virtual int SetUpPointsOn3dDegShell(int nPointsXY, int nPointsZ, MaterialMode mode) { return 0; }
296 virtual int SetUpPointsOn3dDegShellLayers(int nPointsXY, int nPointsZ, MaterialMode mode, const FloatArray &layerThickness) { return 0; }
303 virtual int SetUpPointsOnCube(int, MaterialMode mode) { return 0; }
314 virtual int SetUpPointsOnCubeLayers(int nPoints1, int nPoints2, int nPointsDepth, MaterialMode mode, const FloatArray &layerThickness) { return 0; }
321 virtual int SetUpPointsOnTetrahedra(int, MaterialMode mode) { return 0; }
327 virtual int SetUpPointsOn2DEmbeddedLine(int nPoints, MaterialMode mode,
328 const FloatArray &coord0, const FloatArray &coord1) { return 0; }
329
338 virtual int SetUpPointsOnWedge(int nPointsTri, int nPointsDepth, MaterialMode mode) { return 0; }
348 virtual int SetUpPointsOnWedgeLayers(int nPointsTri, int nPointsDepth, MaterialMode mode, const FloatArray &layerThickness) { return 0; }
349};
350} // end namespace oofem
351#endif // integrationrule_h
virtual const IntArray * giveKnotSpan()
Returns receiver sub patch indices (if apply).
std::string errorInfo(const char *func) const
Error printing helper.
virtual int SetUpPointsOnLine(int, MaterialMode mode)
virtual IntegrationRuleType giveIntegrationRuleType() const
virtual int SetUpPointsOn3dDegShell(int nPointsXY, int nPointsZ, MaterialMode mode)
virtual int getRequiredNumberOfIntegrationPoints(integrationDomain dType, int approxOrder)
Element * elem
Element which integration rule is coupled to.
int giveNumberOfIntegrationPoints() const
virtual int SetUpPointsOnCubeLayers(int nPoints1, int nPoints2, int nPointsDepth, MaterialMode mode, const FloatArray &layerThickness)
std::vector< GaussPoint * > gaussPoints
Array containing integration points.
virtual int SetUpPointsOn3dDegShellLayers(int nPointsXY, int nPointsZ, MaterialMode mode, const FloatArray &layerThickness)
virtual const char * giveClassName() const
integrationDomain intdomain
Integration domain.
IntegrationRule(int n, Element *e, int startIndx, int endIndx, bool dynamic)
virtual int SetUpPointsOnWedge(int nPointsTri, int nPointsDepth, MaterialMode mode)
virtual void initializeFrom(InputRecord &ir)
virtual int SetUpPointsOnWedgeLayers(int nPointsTri, int nPointsDepth, MaterialMode mode, const FloatArray &layerThickness)
virtual int SetUpPointsOnSquare(int, MaterialMode mode)
virtual int SetUpPointsOnCube(int, MaterialMode mode)
std::vector< GaussPoint * >::iterator end()
std::vector< GaussPoint * >::iterator begin()
void setElement(Element *e)
virtual int SetUpPointsOnTriangle(int, MaterialMode mode)
integrationDomain giveIntegrationDomain() const
virtual int SetUpPointsOn2DEmbeddedLine(int nPoints, MaterialMode mode, const FloatArray &coord0, const FloatArray &coord1)
virtual int SetUpPointsOnTetrahedra(int, MaterialMode mode)
long ContextMode
Definition contextmode.h:43
#define OOFEM_EXPORT
Definition oofemcfg.h:7

This page is part of the OOFEM-3.0 documentation. Copyright Copyright (C) 1994-2025 Borek Patzak Bořek Patzák
Project e-mail: oofem@fsv.cvut.cz
Generated at for OOFEM by doxygen 1.15.0 written by Dimitri van Heesch, © 1997-2011