Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
GeneratedGeomElement.h
1// WARNING: This file is generated by a tool. DO NOT EDIT.
2/*
3 * Generation of classes managing geometric elements (GeomElement).
4 */
5
6/*!
7 * \ingroup ArcaneGeometric
8 * \brief Geometric elements of type GeomType::Triangle3.
9 */
10class ARCANE_GEOMETRY_EXPORT Triangle3Element
11: public GeomElementBase< 3 >
12{
13 public:
14 typedef Triangle3ElementConstView ConstViewType;
15 typedef Triangle3ElementView ViewType;
16 public:
17 using GeomElementBase< 3 >::init;
18
19 Triangle3Element(){}
20 Triangle3Element(const VariableNodeReal3& coords,ItemWithNodes item) : GeomElementBase(coords,item){}
21 Triangle3Element(Real3ConstArrayView coords) : GeomElementBase(coords){}
22 Triangle3Element(const Real3& a0, const Real3& a1, const Real3& a2)
23 {
24 m_s[0] = a0;
25 m_s[1] = a1;
26 m_s[2] = a2;
27 }
28
29 //! Initializes the instance with the coordinates passed as arguments
30 void init(const Real3& a0, const Real3& a1, const Real3& a2)
31 {
32 m_s[0] = a0;
33 m_s[1] = a1;
34 m_s[2] = a2;
35 }
36 //! Conversion operator to a constant view
37 operator ConstViewType() const { return ConstViewType(m_s); }
38 //! Conversion operator to a mutable view
39 operator ViewType() { return ViewType(m_s); }
40 //! Constant view of the element
41 ConstViewType constView() const { return ConstViewType(m_s); }
42 //! Mutable view of the element
43 ViewType view() { return ViewType(m_s); }
44};
45
46//! Geometric element of type GeomType::Triangle3
47typedef Triangle3Element TriangleElement;
48
49
50/*!
51 * \ingroup ArcaneGeometric
52 * \brief Geometric elements of type GeomType::Quad4.
53 */
54class ARCANE_GEOMETRY_EXPORT Quad4Element
55: public GeomElementBase< 4 >
56{
57 public:
58 typedef Quad4ElementConstView ConstViewType;
59 typedef Quad4ElementView ViewType;
60 public:
61 using GeomElementBase< 4 >::init;
62
63 Quad4Element(){}
64 Quad4Element(const VariableNodeReal3& coords,ItemWithNodes item) : GeomElementBase(coords,item){}
65 Quad4Element(Real3ConstArrayView coords) : GeomElementBase(coords){}
66 Quad4Element(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3)
67 {
68 m_s[0] = a0;
69 m_s[1] = a1;
70 m_s[2] = a2;
71 m_s[3] = a3;
72 }
73
74 //! Initializes the instance with the coordinates passed as arguments
75 void init(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3)
76 {
77 m_s[0] = a0;
78 m_s[1] = a1;
79 m_s[2] = a2;
80 m_s[3] = a3;
81 }
82 //! Conversion operator to a constant view
83 operator ConstViewType() const { return ConstViewType(m_s); }
84 //! Conversion operator to a mutable view
85 operator ViewType() { return ViewType(m_s); }
86 //! Constant view of the element
87 ConstViewType constView() const { return ConstViewType(m_s); }
88 //! Mutable view of the element
89 ViewType view() { return ViewType(m_s); }
90};
91
92//! Geometric element of type GeomType::Quad4
93typedef Quad4Element QuadElement;
94
95
96/*!
97 * \ingroup ArcaneGeometric
98 * \brief Geometric elements of type GeomType::Pentagon5.
99 */
100class ARCANE_GEOMETRY_EXPORT Pentagon5Element
101: public GeomElementBase< 5 >
102{
103 public:
104 typedef Pentagon5ElementConstView ConstViewType;
105 typedef Pentagon5ElementView ViewType;
106 public:
107 using GeomElementBase< 5 >::init;
108
109 Pentagon5Element(){}
110 Pentagon5Element(const VariableNodeReal3& coords,ItemWithNodes item) : GeomElementBase(coords,item){}
111 Pentagon5Element(Real3ConstArrayView coords) : GeomElementBase(coords){}
112 Pentagon5Element(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3, const Real3& a4)
113 {
114 m_s[0] = a0;
115 m_s[1] = a1;
116 m_s[2] = a2;
117 m_s[3] = a3;
118 m_s[4] = a4;
119 }
120
121 //! Initializes the instance with the coordinates passed as arguments
122 void init(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3, const Real3& a4)
123 {
124 m_s[0] = a0;
125 m_s[1] = a1;
126 m_s[2] = a2;
127 m_s[3] = a3;
128 m_s[4] = a4;
129 }
130 //! Conversion operator to a constant view
131 operator ConstViewType() const { return ConstViewType(m_s); }
132 //! Conversion operator to a mutable view
133 operator ViewType() { return ViewType(m_s); }
134 //! Constant view of the element
135 ConstViewType constView() const { return ConstViewType(m_s); }
136 //! Mutable view of the element
137 ViewType view() { return ViewType(m_s); }
138};
139
140//! Geometric element of type GeomType::Pentagon5
141typedef Pentagon5Element PentagonElement;
142
143
144/*!
145 * \ingroup ArcaneGeometric
146 * \brief Geometric elements of type GeomType::Hexagon6.
147 */
148class ARCANE_GEOMETRY_EXPORT Hexagon6Element
149: public GeomElementBase< 6 >
150{
151 public:
152 typedef Hexagon6ElementConstView ConstViewType;
153 typedef Hexagon6ElementView ViewType;
154 public:
155 using GeomElementBase< 6 >::init;
156
157 Hexagon6Element(){}
158 Hexagon6Element(const VariableNodeReal3& coords,ItemWithNodes item) : GeomElementBase(coords,item){}
159 Hexagon6Element(Real3ConstArrayView coords) : GeomElementBase(coords){}
160 Hexagon6Element(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3, const Real3& a4, const Real3& a5)
161 {
162 m_s[0] = a0;
163 m_s[1] = a1;
164 m_s[2] = a2;
165 m_s[3] = a3;
166 m_s[4] = a4;
167 m_s[5] = a5;
168 }
169
170 //! Initializes the instance with the coordinates passed as arguments
171 void init(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3, const Real3& a4, const Real3& a5)
172 {
173 m_s[0] = a0;
174 m_s[1] = a1;
175 m_s[2] = a2;
176 m_s[3] = a3;
177 m_s[4] = a4;
178 m_s[5] = a5;
179 }
180 //! Conversion operator to a constant view
181 operator ConstViewType() const { return ConstViewType(m_s); }
182 //! Conversion operator to a mutable view
183 operator ViewType() { return ViewType(m_s); }
184 //! Constant view of the element
185 ConstViewType constView() const { return ConstViewType(m_s); }
186 //! Mutable view of the element
187 ViewType view() { return ViewType(m_s); }
188};
189
190//! Geometric element of type GeomType::Hexagon6
191typedef Hexagon6Element HexagonElement;
192
193
194/*!
195 * \ingroup ArcaneGeometric
196 * \brief Geometric elements of type GeomType::Tetraedron4.
197 */
198class ARCANE_GEOMETRY_EXPORT Tetraedron4Element
199: public GeomElementBase< 4 >
200{
201 public:
202 typedef Tetraedron4ElementConstView ConstViewType;
203 typedef Tetraedron4ElementView ViewType;
204 public:
205 using GeomElementBase< 4 >::init;
206
207 Tetraedron4Element(){}
208 Tetraedron4Element(const VariableNodeReal3& coords,ItemWithNodes item) : GeomElementBase(coords,item){}
209 Tetraedron4Element(Real3ConstArrayView coords) : GeomElementBase(coords){}
210 Tetraedron4Element(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3)
211 {
212 m_s[0] = a0;
213 m_s[1] = a1;
214 m_s[2] = a2;
215 m_s[3] = a3;
216 }
217
218 //! Initializes the instance with the coordinates passed as arguments
219 void init(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3)
220 {
221 m_s[0] = a0;
222 m_s[1] = a1;
223 m_s[2] = a2;
224 m_s[3] = a3;
225 }
226 //! Conversion operator to a constant view
227 operator ConstViewType() const { return ConstViewType(m_s); }
228 //! Conversion operator to a mutable view
229 operator ViewType() { return ViewType(m_s); }
230 //! Constant view of the element
231 ConstViewType constView() const { return ConstViewType(m_s); }
232 //! Mutable view of the element
233 ViewType view() { return ViewType(m_s); }
234};
235
236//! Geometric element of type GeomType::Tetraedron4
237typedef Tetraedron4Element TetraElement;
238
239
240/*!
241 * \ingroup ArcaneGeometric
242 * \brief Geometric elements of type GeomType::Pyramid5.
243 */
244class ARCANE_GEOMETRY_EXPORT Pyramid5Element
245: public GeomElementBase< 5 >
246{
247 public:
248 typedef Pyramid5ElementConstView ConstViewType;
249 typedef Pyramid5ElementView ViewType;
250 public:
251 using GeomElementBase< 5 >::init;
252
253 Pyramid5Element(){}
254 Pyramid5Element(const VariableNodeReal3& coords,ItemWithNodes item) : GeomElementBase(coords,item){}
255 Pyramid5Element(Real3ConstArrayView coords) : GeomElementBase(coords){}
256 Pyramid5Element(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3, const Real3& a4)
257 {
258 m_s[0] = a0;
259 m_s[1] = a1;
260 m_s[2] = a2;
261 m_s[3] = a3;
262 m_s[4] = a4;
263 }
264
265 //! Initializes the instance with the coordinates passed as arguments
266 void init(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3, const Real3& a4)
267 {
268 m_s[0] = a0;
269 m_s[1] = a1;
270 m_s[2] = a2;
271 m_s[3] = a3;
272 m_s[4] = a4;
273 }
274 //! Conversion operator to a constant view
275 operator ConstViewType() const { return ConstViewType(m_s); }
276 //! Conversion operator to a modifiable view
277 operator ViewType() { return ViewType(m_s); }
278 //! Constant view of the element
279 ConstViewType constView() const { return ConstViewType(m_s); }
280 //! Modifiable view of the element
281 ViewType view() { return ViewType(m_s); }
282};
283
284//! Geometric element of type GeomType::Pyramid5
285typedef Pyramid5Element PyramidElement;
286
287
288/*!
289 * \ingroup ArcaneGeometric
290 * \brief Geometric elements of type GeomType::Pentaedron6.
291 */
292class ARCANE_GEOMETRY_EXPORT Pentaedron6Element
293: public GeomElementBase< 6 >
294{
295 public:
296 typedef Pentaedron6ElementConstView ConstViewType;
297 typedef Pentaedron6ElementView ViewType;
298 public:
299 using GeomElementBase< 6 >::init;
300
301 Pentaedron6Element(){}
302 Pentaedron6Element(const VariableNodeReal3& coords,ItemWithNodes item) : GeomElementBase(coords,item){}
303 Pentaedron6Element(Real3ConstArrayView coords) : GeomElementBase(coords){}
304 Pentaedron6Element(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3, const Real3& a4, const Real3& a5)
305 {
306 m_s[0] = a0;
307 m_s[1] = a1;
308 m_s[2] = a2;
309 m_s[3] = a3;
310 m_s[4] = a4;
311 m_s[5] = a5;
312 }
313
314 //! Initializes the instance with the coordinates passed as arguments
315 void init(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3, const Real3& a4, const Real3& a5)
316 {
317 m_s[0] = a0;
318 m_s[1] = a1;
319 m_s[2] = a2;
320 m_s[3] = a3;
321 m_s[4] = a4;
322 m_s[5] = a5;
323 }
324 //! Conversion operator to a constant view
325 operator ConstViewType() const { return ConstViewType(m_s); }
326 //! Conversion operator to a modifiable view
327 operator ViewType() { return ViewType(m_s); }
328 //! Constant view of the element
329 ConstViewType constView() const { return ConstViewType(m_s); }
330 //! Modifiable view of the element
331 ViewType view() { return ViewType(m_s); }
332};
333
334//! Geometric element of type GeomType::Pentaedron6
335typedef Pentaedron6Element PentaElement;
336
337
338/*!
339 * \ingroup ArcaneGeometric
340 * \brief Geometric elements of type GeomType::Hexaedron8.
341 */
342class ARCANE_GEOMETRY_EXPORT Hexaedron8Element
343: public GeomElementBase< 8 >
344{
345 public:
346 typedef Hexaedron8ElementConstView ConstViewType;
347 typedef Hexaedron8ElementView ViewType;
348 public:
349 using GeomElementBase< 8 >::init;
350
351 Hexaedron8Element(){}
352 Hexaedron8Element(const VariableNodeReal3& coords,ItemWithNodes item) : GeomElementBase(coords,item){}
353 Hexaedron8Element(Real3ConstArrayView coords) : GeomElementBase(coords){}
354 Hexaedron8Element(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3, const Real3& a4, const Real3& a5, const Real3& a6, const Real3& a7)
355 {
356 m_s[0] = a0;
357 m_s[1] = a1;
358 m_s[2] = a2;
359 m_s[3] = a3;
360 m_s[4] = a4;
361 m_s[5] = a5;
362 m_s[6] = a6;
363 m_s[7] = a7;
364 }
365
366 //! Initializes the instance with the coordinates passed as arguments
367 void init(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3, const Real3& a4, const Real3& a5, const Real3& a6, const Real3& a7)
368 {
369 m_s[0] = a0;
370 m_s[1] = a1;
371 m_s[2] = a2;
372 m_s[3] = a3;
373 m_s[4] = a4;
374 m_s[5] = a5;
375 m_s[6] = a6;
376 m_s[7] = a7;
377 }
378 //! Conversion operator to a constant view
379 operator ConstViewType() const { return ConstViewType(m_s); }
380 //! Conversion operator to a modifiable view
381 operator ViewType() { return ViewType(m_s); }
382 //! Constant view of the element
383 ConstViewType constView() const { return ConstViewType(m_s); }
384 //! Modifiable view of the element
385 ViewType view() { return ViewType(m_s); }
386};
387
388//! Geometric element of type GeomType::Hexaedron8
389typedef Hexaedron8Element HexaElement;
390
391
392/*!
393 * \ingroup ArcaneGeometric
394 * \brief Geometric elements of type GeomType::Heptaedron10.
395 */
396class ARCANE_GEOMETRY_EXPORT Heptaedron10Element
397: public GeomElementBase< 10 >
398{
399 public:
400 typedef Heptaedron10ElementConstView ConstViewType;
401 typedef Heptaedron10ElementView ViewType;
402 public:
403 using GeomElementBase< 10 >::init;
404
405 Heptaedron10Element(){}
406 Heptaedron10Element(const VariableNodeReal3& coords,ItemWithNodes item) : GeomElementBase(coords,item){}
407 Heptaedron10Element(Real3ConstArrayView coords) : GeomElementBase(coords){}
408 Heptaedron10Element(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3, const Real3& a4, const Real3& a5, const Real3& a6, const Real3& a7, const Real3& a8, const Real3& a9)
409 {
410 m_s[0] = a0;
411 m_s[1] = a1;
412 m_s[2] = a2;
413 m_s[3] = a3;
414 m_s[4] = a4;
415 m_s[5] = a5;
416 m_s[6] = a6;
417 m_s[7] = a7;
418 m_s[8] = a8;
419 m_s[9] = a9;
420 }
421
422 //! Initializes the instance with the coordinates passed as arguments
423 void init(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3, const Real3& a4, const Real3& a5, const Real3& a6, const Real3& a7, const Real3& a8, const Real3& a9)
424 {
425 m_s[0] = a0;
426 m_s[1] = a1;
427 m_s[2] = a2;
428 m_s[3] = a3;
429 m_s[4] = a4;
430 m_s[5] = a5;
431 m_s[6] = a6;
432 m_s[7] = a7;
433 m_s[8] = a8;
434 m_s[9] = a9;
435 }
436 //! Conversion operator to a constant view
437 operator ConstViewType() const { return ConstViewType(m_s); }
438 //! Conversion operator to a modifiable view
439 operator ViewType() { return ViewType(m_s); }
440 //! Constant view of the element
441 ConstViewType constView() const { return ConstViewType(m_s); }
442 //! Modifiable view of the element
443 ViewType view() { return ViewType(m_s); }
444};
445
446//! Geometric element of type GeomType::Heptaedron10
447typedef Heptaedron10Element Wedge7Element;
448
449
450/*!
451 * \ingroup ArcaneGeometric
452 * \brief Geometric elements of type GeomType::Octaedron12.
453 */
454class ARCANE_GEOMETRY_EXPORT Octaedron12Element
455: public GeomElementBase< 12 >
456{
457 public:
458 typedef Octaedron12ElementConstView ConstViewType;
459 typedef Octaedron12ElementView ViewType;
460 public:
461 using GeomElementBase< 12 >::init;
462
463 Octaedron12Element(){}
464 Octaedron12Element(const VariableNodeReal3& coords,ItemWithNodes item) : GeomElementBase(coords,item){}
465 Octaedron12Element(Real3ConstArrayView coords) : GeomElementBase(coords){}
466 Octaedron12Element(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3, const Real3& a4, const Real3& a5, const Real3& a6, const Real3& a7, const Real3& a8, const Real3& a9, const Real3& a10, const Real3& a11)
467 {
468 m_s[0] = a0;
469 m_s[1] = a1;
470 m_s[2] = a2;
471 m_s[3] = a3;
472 m_s[4] = a4;
473 m_s[5] = a5;
474 m_s[6] = a6;
475 m_s[7] = a7;
476 m_s[8] = a8;
477 m_s[9] = a9;
478 m_s[10] = a10;
479 m_s[11] = a11;
480 }
481
482 //! Initializes the instance with the coordinates passed as arguments
483 void init(const Real3& a0, const Real3& a1, const Real3& a2, const Real3& a3, const Real3& a4, const Real3& a5, const Real3& a6, const Real3& a7, const Real3& a8, const Real3& a9, const Real3& a10, const Real3& a11)
484 {
485 m_s[0] = a0;
486 m_s[1] = a1;
487 m_s[2] = a2;
488 m_s[3] = a3;
489 m_s[4] = a4;
490 m_s[5] = a5;
491 m_s[6] = a6;
492 m_s[7] = a7;
493 m_s[8] = a8;
494 m_s[9] = a9;
495 m_s[10] = a10;
496 m_s[11] = a11;
497 }
498 //! Conversion operator to a constant view
499 operator ConstViewType() const { return ConstViewType(m_s); }
500 //! Conversion operator to a modifiable view
501 operator ViewType() { return ViewType(m_s); }
502 //! Constant view of the element
503 ConstViewType constView() const { return ConstViewType(m_s); }
504 //! Modifiable view of the element
505 ViewType view() { return ViewType(m_s); }
506};
507
508//! Geometric element of type GeomType::Octaedron12
509typedef Octaedron12Element Wedge8Element;
Constant view on geometric elements of type GeomType::Heptaedron10.
Modifiable view on geometric elements of type GeomType::Heptaedron10.
Geometric elements of type GeomType::Heptaedron10.
void init(const Real3 &a0, const Real3 &a1, const Real3 &a2, const Real3 &a3, const Real3 &a4, const Real3 &a5, const Real3 &a6, const Real3 &a7, const Real3 &a8, const Real3 &a9)
Initializes the instance with the coordinates passed as arguments.
ConstViewType constView() const
Constant view of the element.
ViewType view()
Modifiable view of the element.
Constant view on geometric elements of type GeomType::Hexaedron8.
Modifiable view on geometric elements of type GeomType::Hexaedron8.
Geometric elements of type GeomType::Hexaedron8.
void init(const Real3 &a0, const Real3 &a1, const Real3 &a2, const Real3 &a3, const Real3 &a4, const Real3 &a5, const Real3 &a6, const Real3 &a7)
Initializes the instance with the coordinates passed as arguments.
ViewType view()
Modifiable view of the element.
ConstViewType constView() const
Constant view of the element.
Constant view on geometric elements of type GeomType::Hexagon6.
Modifiable view on geometric elements of type GeomType::Hexagon6.
Geometric elements of type GeomType::Hexagon6.
void init(const Real3 &a0, const Real3 &a1, const Real3 &a2, const Real3 &a3, const Real3 &a4, const Real3 &a5)
Initializes the instance with the coordinates passed as arguments.
ViewType view()
Mutable view of the element.
ConstViewType constView() const
Constant view of the element.
Constant view on geometric elements of type GeomType::Octaedron12.
Modifiable view on geometric elements of type GeomType::Octaedron12.
Geometric elements of type GeomType::Octaedron12.
ViewType view()
Modifiable view of the element.
ConstViewType constView() const
Constant view of the element.
void init(const Real3 &a0, const Real3 &a1, const Real3 &a2, const Real3 &a3, const Real3 &a4, const Real3 &a5, const Real3 &a6, const Real3 &a7, const Real3 &a8, const Real3 &a9, const Real3 &a10, const Real3 &a11)
Initializes the instance with the coordinates passed as arguments.
Constant view on geometric elements of type GeomType::Pentaedron6.
Modifiable view on geometric elements of type GeomType::Pentaedron6.
Geometric elements of type GeomType::Pentaedron6.
void init(const Real3 &a0, const Real3 &a1, const Real3 &a2, const Real3 &a3, const Real3 &a4, const Real3 &a5)
Initializes the instance with the coordinates passed as arguments.
ViewType view()
Modifiable view of the element.
ConstViewType constView() const
Constant view of the element.
Constant view on geometric elements of type GeomType::Pentagon5.
Modifiable view on geometric elements of type GeomType::Pentagon5.
Geometric elements of type GeomType::Pentagon5.
void init(const Real3 &a0, const Real3 &a1, const Real3 &a2, const Real3 &a3, const Real3 &a4)
Initializes the instance with the coordinates passed as arguments.
ViewType view()
Mutable view of the element.
ConstViewType constView() const
Constant view of the element.
Constant view on geometric elements of type GeomType::Pyramid5.
Modifiable view on geometric elements of type GeomType::Pyramid5.
Geometric elements of type GeomType::Pyramid5.
ConstViewType constView() const
Constant view of the element.
void init(const Real3 &a0, const Real3 &a1, const Real3 &a2, const Real3 &a3, const Real3 &a4)
Initializes the instance with the coordinates passed as arguments.
ViewType view()
Modifiable view of the element.
Constant view on geometric elements of type GeomType::Quad4.
Modifiable view on geometric elements of type GeomType::Quad4.
Geometric elements of type GeomType::Quad4.
ConstViewType constView() const
Constant view of the element.
ViewType view()
Mutable view of the element.
void init(const Real3 &a0, const Real3 &a1, const Real3 &a2, const Real3 &a3)
Initializes the instance with the coordinates passed as arguments.
Constant view on geometric elements of type GeomType::Tetraedron4.
Modifiable view on geometric elements of type GeomType::Tetraedron4.
Geometric elements of type GeomType::Tetraedron4.
ConstViewType constView() const
Constant view of the element.
void init(const Real3 &a0, const Real3 &a1, const Real3 &a2, const Real3 &a3)
Initializes the instance with the coordinates passed as arguments.
ViewType view()
Mutable view of the element.
Constant view on geometric elements of type GeomType::Triangle3.
Modifiable view on geometric elements of type GeomType::Triangle3.
Geometric elements of type GeomType::Triangle3.
void init(const Real3 &a0, const Real3 &a1, const Real3 &a2)
Initializes the instance with the coordinates passed as arguments.
ViewType view()
Mutable view of the element.
ConstViewType constView() const
Constant view of the element.