libMesh
Loading...
Searching...
No Matches
fe_abstract.C
Go to the documentation of this file.
1// The libMesh Finite Element Library.
2// Copyright (C) 2002-2026 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
3
4// This library is free software; you can redistribute it and/or
5// modify it under the terms of the GNU Lesser General Public
6// License as published by the Free Software Foundation; either
7// version 2.1 of the License, or (at your option) any later version.
8
9// This library is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12// Lesser General Public License for more details.
13
14// You should have received a copy of the GNU Lesser General Public
15// License along with this library; if not, write to the Free Software
16// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
18// libmesh includes
19#include "libmesh/fe.h"
20#include "libmesh/libmesh_logging.h"
21#include "libmesh/enum_elem_type.h"
22#include "libmesh/boundary_info.h"
23#include "libmesh/mesh_base.h"
24#include "libmesh/dense_matrix.h"
25#include "libmesh/dense_vector.h"
26#include "libmesh/dof_map.h"
27#include "libmesh/elem.h"
28#include "libmesh/fe_interface.h"
29#include "libmesh/numeric_vector.h"
30#include "libmesh/periodic_boundaries.h"
31#include "libmesh/periodic_boundary.h"
32#include "libmesh/quadrature.h"
33#include "libmesh/quadrature_gauss.h"
34#include "libmesh/remote_elem.h"
35#include "libmesh/tensor_value.h"
36#include "libmesh/threads.h"
37#include "libmesh/enum_to_string.h"
38
39#ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
40#include "libmesh/inf_fe.h"
41#include "libmesh/fe_interface_macros.h"
42#endif
43
44namespace libMesh
45{
46
47FEAbstract::FEAbstract(const unsigned int d,
48 const FEType & fet) :
49 _fe_map( FEMap::build(fet) ),
50 dim(d),
51 calculations_started(false),
52 calculate_dual(false),
53 calculate_default_dual_coeff(true),
54 calculate_nothing(false),
55 calculate_map(false),
56 calculate_phi(false),
57 calculate_dphi(false),
58 calculate_d2phi(false),
59 calculate_curl_phi(false),
60 calculate_div_phi(false),
61 calculate_dphiref(false),
62 fe_type(fet),
63 _elem_type(INVALID_ELEM),
64 _elem(nullptr),
65 _elem_p_level(0),
66 _p_level(0),
67 qrule(nullptr),
68 shapes_on_quadrature(false),
69 _n_total_qp(0),
70 _add_p_level_in_reinit(fet.p_refinement)
71{
72}
73
74
75FEAbstract::~FEAbstract() = default;
76
77
78std::unique_ptr<FEAbstract> FEAbstract::build(const unsigned int dim,
79 const FEType & fet)
80{
81 switch (dim)
82 {
83 // 0D
84 case 0:
85 {
86 switch (fet.family)
87 {
88 case CLOUGH:
89 return std::make_unique<FE<0,CLOUGH>>(fet);
90
91 case HERMITE:
92 return std::make_unique<FE<0,HERMITE>>(fet);
93
94 case LAGRANGE:
95 return std::make_unique<FE<0,LAGRANGE>>(fet);
96
97 case LAGRANGE_VEC:
98 return std::make_unique<FE<0,LAGRANGE_VEC>>(fet);
99
100 case L2_LAGRANGE:
101 return std::make_unique<FE<0,L2_LAGRANGE>>(fet);
102
103 case L2_LAGRANGE_GLL:
104 return std::make_unique<FE<0,L2_LAGRANGE_GLL>>(fet);
105
106 case LAGRANGE_GLL:
107 return std::make_unique<FE<0,LAGRANGE_GLL>>(fet);
108
109 case L2_LAGRANGE_VEC:
110 return std::make_unique<FE<0,L2_LAGRANGE_VEC>>(fet);
111
112 case HIERARCHIC_VEC:
113 return std::make_unique<FE<0,HIERARCHIC_VEC>>(fet);
114
115 case HIERARCHIC:
116 return std::make_unique<FE<0,HIERARCHIC>>(fet);
117
118 case L2_HIERARCHIC:
119 return std::make_unique<FE<0,L2_HIERARCHIC>>(fet);
120
122 return std::make_unique<FE<0,L2_HIERARCHIC_VEC>>(fet);
123
124 case SIDE_HIERARCHIC:
125 return std::make_unique<FE<0,SIDE_HIERARCHIC>>(fet);
126
127 case MONOMIAL:
128 return std::make_unique<FE<0,MONOMIAL>>(fet);
129
130 case MONOMIAL_VEC:
131 return std::make_unique<FE<0,MONOMIAL_VEC>>(fet);
132
133#ifdef LIBMESH_ENABLE_HIGHER_ORDER_SHAPES
134 case SZABAB:
135 return std::make_unique<FE<0,SZABAB>>(fet);
136
137 case BERNSTEIN:
138 return std::make_unique<FE<0,BERNSTEIN>>(fet);
139
141 return std::make_unique<FE<0,RATIONAL_BERNSTEIN>>(fet);
142#endif
143
144 case XYZ:
145 return std::make_unique<FEXYZ<0>>(fet);
146
147 case SCALAR:
148 return std::make_unique<FEScalar<0>>(fet);
149
150 case NEDELEC_ONE:
151 return std::make_unique<FENedelecOne<0>>(fet);
152
153 case RAVIART_THOMAS:
154 return std::make_unique<FERaviartThomas<0>>(fet);
155
157 return std::make_unique<FEL2RaviartThomas<0>>(fet);
158
159 case SUBDIVISION:
160 return std::make_unique<FESubdivision>(fet);
161
162 default:
163 libmesh_error_msg("ERROR: Bad FEType.family= " << Utility::enum_to_string(fet.family));
164 }
165 }
166 // 1D
167 case 1:
168 {
169 switch (fet.family)
170 {
171 case CLOUGH:
172 return std::make_unique<FE<1,CLOUGH>>(fet);
173
174 case HERMITE:
175 return std::make_unique<FE<1,HERMITE>>(fet);
176
177 case LAGRANGE:
178 return std::make_unique<FE<1,LAGRANGE>>(fet);
179
180 case LAGRANGE_VEC:
181 return std::make_unique<FE<1,LAGRANGE_VEC>>(fet);
182
183 case L2_LAGRANGE:
184 return std::make_unique<FE<1,L2_LAGRANGE>>(fet);
185
186 case L2_LAGRANGE_GLL:
187 return std::make_unique<FE<1,L2_LAGRANGE_GLL>>(fet);
188
189 case LAGRANGE_GLL:
190 return std::make_unique<FE<1,LAGRANGE_GLL>>(fet);
191
192 case L2_LAGRANGE_VEC:
193 return std::make_unique<FE<1,L2_LAGRANGE_VEC>>(fet);
194
195 case HIERARCHIC_VEC:
196 return std::make_unique<FE<1,HIERARCHIC_VEC>>(fet);
197
198 case HIERARCHIC:
199 return std::make_unique<FE<1,HIERARCHIC>>(fet);
200
201 case L2_HIERARCHIC:
202 return std::make_unique<FE<1,L2_HIERARCHIC>>(fet);
203
205 return std::make_unique<FE<1,L2_HIERARCHIC_VEC>>(fet);
206
207 case SIDE_HIERARCHIC:
208 return std::make_unique<FE<1,SIDE_HIERARCHIC>>(fet);
209
210 case MONOMIAL:
211 return std::make_unique<FE<1,MONOMIAL>>(fet);
212
213 case MONOMIAL_VEC:
214 return std::make_unique<FE<1,MONOMIAL_VEC>>(fet);
215
216#ifdef LIBMESH_ENABLE_HIGHER_ORDER_SHAPES
217 case SZABAB:
218 return std::make_unique<FE<1,SZABAB>>(fet);
219
220 case BERNSTEIN:
221 return std::make_unique<FE<1,BERNSTEIN>>(fet);
222
224 return std::make_unique<FE<1,RATIONAL_BERNSTEIN>>(fet);
225#endif
226
227 case XYZ:
228 return std::make_unique<FEXYZ<1>>(fet);
229
230 case SCALAR:
231 return std::make_unique<FEScalar<1>>(fet);
232
233 case NEDELEC_ONE:
234 return std::make_unique<FENedelecOne<1>>(fet);
235
236 case RAVIART_THOMAS:
237 return std::make_unique<FERaviartThomas<1>>(fet);
238
240 return std::make_unique<FEL2RaviartThomas<1>>(fet);
241
242 case SUBDIVISION:
243 return std::make_unique<FESubdivision>(fet);
244
245 default:
246 libmesh_error_msg("ERROR: Bad FEType.family= " << Utility::enum_to_string(fet.family));
247 }
248 }
249
250
251 // 2D
252 case 2:
253 {
254 switch (fet.family)
255 {
256 case CLOUGH:
257 return std::make_unique<FE<2,CLOUGH>>(fet);
258
259 case HERMITE:
260 return std::make_unique<FE<2,HERMITE>>(fet);
261
262 case LAGRANGE:
263 return std::make_unique<FE<2,LAGRANGE>>(fet);
264
265 case LAGRANGE_VEC:
266 return std::make_unique<FE<2,LAGRANGE_VEC>>(fet);
267
268 case L2_LAGRANGE:
269 return std::make_unique<FE<2,L2_LAGRANGE>>(fet);
270
271 case L2_LAGRANGE_GLL:
272 return std::make_unique<FE<2,L2_LAGRANGE_GLL>>(fet);
273
274 case LAGRANGE_GLL:
275 return std::make_unique<FE<2,LAGRANGE_GLL>>(fet);
276
277 case L2_LAGRANGE_VEC:
278 return std::make_unique<FE<2,L2_LAGRANGE_VEC>>(fet);
279
280 case HIERARCHIC_VEC:
281 return std::make_unique<FE<2,HIERARCHIC_VEC>>(fet);
282
283 case HIERARCHIC:
284 return std::make_unique<FE<2,HIERARCHIC>>(fet);
285
286 case L2_HIERARCHIC:
287 return std::make_unique<FE<2,L2_HIERARCHIC>>(fet);
288
290 return std::make_unique<FE<2,L2_HIERARCHIC_VEC>>(fet);
291
292 case SIDE_HIERARCHIC:
293 return std::make_unique<FE<2,SIDE_HIERARCHIC>>(fet);
294
295 case MONOMIAL:
296 return std::make_unique<FE<2,MONOMIAL>>(fet);
297
298 case MONOMIAL_VEC:
299 return std::make_unique<FE<2,MONOMIAL_VEC>>(fet);
300
301#ifdef LIBMESH_ENABLE_HIGHER_ORDER_SHAPES
302 case SZABAB:
303 return std::make_unique<FE<2,SZABAB>>(fet);
304
305 case BERNSTEIN:
306 return std::make_unique<FE<2,BERNSTEIN>>(fet);
307
309 return std::make_unique<FE<2,RATIONAL_BERNSTEIN>>(fet);
310#endif
311
312 case XYZ:
313 return std::make_unique<FEXYZ<2>>(fet);
314
315 case SCALAR:
316 return std::make_unique<FEScalar<2>>(fet);
317
318 case NEDELEC_ONE:
319 return std::make_unique<FENedelecOne<2>>(fet);
320
321 case RAVIART_THOMAS:
322 return std::make_unique<FERaviartThomas<2>>(fet);
323
325 return std::make_unique<FEL2RaviartThomas<2>>(fet);
326
327 case SUBDIVISION:
328 return std::make_unique<FESubdivision>(fet);
329
330 default:
331 libmesh_error_msg("ERROR: Bad FEType.family= " << Utility::enum_to_string(fet.family));
332 }
333 }
334
335
336 // 3D
337 case 3:
338 {
339 switch (fet.family)
340 {
341 case CLOUGH:
342 libmesh_error_msg("ERROR: Clough-Tocher elements currently only support 1D and 2D");
343
344 case HERMITE:
345 return std::make_unique<FE<3,HERMITE>>(fet);
346
347 case LAGRANGE:
348 return std::make_unique<FE<3,LAGRANGE>>(fet);
349
350 case LAGRANGE_VEC:
351 return std::make_unique<FE<3,LAGRANGE_VEC>>(fet);
352
353 case L2_LAGRANGE:
354 return std::make_unique<FE<3,L2_LAGRANGE>>(fet);
355
356 case L2_LAGRANGE_GLL:
357 return std::make_unique<FE<3,L2_LAGRANGE_GLL>>(fet);
358
359 case LAGRANGE_GLL:
360 return std::make_unique<FE<3,LAGRANGE_GLL>>(fet);
361
362 case L2_LAGRANGE_VEC:
363 return std::make_unique<FE<3,L2_LAGRANGE_VEC>>(fet);
364
365 case HIERARCHIC_VEC:
366 return std::make_unique<FE<3,HIERARCHIC_VEC>>(fet);
367
368 case HIERARCHIC:
369 return std::make_unique<FE<3,HIERARCHIC>>(fet);
370
371 case L2_HIERARCHIC:
372 return std::make_unique<FE<3,L2_HIERARCHIC>>(fet);
373
375 return std::make_unique<FE<3,L2_HIERARCHIC_VEC>>(fet);
376
377 case SIDE_HIERARCHIC:
378 return std::make_unique<FE<3,SIDE_HIERARCHIC>>(fet);
379
380 case MONOMIAL:
381 return std::make_unique<FE<3,MONOMIAL>>(fet);
382
383 case MONOMIAL_VEC:
384 return std::make_unique<FE<3,MONOMIAL_VEC>>(fet);
385
386#ifdef LIBMESH_ENABLE_HIGHER_ORDER_SHAPES
387 case SZABAB:
388 return std::make_unique<FE<3,SZABAB>>(fet);
389
390 case BERNSTEIN:
391 return std::make_unique<FE<3,BERNSTEIN>>(fet);
392
394 return std::make_unique<FE<3,RATIONAL_BERNSTEIN>>(fet);
395#endif
396
397 case XYZ:
398 return std::make_unique<FEXYZ<3>>(fet);
399
400 case SCALAR:
401 return std::make_unique<FEScalar<3>>(fet);
402
403 case NEDELEC_ONE:
404 return std::make_unique<FENedelecOne<3>>(fet);
405
406 case RAVIART_THOMAS:
407 return std::make_unique<FERaviartThomas<3>>(fet);
408
410 return std::make_unique<FEL2RaviartThomas<3>>(fet);
411
412 default:
413 libmesh_error_msg("ERROR: Bad FEType.family= " << Utility::enum_to_string(fet.family));
414 }
415 }
416
417 default:
418 libmesh_error_msg("Invalid dimension dim = " << dim);
419 }
420}
421
422
423
424void FEAbstract::get_refspace_nodes(const ElemType itemType, std::vector<Point> & nodes)
425{
426 const unsigned int n_nodes = Elem::type_to_n_nodes_map[itemType];
427 if (n_nodes == invalid_uint)
428 libmesh_error_msg("Number of nodes is not well-defined for " <<
429 Utility::enum_to_string(itemType));
430
431 nodes.resize(n_nodes);
432 switch(itemType)
433 {
434 case NODEELEM:
435 {
436 nodes[0] = Point (0.,0.,0.);
437 return;
438 }
439 case EDGE3:
440 {
441 nodes[2] = Point (0.,0.,0.);
442 libmesh_fallthrough();
443 }
444 case EDGE2:
445 {
446 nodes[0] = Point (-1.,0.,0.);
447 nodes[1] = Point (1.,0.,0.);
448 return;
449 }
450 case EDGE4: // not nested with EDGE3
451 {
452 nodes[0] = Point (-1.,0.,0.);
453 nodes[1] = Point (1.,0.,0.);
454 nodes[2] = Point (-1./3.,0.,0.);
455 nodes[3] = Point (1./3.,0.,0.);
456 return;
457 }
458 case TRI7:
459 {
460 nodes[6] = Point (1./3.,1./3.,0.);
461 libmesh_fallthrough();
462 }
463 case TRI6:
464 {
465 nodes[3] = Point (.5,0.,0.);
466 nodes[4] = Point (.5,.5,0.);
467 nodes[5] = Point (0.,.5,0.);
468 libmesh_fallthrough();
469 }
470 case TRI3:
471 case TRISHELL3:
472 {
473 nodes[0] = Point (0.,0.,0.);
474 nodes[1] = Point (1.,0.,0.);
475 nodes[2] = Point (0.,1.,0.);
476 return;
477 }
478 case QUAD9:
479 case QUADSHELL9:
480 {
481 nodes[8] = Point (0.,0.,0.);
482 libmesh_fallthrough();
483 }
484 case QUAD8:
485 case QUADSHELL8:
486 {
487 nodes[4] = Point (0.,-1.,0.);
488 nodes[5] = Point (1.,0.,0.);
489 nodes[6] = Point (0.,1.,0.);
490 nodes[7] = Point (-1.,0.,0.);
491 libmesh_fallthrough();
492 }
493 case QUAD4:
494 case QUADSHELL4:
495 {
496 nodes[0] = Point (-1.,-1.,0.);
497 nodes[1] = Point (1.,-1.,0.);
498 nodes[2] = Point (1.,1.,0.);
499 nodes[3] = Point (-1.,1.,0.);
500 return;
501 }
502 case TET14:
503 {
504 nodes[10] = Point (1/Real(3),1/Real(3),0.);
505 nodes[11] = Point (1/Real(3),0.,1/Real(3));
506 nodes[12] = Point (1/Real(3),1/Real(3),1/Real(3));
507 nodes[13] = Point (0.,1/Real(3),1/Real(3));
508 libmesh_fallthrough();
509 }
510 case TET10:
511 {
512 nodes[4] = Point (.5,0.,0.);
513 nodes[5] = Point (.5,.5,0.);
514 nodes[6] = Point (0.,.5,0.);
515 nodes[7] = Point (0.,0.,.5);
516 nodes[8] = Point (.5,0.,.5);
517 nodes[9] = Point (0.,.5,.5);
518 libmesh_fallthrough();
519 }
520 case TET4:
521 {
522 nodes[0] = Point (0.,0.,0.);
523 nodes[1] = Point (1.,0.,0.);
524 nodes[2] = Point (0.,1.,0.);
525 nodes[3] = Point (0.,0.,1.);
526 return;
527 }
528 case HEX27:
529 {
530 nodes[20] = Point (0.,0.,-1.);
531 nodes[21] = Point (0.,-1.,0.);
532 nodes[22] = Point (1.,0.,0.);
533 nodes[23] = Point (0.,1.,0.);
534 nodes[24] = Point (-1.,0.,0.);
535 nodes[25] = Point (0.,0.,1.);
536 nodes[26] = Point (0.,0.,0.);
537 libmesh_fallthrough();
538 }
539 case HEX20:
540 {
541 nodes[8] = Point (0.,-1.,-1.);
542 nodes[9] = Point (1.,0.,-1.);
543 nodes[10] = Point (0.,1.,-1.);
544 nodes[11] = Point (-1.,0.,-1.);
545 nodes[12] = Point (-1.,-1.,0.);
546 nodes[13] = Point (1.,-1.,0.);
547 nodes[14] = Point (1.,1.,0.);
548 nodes[15] = Point (-1.,1.,0.);
549 nodes[16] = Point (0.,-1.,1.);
550 nodes[17] = Point (1.,0.,1.);
551 nodes[18] = Point (0.,1.,1.);
552 nodes[19] = Point (-1.,0.,1.);
553 libmesh_fallthrough();
554 }
555 case HEX8:
556 {
557 nodes[0] = Point (-1.,-1.,-1.);
558 nodes[1] = Point (1.,-1.,-1.);
559 nodes[2] = Point (1.,1.,-1.);
560 nodes[3] = Point (-1.,1.,-1.);
561 nodes[4] = Point (-1.,-1.,1.);
562 nodes[5] = Point (1.,-1.,1.);
563 nodes[6] = Point (1.,1.,1.);
564 nodes[7] = Point (-1.,1.,1.);
565 return;
566 }
567 case PRISM21:
568 {
569 nodes[20] = Point (1/Real(3),1/Real(3),0);
570 libmesh_fallthrough();
571 }
572 case PRISM20:
573 {
574 nodes[18] = Point (1/Real(3),1/Real(3),-1);
575 nodes[19] = Point (1/Real(3),1/Real(3),1);
576 libmesh_fallthrough();
577 }
578 case PRISM18:
579 {
580 nodes[15] = Point (.5,0.,0.);
581 nodes[16] = Point (.5,.5,0.);
582 nodes[17] = Point (0.,.5,0.);
583 libmesh_fallthrough();
584 }
585 case PRISM15:
586 {
587 nodes[6] = Point (.5,0.,-1.);
588 nodes[7] = Point (.5,.5,-1.);
589 nodes[8] = Point (0.,.5,-1.);
590 nodes[9] = Point (0.,0.,0.);
591 nodes[10] = Point (1.,0.,0.);
592 nodes[11] = Point (0.,1.,0.);
593 nodes[12] = Point (.5,0.,1.);
594 nodes[13] = Point (.5,.5,1.);
595 nodes[14] = Point (0.,.5,1.);
596 libmesh_fallthrough();
597 }
598 case PRISM6:
599 {
600 nodes[0] = Point (0.,0.,-1.);
601 nodes[1] = Point (1.,0.,-1.);
602 nodes[2] = Point (0.,1.,-1.);
603 nodes[3] = Point (0.,0.,1.);
604 nodes[4] = Point (1.,0.,1.);
605 nodes[5] = Point (0.,1.,1.);
606 return;
607 }
608 case PYRAMID18:
609 {
610 // triangle centers
611 nodes[14] = Point (0., -2/Real(3),1/Real(3));
612 nodes[15] = Point (2/Real(3),0.,1/Real(3));
613 nodes[16] = Point (0.,2/Real(3),1/Real(3));
614 nodes[17] = Point (-2/Real(3),0.,1/Real(3));
615
616 libmesh_fallthrough();
617 }
618 case PYRAMID14:
619 {
620 // base center
621 nodes[13] = Point (0.,0.,0.);
622
623 libmesh_fallthrough();
624 }
625 case PYRAMID13:
626 {
627 // base midedge
628 nodes[5] = Point (0.,-1.,0.);
629 nodes[6] = Point (1.,0.,0.);
630 nodes[7] = Point (0.,1.,0.);
631 nodes[8] = Point (-1,0.,0.);
632
633 // lateral midedge
634 nodes[9] = Point (-.5,-.5,.5);
635 nodes[10] = Point (.5,-.5,.5);
636 nodes[11] = Point (.5,.5,.5);
637 nodes[12] = Point (-.5,.5,.5);
638
639 libmesh_fallthrough();
640 }
641 case PYRAMID5:
642 {
643 // base corners
644 nodes[0] = Point (-1.,-1.,0.);
645 nodes[1] = Point (1.,-1.,0.);
646 nodes[2] = Point (1.,1.,0.);
647 nodes[3] = Point (-1.,1.,0.);
648 // apex
649 nodes[4] = Point (0.,0.,1.);
650 return;
651 }
652
653 default:
654 libmesh_error_msg("ERROR: Unknown element type " << Utility::enum_to_string(itemType));
655 }
656}
657
658
659
660#ifdef LIBMESH_ENABLE_DEPRECATED
661bool FEAbstract::on_reference_element(const Point & p, const ElemType t, const Real eps)
662{
663 // Use Elem::on_reference_element() instead
664 libmesh_deprecated();
665
666 libmesh_assert_greater_equal (eps, 0.);
667
668 const Real xi = p(0);
669#if LIBMESH_DIM > 1
670 const Real eta = p(1);
671#else
672 const Real eta = 0.;
673#endif
674#if LIBMESH_DIM > 2
675 const Real zeta = p(2);
676#else
677 const Real zeta = 0.;
678#endif
679
680 switch (t)
681 {
682 case NODEELEM:
683 {
684 return (!xi && !eta && !zeta);
685 }
686 case EDGE2:
687 case EDGE3:
688 case EDGE4:
689 {
690 // The reference 1D element is [-1,1].
691 if ((xi >= -1.-eps) &&
692 (xi <= 1.+eps))
693 return true;
694
695 return false;
696 }
697
698
699 case TRI3:
700 case TRISHELL3:
701 case TRI6:
702 case TRI7:
703 {
704 // The reference triangle is isosceles
705 // and is bound by xi=0, eta=0, and xi+eta=1.
706 if ((xi >= 0.-eps) &&
707 (eta >= 0.-eps) &&
708 ((xi + eta) <= 1.+eps))
709 return true;
710
711 return false;
712 }
713
714
715 case QUAD4:
716 case QUADSHELL4:
717 case QUAD8:
718 case QUADSHELL8:
719 case QUAD9:
720 case QUADSHELL9:
721 {
722 // The reference quadrilateral element is [-1,1]^2.
723 if ((xi >= -1.-eps) &&
724 (xi <= 1.+eps) &&
725 (eta >= -1.-eps) &&
726 (eta <= 1.+eps))
727 return true;
728
729 return false;
730 }
731
732
733 case TET4:
734 case TET10:
735 case TET14:
736 {
737 // The reference tetrahedral is isosceles
738 // and is bound by xi=0, eta=0, zeta=0,
739 // and xi+eta+zeta=1.
740 if ((xi >= 0.-eps) &&
741 (eta >= 0.-eps) &&
742 (zeta >= 0.-eps) &&
743 ((xi + eta + zeta) <= 1.+eps))
744 return true;
745
746 return false;
747 }
748
749
750 case HEX8:
751 case HEX20:
752 case HEX27:
753 {
754 /*
755 if ((xi >= -1.) &&
756 (xi <= 1.) &&
757 (eta >= -1.) &&
758 (eta <= 1.) &&
759 (zeta >= -1.) &&
760 (zeta <= 1.))
761 return true;
762 */
763
764 // The reference hexahedral element is [-1,1]^3.
765 if ((xi >= -1.-eps) &&
766 (xi <= 1.+eps) &&
767 (eta >= -1.-eps) &&
768 (eta <= 1.+eps) &&
769 (zeta >= -1.-eps) &&
770 (zeta <= 1.+eps))
771 {
772 // libMesh::out << "Strange Point:\n";
773 // p.print();
774 return true;
775 }
776
777 return false;
778 }
779
780 case PRISM6:
781 case PRISM15:
782 case PRISM18:
783 case PRISM20:
784 case PRISM21:
785 {
786 // Figure this one out...
787 // inside the reference triangle with zeta in [-1,1]
788 if ((xi >= 0.-eps) &&
789 (eta >= 0.-eps) &&
790 (zeta >= -1.-eps) &&
791 (zeta <= 1.+eps) &&
792 ((xi + eta) <= 1.+eps))
793 return true;
794
795 return false;
796 }
797
798
799 case PYRAMID5:
800 case PYRAMID13:
801 case PYRAMID14:
802 case PYRAMID18:
803 {
804 // Check that the point is on the same side of all the faces
805 // by testing whether:
806 //
807 // n_i.(x - x_i) <= 0
808 //
809 // for each i, where:
810 // n_i is the outward normal of face i,
811 // x_i is a point on face i.
812 if ((-eta - 1. + zeta <= 0.+eps) &&
813 ( xi - 1. + zeta <= 0.+eps) &&
814 ( eta - 1. + zeta <= 0.+eps) &&
815 ( -xi - 1. + zeta <= 0.+eps) &&
816 ( zeta >= 0.-eps))
817 return true;
818
819 return false;
820 }
821
822#ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
823 case INFHEX8:
824 case INFHEX16:
825 case INFHEX18:
826 {
827 // The reference infhex8 is a [-1,1]^3.
828 if ((xi >= -1.-eps) &&
829 (xi <= 1.+eps) &&
830 (eta >= -1.-eps) &&
831 (eta <= 1.+eps) &&
832 (zeta >= -1.-eps) &&
833 (zeta <= 1.+eps))
834 {
835 return true;
836 }
837 return false;
838 }
839
840 case INFPRISM6:
841 case INFPRISM12:
842 {
843 // inside the reference triangle with zeta in [-1,1]
844 if ((xi >= 0.-eps) &&
845 (eta >= 0.-eps) &&
846 (zeta >= -1.-eps) &&
847 (zeta <= 1.+eps) &&
848 ((xi + eta) <= 1.+eps))
849 {
850 return true;
851 }
852
853 return false;
854 }
855#endif
856
857 default:
858 libmesh_error_msg("ERROR: Unknown element type " << Utility::enum_to_string(t));
859 }
860
861 // If we get here then the point is _not_ in the
862 // reference element. Better return false.
863
864 return false;
865}
866#endif // LIBMESH_ENABLE_DEPRECATED
867
868
869
870void FEAbstract::print_JxW(std::ostream & os) const
871{
872 this->_fe_map->print_JxW(os);
873}
874
875
876
877void FEAbstract::print_xyz(std::ostream & os) const
878{
879 this->_fe_map->print_xyz(os);
880}
881
882
883void FEAbstract::print_info(std::ostream & os) const
884{
885 os << "phi[i][j]: Shape function i at quadrature pt. j" << std::endl;
886 this->print_phi(os);
887
888 os << "dphi[i][j]: Shape function i's gradient at quadrature pt. j" << std::endl;
889 this->print_dphi(os);
890
891 os << "XYZ locations of the quadrature pts." << std::endl;
892 this->print_xyz(os);
893
894 os << "Values of JxW at the quadrature pts." << std::endl;
895 this->print_JxW(os);
896}
897
898
899std::ostream & operator << (std::ostream & os, const FEAbstract & fe)
900{
901 fe.print_info(os);
902 return os;
903}
904
905
906
907#ifdef LIBMESH_ENABLE_AMR
908
909#ifdef LIBMESH_ENABLE_NODE_CONSTRAINTS
911 const Elem * elem)
912{
913 libmesh_assert(elem);
914
915 const unsigned int Dim = elem->dim();
916
917 // Only constrain elements in 2,3D.
918 if (Dim == 1)
919 return;
920
921 // Only constrain active and ancestor elements
922 if (elem->subactive())
923 return;
924
925
926#ifdef LIBMESH_ENABLE_INFINITE_ELEMENTS
927 if (elem->infinite())
928 {
929 const FEType fe_t(elem->default_order(), FEMap::map_fe_type(*elem));
930
931 // expand the infinite_compute_constraint in its template-arguments.
932 switch(Dim)
933 {
934 case 2:
935 {
936 inf_fe_family_mapping_switch(2, inf_compute_node_constraints (constraints, elem) , ,; break;);
937 break;
938 }
939 case 3:
940 {
941 inf_fe_family_mapping_switch(3, inf_compute_node_constraints (constraints, elem) , ,; break;);
942 break;
943 }
944 default:
945 libmesh_error_msg("Invalid dim = " << Dim);
946 }
947 return;
948 }
949
950#endif
951 const FEFamily mapping_family = FEMap::map_fe_type(*elem);
952 const FEType fe_type(elem->default_side_order(), mapping_family);
953
954 // Pull objects out of the loop to reduce heap operations
955 std::vector<const Node *> my_nodes, parent_nodes;
956 std::unique_ptr<const Elem> my_side, parent_side;
957
958 // Look at the element faces. Check to see if we need to
959 // build constraints.
960 for (auto s : elem->side_index_range())
961 if (elem->neighbor_ptr(s) != nullptr &&
962 elem->neighbor_ptr(s) != remote_elem)
963 if (elem->neighbor_ptr(s)->level() < elem->level()) // constrain dofs shared between
964 { // this element and ones coarser
965 // than this element.
966 // Get pointers to the elements of interest and its parent.
967 const Elem * parent = elem->parent();
968
969 // This can't happen... Only level-0 elements have nullptr
970 // parents, and no level-0 elements can be at a higher
971 // level than their neighbors!
972 libmesh_assert(parent);
973
974 elem->build_side_ptr(my_side, s);
975 parent->build_side_ptr(parent_side, s);
976
977 const unsigned int n_side_nodes = my_side->n_nodes();
978
979 my_nodes.clear();
980 my_nodes.reserve (n_side_nodes);
981 parent_nodes.clear();
982 parent_nodes.reserve (n_side_nodes);
983
984 for (unsigned int n=0; n != n_side_nodes; ++n)
985 my_nodes.push_back(my_side->node_ptr(n));
986
987 for (unsigned int n=0; n != n_side_nodes; ++n)
988 parent_nodes.push_back(parent_side->node_ptr(n));
989
990 for (unsigned int my_side_n=0;
991 my_side_n < n_side_nodes;
992 my_side_n++)
993 {
994 // We can have an FE type that supports an order
995 // partially, such that sides do not support the same
996 // order. E.g. we say that a LAGRANGE PRISM21 supports
997 // "third" order to distinguish its shape functions from
998 // a PRISM18, but the QUAD9 sides will still only
999 // support second order.
1000 FEType side_fe_type = fe_type;
1001 const int side_max_order =
1002 FEInterface::max_order(fe_type, my_side->type());
1003
1004 if ((int)fe_type.order > side_max_order)
1005 side_fe_type.order = side_max_order;
1006
1007 // Do not use the p_level(), if any, that is inherited by the side.
1008 libmesh_assert_less
1009 (my_side_n,
1010 FEInterface::n_dofs(side_fe_type, /*extra_order=*/0,
1011 my_side.get()));
1012
1013 const Node * my_node = my_nodes[my_side_n];
1014
1015 // The support point of the DOF
1016 const Point & support_point = *my_node;
1017
1018 // Figure out where my node lies on their reference element.
1019 const Point mapped_point = FEMap::inverse_map(Dim-1,
1020 parent_side.get(),
1021 support_point);
1022
1023 // Compute the parent's side shape function values.
1024 for (unsigned int their_side_n=0;
1025 their_side_n < n_side_nodes;
1026 their_side_n++)
1027 {
1028 // Do not use the p_level(), if any, that is inherited by the side.
1029 libmesh_assert_less
1030 (their_side_n,
1031 FEInterface::n_dofs(side_fe_type,
1032 /*extra_order=*/0,
1033 parent_side.get()));
1034
1035 const Node * their_node = parent_nodes[their_side_n];
1036 libmesh_assert(their_node);
1037
1038 // Do not use the p_level(), if any, that is inherited by the side.
1039 const Real their_value = FEInterface::shape(side_fe_type,
1040 /*extra_order=*/0,
1041 parent_side.get(),
1042 their_side_n,
1043 mapped_point);
1044
1045 const Real their_mag = std::abs(their_value);
1046#ifdef DEBUG
1047 // Protect for the case u_i ~= u_j,
1048 // in which case i better equal j.
1049 if (their_mag > 0.999)
1050 {
1051 libmesh_assert_equal_to (my_node, their_node);
1052 libmesh_assert_less (std::abs(their_value - 1.), 0.001);
1053 }
1054 else
1055#endif
1056 // To make nodal constraints useful for constructing
1057 // sparsity patterns faster, we need to get EVERY
1058 // POSSIBLE constraint coupling identified, even if
1059 // there is no coupling in the isoparametric
1060 // Lagrange case.
1061 if (their_mag < 1.e-5)
1062 {
1063 // since we may be running this method concurrently
1064 // on multiple threads we need to acquire a lock
1065 // before modifying the shared constraint_row object.
1066 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
1067
1068 // A reference to the constraint row.
1069 NodeConstraintRow & constraint_row = constraints[my_node].first;
1070
1071 constraint_row.emplace(their_node, 0.);
1072 }
1073 // To get nodal coordinate constraints right, only
1074 // add non-zero and non-identity values for Lagrange
1075 // basis functions.
1076 else // (1.e-5 <= their_mag <= .999)
1077 {
1078 // since we may be running this method concurrently
1079 // on multiple threads we need to acquire a lock
1080 // before modifying the shared constraint_row object.
1081 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
1082
1083 // A reference to the constraint row.
1084 NodeConstraintRow & constraint_row = constraints[my_node].first;
1085
1086 constraint_row.emplace(their_node, their_value);
1087 }
1088 }
1089 }
1090 }
1091}
1092
1093#endif // LIBMESH_ENABLE_NODE_CONSTRAINTS
1094
1095#endif // #ifdef LIBMESH_ENABLE_AMR
1096
1097
1098
1099#ifdef LIBMESH_ENABLE_PERIODIC
1100
1101#ifdef LIBMESH_ENABLE_NODE_CONSTRAINTS
1103 const PeriodicBoundaries & boundaries,
1104 const MeshBase & mesh,
1105 const PointLocatorBase * point_locator,
1106 const Elem * elem)
1107{
1108 // Only bother if we truly have periodic boundaries
1109 if (boundaries.empty())
1110 return;
1111
1112 libmesh_assert(elem);
1113
1114 // Only constrain active elements with this method
1115 if (!elem->active())
1116 return;
1117
1118 const unsigned int Dim = elem->dim();
1119
1120 const FEFamily mapping_family = FEMap::map_fe_type(*elem);
1121 const FEType fe_type(elem->default_side_order(), mapping_family);
1122
1123 // Pull objects out of the loop to reduce heap operations
1124 std::vector<const Node *> my_nodes, neigh_nodes;
1125 std::unique_ptr<const Elem> my_side, neigh_side;
1126
1127 // Look at the element faces. Check to see if we need to
1128 // build constraints.
1129 std::vector<boundary_id_type> bc_ids;
1130 for (auto s : elem->side_index_range())
1131 {
1132 if (elem->neighbor_ptr(s))
1133 continue;
1134
1135 mesh.get_boundary_info().boundary_ids (elem, s, bc_ids);
1136 for (const auto & boundary_id : bc_ids)
1137 {
1138 const PeriodicBoundaryBase * periodic = boundaries.boundary(boundary_id);
1139 if (periodic)
1140 {
1141 libmesh_assert(point_locator);
1142
1143 // Get pointers to the element's neighbor.
1144 unsigned int s_neigh;
1145 const Elem * neigh = boundaries.neighbor(boundary_id, *point_locator, elem, s, &s_neigh);
1146
1147 libmesh_error_msg_if
1148 (!neigh, "PeriodicBoundaries can't find a periodic neighbor for element " <<
1149 elem->id() << " side " << s);
1150
1151 // h refinement constraints:
1152 // constrain dofs shared between
1153 // this element and ones as coarse
1154 // as or coarser than this element.
1155 if (neigh->level() <= elem->level())
1156 {
1157#ifdef LIBMESH_ENABLE_AMR
1158 libmesh_assert(neigh->active());
1159#endif // #ifdef LIBMESH_ENABLE_AMR
1160
1161 elem->build_side_ptr(my_side, s);
1162 neigh->build_side_ptr(neigh_side, s_neigh);
1163
1164 const unsigned int n_side_nodes = my_side->n_nodes();
1165
1166 my_nodes.clear();
1167 my_nodes.reserve (n_side_nodes);
1168 neigh_nodes.clear();
1169 neigh_nodes.reserve (n_side_nodes);
1170
1171 for (unsigned int n=0; n != n_side_nodes; ++n)
1172 my_nodes.push_back(my_side->node_ptr(n));
1173
1174 for (unsigned int n=0; n != n_side_nodes; ++n)
1175 neigh_nodes.push_back(neigh_side->node_ptr(n));
1176
1177 // Make sure we're not adding recursive constraints
1178 // due to the redundancy in the way we add periodic
1179 // boundary constraints, or adding constraints to
1180 // nodes that already have AMR constraints
1181 std::vector<bool> skip_constraint(n_side_nodes, false);
1182
1183 for (unsigned int my_side_n=0;
1184 my_side_n < n_side_nodes;
1185 my_side_n++)
1186 {
1187 // Do not use the p_level(), if any, that is inherited by the side.
1188 libmesh_assert_less (my_side_n, FEInterface::n_dofs(fe_type, /*extra_order=*/0, my_side.get()));
1189
1190 const Node * my_node = my_nodes[my_side_n];
1191
1192 // If we've already got a constraint on this
1193 // node, then the periodic constraint is
1194 // redundant
1195 {
1196 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
1197
1198 if (constraints.count(my_node))
1199 {
1200 skip_constraint[my_side_n] = true;
1201 continue;
1202 }
1203 }
1204
1205 // Compute the neighbors's side shape function values.
1206 for (unsigned int their_side_n=0;
1207 their_side_n < n_side_nodes;
1208 their_side_n++)
1209 {
1210 // Do not use the p_level(), if any, that is inherited by the side.
1211 libmesh_assert_less (their_side_n, FEInterface::n_dofs(fe_type, /*extra_order=*/0, neigh_side.get()));
1212
1213 const Node * their_node = neigh_nodes[their_side_n];
1214
1215 // If there's a constraint on an opposing node,
1216 // we need to see if it's constrained by
1217 // *our side* making any periodic constraint
1218 // on us recursive
1219 {
1220 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
1221
1222 if (!constraints.count(their_node))
1223 continue;
1224
1225 const NodeConstraintRow & their_constraint_row =
1226 constraints[their_node].first;
1227
1228 for (unsigned int orig_side_n=0;
1229 orig_side_n < n_side_nodes;
1230 orig_side_n++)
1231 {
1232 // Do not use the p_level(), if any, that is inherited by the side.
1233 libmesh_assert_less (orig_side_n, FEInterface::n_dofs(fe_type, /*extra_order=*/0, my_side.get()));
1234
1235 const Node * orig_node = my_nodes[orig_side_n];
1236
1237 if (their_constraint_row.count(orig_node))
1238 skip_constraint[orig_side_n] = true;
1239 }
1240 }
1241 }
1242 }
1243 for (unsigned int my_side_n=0;
1244 my_side_n < n_side_nodes;
1245 my_side_n++)
1246 {
1247 // Do not use the p_level(), if any, that is inherited by the side.
1248 libmesh_assert_less (my_side_n, FEInterface::n_dofs(fe_type, /*extra_order=*/0, my_side.get()));
1249
1250 if (skip_constraint[my_side_n])
1251 continue;
1252
1253 const Node * my_node = my_nodes[my_side_n];
1254
1255 // Figure out where my node lies on their reference element.
1256 const Point neigh_point = periodic->get_corresponding_pos(*my_node);
1257
1258 // Figure out where my node lies on their reference element.
1259 const Point mapped_point =
1260 FEMap::inverse_map(Dim-1, neigh_side.get(),
1261 neigh_point);
1262
1263 for (unsigned int their_side_n=0;
1264 their_side_n < n_side_nodes;
1265 their_side_n++)
1266 {
1267 // Do not use the p_level(), if any, that is inherited by the side.
1268 libmesh_assert_less (their_side_n, FEInterface::n_dofs(fe_type, /*extra_order=*/0, neigh_side.get()));
1269
1270 const Node * their_node = neigh_nodes[their_side_n];
1271 libmesh_assert(their_node);
1272
1273 // Do not use the p_level(), if any, that is inherited by the side.
1274 const Real their_value = FEInterface::shape(fe_type,
1275 /*extra_order=*/0,
1276 neigh_side.get(),
1277 their_side_n,
1278 mapped_point);
1279
1280 // since we may be running this method concurrently
1281 // on multiple threads we need to acquire a lock
1282 // before modifying the shared constraint_row object.
1283 {
1284 Threads::spin_mutex::scoped_lock lock(Threads::spin_mtx);
1285
1286 NodeConstraintRow & constraint_row =
1287 constraints[my_node].first;
1288
1289 constraint_row.emplace(their_node, their_value);
1290 }
1291 }
1292 }
1293 }
1294 }
1295 }
1296 }
1297}
1298#endif // LIBMESH_ENABLE_NODE_CONSTRAINTS
1299
1300#endif // LIBMESH_ENABLE_PERIODIC
1301
1302
1304{
1305 if (this->shapes_on_quadrature)
1306 {
1307 libmesh_assert(this->qrule);
1308 libmesh_assert_equal_to(this->qrule->n_points(),
1309 this->_n_total_qp);
1310 }
1311 return this->_n_total_qp;
1312}
1313
1314} // namespace libMesh
unsigned int dim
dof_id_type id() const
Definition dof_object.h:833
This is the base class from which all geometric element types are derived.
Definition elem.h:96
bool active() const
Definition elem.h:3079
const Elem * parent() const
Definition elem.h:3168
virtual Order default_order() const =0
virtual unsigned short dim() const =0
unsigned int level() const
Definition elem.h:3212
static constexpr unsigned int type_to_n_nodes_map[INVALID_ELEM]
This array maps the integer representation of the ElemType enum to the number of nodes in the element...
Definition elem.h:664
virtual Order default_side_order() const
Definition elem.h:1110
bool subactive() const
Definition elem.h:3097
const Elem * neighbor_ptr(unsigned int i) const
Definition elem.h:2736
virtual bool infinite() const =0
IntRange< unsigned short > side_index_range() const
Definition elem.h:2848
virtual std::unique_ptr< Elem > build_side_ptr(const unsigned int i)=0
This class forms the foundation from which generic finite elements may be derived.
std::unique_ptr< FEMap > _fe_map
virtual ~FEAbstract()
Destructor.
FEAbstract(const unsigned int dim, const FEType &fet)
Constructor.
Definition fe_abstract.C:47
FEType fe_type
The finite element type for this object.
const unsigned int dim
The dimensionality of the object.
static void compute_node_constraints(NodeConstraints &constraints, const Elem *elem)
Computes the nodal constraint contributions (for non-conforming adapted meshes), using Lagrange geome...
void print_JxW(std::ostream &os) const
Prints the Jacobian times the weight for each quadrature point.
bool shapes_on_quadrature
A flag indicating if current data structures correspond to quadrature rule points.
virtual void print_dphi(std::ostream &os) const =0
Prints the value of each shape function's derivative at each quadrature point.
static void compute_periodic_node_constraints(NodeConstraints &constraints, const PeriodicBoundaries &boundaries, const MeshBase &mesh, const PointLocatorBase *point_locator, const Elem *elem)
Computes the node position constraint equation contributions (for meshes with periodic boundary condi...
virtual unsigned int n_quadrature_points() const
QBase * qrule
A pointer to the quadrature rule employed.
static bool on_reference_element(const Point &p, const ElemType t, const Real eps=TOLERANCE)
static std::unique_ptr< FEAbstract > build(const unsigned int dim, const FEType &type)
Builds a specific finite element type.
Definition fe_abstract.C:78
virtual void print_phi(std::ostream &os) const =0
Prints the value of each shape function at each quadrature point.
unsigned int _n_total_qp
The total number of quadrature points for the current configuration.
void print_xyz(std::ostream &os) const
Prints the spatial location of each quadrature point (on the physical element).
void print_info(std::ostream &os) const
Prints all the relevant information about the current element.
static void get_refspace_nodes(const ElemType t, std::vector< Point > &nodes)
static Real shape(const unsigned int dim, const FEType &fe_t, const ElemType t, const unsigned int i, const Point &p)
static unsigned int n_dofs(const unsigned int dim, const FEType &fe_t, const ElemType t)
static unsigned int max_order(const FEType &fe_t, const ElemType &el_t)
Class contained in FE that encapsulates mapping (i.e.
Definition fe_map.h:48
static FEFamily map_fe_type(const Elem &elem)
Definition fe_map.C:46
static Point inverse_map(const unsigned int dim, const Elem *elem, const Point &p, const Real tolerance=TOLERANCE, const bool secure=true, const bool extra_checks=true)
Definition fe_map.C:1512
class FEType hides (possibly multiple) FEFamily and approximation orders, thereby enabling specialize...
Definition fe_type.h:197
OrderWrapper order
The approximation order of the element (at 0 p-refinement level).
Definition fe_type.h:203
FEFamily family
The type of finite element.
Definition fe_type.h:228
This is the MeshBase class.
Definition mesh_base.h:81
The Node constraint storage format.
Definition dof_map.h:160
A Node is like a Point, but with more information.
Definition node.h:55
We're using a class instead of a typedef to allow forward declarations and future flexibility.
PeriodicBoundaryBase * boundary(boundary_id_type id)
const Elem * neighbor(boundary_id_type boundary_id, const PointLocatorBase &point_locator, const Elem *e, unsigned int side, unsigned int *neigh_side=nullptr) const
The base class for defining periodic boundaries.
virtual Point get_corresponding_pos(const Point &pt) const =0
This function should be overridden by derived classes to define how one finds corresponding nodes on ...
This is the base class for point locators.
A Point defines a location in LIBMESH_DIM dimensional Real space.
Definition point.h:41
unsigned int n_points() const
Definition quadrature.h:131
MeshBase & mesh
spin_mutex spin_mtx
A convenient spin mutex object which can be used for obtaining locks.
Definition threads.C:30
std::string enum_to_string(const T e)
The libMesh namespace provides an interface to certain functionality in the library.
std::map< const Node *, Real, std::less< const Node * >, Threads::scalable_allocator< std::pair< const Node *const, Real > > > NodeConstraintRow
A row of the Node constraint mapping.
Definition dof_map.h:148
ElemType
Defines an enum for geometric element types.
libmesh_assert(ctx)
std::ostream & operator<<(std::ostream &os, const OrderWrapper &order)
Overload stream operators.
Definition fe_type.h:182
const unsigned int invalid_uint
A number which is used quite often to represent an invalid or uninitialized value for an unsigned int...
Definition libmesh.h:303
const RemoteElem * remote_elem
Definition remote_elem.C:57
@ L2_RAVIART_THOMAS
@ L2_HIERARCHIC_VEC
@ RATIONAL_BERNSTEIN
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const dof_id_type n_nodes
Definition tecplot_io.C:67