OOFEM  2.4
OOFEM.org - Object Oriented Finite Element Solver
iga.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 iga_h
36 #define iga_h
37 
38 #include "inputrecord.h"
39 #include "intarray.h"
40 #include "feinterpol.h"
41 #include "gaussintegrationrule.h"
42 
44 
45 #define _IFT_IGAElement_KnotSpanParallelMode "knotspanparmode"
46 
47 
48 namespace oofem {
49 #ifdef __OOFEG
50 class StructuralElementEvaluator;
51 void drawIGAPatchDeformedGeometry(Element *elem, StructuralElementEvaluator *se, oofegGraphicContext &gc, TimeStep *tStep, UnknownType);
52 #endif
53 
57 class OOFEM_EXPORT FEIIGAElementGeometryWrapper : public FEICellGeometry
58 {
59 public:
62 public:
64  this->elem = _elem;
65  this->knotSpan = _knotSpan;
66  }
68  this->elem = _elem;
69  this->knotSpan = NULL;
70  }
71 
72  int giveNumberOfVertices() const { return elem->giveNumberOfNodes(); }
73  const FloatArray *giveVertexCoordinates(int i) const { return elem->giveNode(i)->giveCoordinates(); }
74 };
75 
76 
80 class OOFEM_EXPORT IGAIntegrationElement : public GaussIntegrationRule
81 {
82 protected:
83  IntArray knotSpan; // knot_span(nsd)
84 public:
85  IGAIntegrationElement(int _n, Element * _e, IntArray & _knotSpan) :
86  GaussIntegrationRule(_n, _e, 0, 0, false),
87  knotSpan(_knotSpan) { }
88  const IntArray *giveKnotSpan() { return & this->knotSpan; }
89  void setKnotSpan1(IntArray &src) { this->knotSpan = src; }
90 };
91 
92 
96 class OOFEM_EXPORT IGAElement : public Element
97 {
98 protected:
99  // FEInterpolation interpolation;
100 #ifdef __PARALLEL_MODE
102 #endif
103 public:
104  IGAElement(int n, Domain * aDomain) : Element(n, aDomain) { }
105  IRResultType initializeFrom(InputRecord *ir);
106 
107 #ifdef __PARALLEL_MODE
108  elementParallelMode giveKnotSpanParallelMode(int) const;
109 #endif
110 
111 #ifdef __OOFEG
112  virtual void drawRawGeometry(oofegGraphicContext &gc, TimeStep *tStep);
113 #endif
114 
115 protected:
116  virtual int giveNsd() = 0; // this info is available also from interpolation. Do we need it here ???
117 };
118 
119 
123 class OOFEM_EXPORT IGATSplineElement : public IGAElement
124 {
125 public:
126  IGATSplineElement(int n, Domain * aDomain) : IGAElement(n, aDomain) { }
127  IRResultType initializeFrom(InputRecord *ir);
128 
129 protected:
130  virtual int giveNsd() = 0;
131 };
132 } // end namespace oofem
133 #endif //iga_h
const IntArray * knotSpan
Definition: iga.h:60
void setKnotSpan1(IntArray &src)
Definition: iga.h:89
IGAIntegrationElement(int _n, Element *_e, IntArray &_knotSpan)
Definition: iga.h:85
const FloatArray * giveVertexCoordinates(int i) const
Definition: iga.h:73
IntArray knotSpanParallelMode
Definition: iga.h:101
Class and object Domain.
Definition: domain.h:115
IGATSplineElement(int n, Domain *aDomain)
Definition: iga.h:126
IGATSplineElement setups integration rules differently from IGAElement.
Definition: iga.h:123
FEIIGAElementGeometryWrapper(Element *_elem)
Definition: iga.h:67
FEIIGAElementGeometryWrapper(Element *_elem, const IntArray *_knotSpan)
Definition: iga.h:63
int giveNumberOfVertices() const
Definition: iga.h:72
Class representing a general abstraction for cell geometry.
Definition: feinterpol.h:62
oofem::oofegGraphicContext gc[OOFEG_LAST_LAYER]
Abstract base class for all finite elements.
Definition: element.h:145
Class implementing an array of integers.
Definition: intarray.h:61
virtual int giveNumberOfNodes() const
Returns number of nodes of receiver.
Definition: element.h:662
Implements base IGAElement, supposed to be a parent class of all elements with B-spline or NURBS base...
Definition: iga.h:96
void drawIGAPatchDeformedGeometry(Element *elem, StructuralElementEvaluator *se, oofegGraphicContext &gc, TimeStep *tStep, UnknownType)
Definition: iga.C:1006
const IntArray * giveKnotSpan()
Returns receiver sub patch indices (if apply).
Definition: iga.h:88
UnknownType
Type representing particular unknown (its physical meaning).
Definition: unknowntype.h:55
elementParallelMode
In parallel mode, this type indicates the mode of element.
Definition: element.h:100
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
virtual FloatArray * giveCoordinates()
Definition: node.h:114
IntegrationElement represent nonzero knot span, derived from Integration Rule.
Definition: iga.h:80
IGAElement(int n, Domain *aDomain)
Definition: iga.h:104
Geometry wrapper for IGA elements.
Definition: iga.h:57
the oofem namespace is to define a context or scope in which all oofem names are defined.
Node * giveNode(int i) const
Returns reference to the i-th node of element.
Definition: element.h:610
Class representing solution step.
Definition: timestep.h:80
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:29 for OOFEM by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2011