FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
slip_filter_assembler.hpp
1// FEAT3: Finite Element Analysis Toolbox, Version 3
2// Copyright (C) 2010 by Stefan Turek & the FEAT group
3// FEAT3 is released under the GNU General Public License version 3,
4// see the file 'copyright.txt' in the top level directory for details.
5
6#pragma once
7
8// includes, FEAT
9#include <kernel/assembly/base.hpp>
10#include <kernel/assembly/unit_filter_assembler.hpp>
11#include <kernel/lafem/slip_filter.hpp>
12#include <kernel/lafem/sparse_vector_blocked.hpp>
13#include <kernel/geometry/mesh_node.hpp>
14#include <kernel/geometry/intern/face_index_mapping.hpp>
15#include <kernel/space/lagrange1/element.hpp>
16#include <kernel/space/lagrange2/element.hpp>
17
18// includes, system
19#include <vector>
20#include <algorithm>
21
22namespace FEAT
23{
24 namespace Assembly
25 {
26
28 namespace Intern
29 {
30 template<typename Space_, int shape_dim_ = Space_::shape_dim>
31 class Lagrange2InterpolatorWrapper;
32 }
34
60 template<typename Trafo_>
62 {
63 public:
65 typedef Trafo_ TrafoType;
67 typedef typename TrafoType::MeshType MeshType;
69 typedef typename MeshType::ShapeType ShapeType;
71 // i.e. Simplex<2> faces for a Simplex<3> mesh
72 typedef typename Shape::FaceTraits<ShapeType, ShapeType::dimension - 1>::ShapeType FacetType;
73
75 static constexpr int facet_dim = ShapeType::dimension-1;
77 static constexpr int world_dim = MeshType::world_dim;
78
80 //static constexpr int nvt_loc = TrafoType::num_coeff_facet;
82
84 typedef typename MeshType::CoordType CoordType;
85
107 static void compute_orientations(CoordType* orientation, const Index* facets, const MeshType& mesh)
108 {
109 // Various index sets for the parent
110 const auto& idx_vert_at_facet(mesh.template get_index_set<facet_dim, 0>());
111 const auto& idx_vert_at_shape(mesh.template get_index_set<ShapeType::dimension, 0>());
112 const auto& idx_facet_at_shape(mesh.template get_index_set<ShapeType::dimension, facet_dim>());
113
114 // This will contain the local vertex indices in the reference cell numbering
115 typename MeshType::template IndexSet<facet_dim, 0>::Type::IndexTupleType reference_numbering;
116 // This will contain the local vertex indices as they are numbered in the mesh
117 typename MeshType::template IndexSet<facet_dim, 0>::Type::IndexTupleType my_numbering;
118 Index num_elements = mesh.get_num_elements();
119
120 // Go check all cells in the mesh
121 FEAT_PRAGMA_OMP(parallel for)
122 for(Index k = 0; k < num_elements; ++k)
123 {
124 // Check all facets
125 for(int l(0); l < Shape::FaceTraits<ShapeType, facet_dim>::count; ++l)
126 {
127 // Index of the l-th facet in the parent mesh
128 Index parent_l(idx_facet_at_shape[k][l]);
129
130 // If the facet is in the meshpart ...
131 if(facets[parent_l] != ~Index(0))
132 {
133 // ... check the numbering
134 for(int i(0); i < nvt_loc; ++i)
135 {
136 // The FaceIndexMapping gives us the reference cell numbering of the facet
137 int j(Geometry::Intern::FaceIndexMapping<ShapeType, facet_dim, 0>::map(l,i));
138 reference_numbering[i] = idx_vert_at_shape[k][j];
139
140 // This is how the facet is numbered in the mesh
141 my_numbering[i] = idx_vert_at_facet[parent_l][i];
142 }
143
144 // Get the orientation code. This describes if the facet given by my_numbering is a rotation of the
145 // reference facet or a rotation of an inverted reference facet
146 int orientation_code = Geometry::Intern::CongruencySampler<FacetType>::compare(reference_numbering, my_numbering);
147
148 // The orientation of the facet is the (possibly inverted) orientation of the appropriate facet in
149 // the reference cell
150 orientation[parent_l] = CoordType(
151 Geometry::Intern::CongruencySampler<FacetType>::orientation(orientation_code)
153 }
154 } // facets
155 } // cells
156 } // compute_orientations
157
187 template<typename VectorType_, typename TrafoType_>
189 VectorType_& nu,
190 const Index* facets,
191 const CoordType* orientation,
192 const TrafoType_& trafo)
193 {
194 typedef typename VectorType_::DataType DataType;
195 typedef typename VectorType_::IndexType IndexType;
196 typedef typename VectorType_::ValueType ValueType;
197
198 //nu.format(DataType(0));
199 // Vertex at facet index set from the parent
200 const auto& idx(trafo.get_mesh().template get_index_set<facet_dim,0>());
201 // Temporary vector for holding one normal at a time
202 //Tiny::Vector<DataType, world_dim> tmp(DataType(0));
203
204 std::map<IndexType, ValueType> nu_map;
205
206 // create a facet trafo evaluator
207 typename TrafoType_::template Evaluator<FacetType, CoordType>::Type facet_evaluator(trafo);
208
209 // For every cell in the meshpart, compute the outer normal vectors in all local Lagrange points of the
210 // element's transformation
211 for(Index k(0); k < trafo.get_mesh().get_num_entities(facet_dim); ++k)
212 {
213 if(facets[k] != ~Index(0) )
214 {
215 facet_evaluator.prepare(k);
216 CoordType vol = facet_evaluator.volume();
217 facet_evaluator.finish();
218 //CoordType vol(trafo.template compute_vol<FacetType>(k));
219
220 // Compute all normals
222
223 // Add the local contributions to the vector that is numbered according to the parent
224 for(int l(0); l < nvt_loc; ++l)
225 {
226 //tmp = nu(idx[k][l]) + nu_loc[l]*DataType(orientation[k]*vol);
227 //nu(idx[k][l], tmp);
228 auto it = nu_map.find(IndexType(idx[k][l]));
229 if(it != nu_map.end())
230 (it->second) += DataType(orientation[k]*vol) * nu_loc[l];
231 else
232 nu_map.emplace(IndexType(idx[k][l]), DataType(orientation[k]*vol) * nu_loc[l]);
233 }
234 }
235 }
236
237 // create normal vector
238 nu = VectorType_(trafo.get_mesh().get_num_vertices(), nu_map.size());
239 {
240 Memory::TypedView<IndexType> nu_idx = nu.indices_view_w();
241 Memory::TypedView<ValueType> nu_val = nu.elements_view_w();
242 auto it = nu_map.begin();
243 auto it_end = nu_map.end();
244 for(Index i = 0; it != it_end; ++i, ++it)
245 {
246 nu_idx[i] = it->first;
247 nu_val[i] = it->second;
248 }
249 }
250
252 //for(Index i(0); i < nu.num_nzes(); ++i)
253 //{
254 // Index j(nu.indices()[i]);
255 // tmp = nu(j);
256 // tmp.normalize();
257
258 // nu(j,tmp);
259 //}
260 } // compute_outer_unit_normal
261
272 template<typename TrafoType_>
274 {
275 // Evaluator on Faces
276 typedef typename TrafoType_::template Evaluator<FacetType, CoordType>::Type FaceEvaluator;
277 // Type of the Jacobian it returns
278 typedef typename FaceEvaluator::JacobianMatrixType JacobianMatrixType;
279
280 // Evaluator for the trafo
281 FaceEvaluator trafo_eval(trafo);
282 trafo_eval.prepare(k);
283
284 // This will be the coordinates of the Lagrange points on the reference cell the face is parametrized over
285 Tiny::Matrix<CoordType, nvt_loc, ShapeType::dimension - 1> xloc(CoordType(0));
286 for(int i(0); i < nvt_loc; ++i)
287 {
288 for(int d(0); d < ShapeType::dimension - 1 ; ++d)
289 xloc(i,d) = Shape::ReferenceCell<FacetType>::template vertex<CoordType>(i,d);
290 }
291
292 // The Jacobian matrix of the transformation
293 JacobianMatrixType jac_mat;
294 // This will hold the local tangential surface coordinate system at one Lagrange point of the local face
295 Tiny::Matrix<CoordType, MeshType::world_dim-1, MeshType::world_dim> tau(CoordType(0));
296
297 // This will hold the oriented unit normal vector for all Lagrange points of the face
299 for(int i(0); i < nvt_loc; ++i)
300 {
301 tau.format();
302
303 // Compute the tangential vectors at the Lagrange points: They are the gradients wrt. the parametrization
304 // of the transformation evaluated in the Lagrange points
305 trafo_eval.calc_jac_mat(jac_mat, xloc[i]);
306
307 // Now write the cross product of the tangentials into nu[i]
308 nu[i] = Tiny::orthogonal(jac_mat);
309 // Normalize nu
310 nu[i].normalize();
311 }
312
313 return nu;
314
315 } // compute_oriented_normals
316
317 }; // struct OuterNormalComputer
318
332 template<typename Trafo_>
334 {
335 public:
337 typedef Trafo_ TrafoType;
339 typedef typename TrafoType::MeshType MeshType;
341 typedef typename MeshType::CoordType CoordType;
343 typedef typename Geometry::TargetSetHolder<typename MeshType::ShapeType> TargetSetHolderType;
345 static constexpr int facet_dim = MeshType::shape_dim-1;
347 static constexpr int world_dim = MeshType::world_dim;
348
349 private:
353 std::vector<Index> _facets;
355 std::vector<CoordType> _orientation;
359 Index _num_entities[MeshType::shape_dim+1];
362
363 public:
373 explicit SlipFilterAssembler(const TrafoType& trafo) :
374 _trafo(trafo),
375 _facets(trafo.get_mesh().get_num_entities(facet_dim), ~Index(0)),
376 _orientation(trafo.get_mesh().get_num_entities(facet_dim), CoordType(0)),
377 _recompute(false),
379 {
380 for(int i(0); i < MeshType::shape_dim+1; ++i)
381 _num_entities[i] = Index(0);
382 }
383
390
395 {
396 }
397
408 {
409 // Adding a MeshPart changes the structures
410 this->_recompute = true;
411 const auto& facet_target(meshpart.template get_target_set<facet_dim>());
412
413 for(Index l(0); l < facet_target.get_num_entities(); l++)
414 {
415 // Add the new facet if it is not already there
416 if(_facets[facet_target[l]] == ~Index(0))
417 {
418 _facets[facet_target[l]] = _num_entities[facet_dim];
420 }
421 }
422 }
423
432 {
433 // We know how many facets we have from add_mesh_part
435
436 auto& facet_targets = _target_set_holder.template get_target_set<facet_dim>();
437
438 // Copy the facet information from the marker array
439 for(Index l(0); l < mesh.get_num_entities(facet_dim); ++l)
440 {
441 if(_facets[l] != ~Index(0))
442 facet_targets[_facets[l]] = l;
443 }
444
445 // Now we deduct the vertices/edges/whatever at the slip boundary from the facet target mapping
446 Geometry::Intern::template TargetSetComputer<facet_dim, 0>::top_to_bottom(
447 _target_set_holder, mesh.get_index_set_holder());
448
449 // Update num_entities information from the possibly modified _target_set_holder
450 for(int d(0); d <= facet_dim; ++d)
451 _num_entities[d] = _target_set_holder.get_num_entities(d);
452 }
453
472 template<typename DataType_, typename IndexType_>
474 {
475 // Allocate the filter if necessary
476 if(filter.get_nu().size() == Index(0))
477 {
479 (space.get_trafo().get_mesh().get_num_entities(0), space.get_num_dofs(), Index(0));
480 }
481
482 // Compute orientations if necessary
483 if(_recompute)
484 {
486 }
487
488 // Compute the weighted outer unit normal field
490 filter.get_nu(), _facets.data(), _orientation.data(), space.get_trafo());
491
492 // Generate the filter vector. For the Lagrange 1 with standard trafo case, this is just a clone operation
493 filter.get_filter_vector().clone(filter.get_nu());
494 }
495
521 template<typename DataType_, typename IndexType_>
523 {
524 typedef Space::Lagrange2::Element<Trafo_> SpaceType;
525
526 // The mesh the FE space lives on
527 const auto& mesh = space.get_trafo().get_mesh();
528
529 // Allocate the filter if necessary
530 if(filter.get_nu().empty())
531 {
532 filter = LAFEM::SlipFilter<DataType_, IndexType_, world_dim>(mesh.get_num_entities(0), space.get_num_dofs(), Index(0));
533 }
534
535 // Compute orientations if necessary
536 if(_recompute)
537 {
538 recompute_target_set_holder(space.get_trafo().get_mesh());
540 }
541
542 // Compute the weighted outer unit normal field
544 filter.get_nu(), _facets.data(), _orientation.data(), space.get_trafo());
545
546 // We only have something to do if the filter is not empty after recompute_target_set_holder()
547 if(filter.get_nu().num_nzes() > Index(0))
548 {
549 Intern::Lagrange2InterpolatorWrapper<SpaceType>::project(
550 filter.get_filter_vector(), filter.get_nu(), space, &_target_set_holder);
551
552 // re-normalize
553 {
554 auto nu = filter.get_nu().elements_view_rw();
555 for(Index i(0); i < filter.num_nzes(); ++i)
556 nu[i].normalize();
557 }
558 }
559 }
560 }; // class SlipFilterAssembler
561
563 namespace Intern
564 {
565 /*
566 * This is a hackish implementation of a Lagrange 1 to Lagrange 2 interpolator and mostly copied from
567 * interpolator.hpp. The critical thing is that it requires the application of node functionals of one space
568 * to FE functions from another space, so in general this will not be well-defined (like applying Q2 node
569 * functionals (which are point evaluations) to Q1~ functions (which are not continuous). In the case of
570 * conforming Lagrange elements, it is well-defined however, and implemented below.
571 */
572 template<typename Vector_, typename Space_, int shape_dim_>
573 struct Lagrange2InterpolatorCore
574 {
575 public:
576 template< typename TSH_>
577 static void project(Vector_& lagrange_2_vector, const Vector_& lagrange_1_vector, const Space_& space, const TSH_* tsh)
578 {
579 typedef typename Vector_::DataType DataType;
580 typedef typename Vector_::IndexType IndexType;
581 typedef typename Vector_::ValueType ValueType;
582
583 // define dof assignment
584 typedef typename Space_::template DofAssignment<shape_dim_, DataType>::Type DofAssignType;
585 DofAssignType dof_assign(space);
586
587 // skip empty dof assignments
588 if(dof_assign.get_max_assigned_dofs() < 1)
589 return;
590
591 // Vertex at shape index set
592 auto& idx(space.get_trafo().get_mesh().template get_index_set<shape_dim_, 0>());
593 const auto l1_idx = lagrange_1_vector.indices_view_r();
594 const auto l1_val = lagrange_1_vector.elements_view_r();
595 const auto* l1_beg = l1_idx.get_r();
596 const auto* l1_end = l1_beg + lagrange_1_vector.num_nzes();
598
599 // loop over all entities
600 if(tsh == nullptr)
601 {
602 const Index num_shapes = space.get_mesh().get_num_entities(shape_dim_);
603
604 for(Index shape(0); shape < num_shapes; ++shape)
605 {
606 ValueType tmp(DataType(0));
607
608 // evaluate the "node functional"
609 for(int j(0); j < idx.get_num_indices(); ++j)
610 {
611 auto it = std::lower_bound(l1_beg, l1_end, idx(shape, j));
612 XASSERTM(it != l1_end, "vertex index not found in Lagrange-1 nu vector");
613 tmp += l1_val[Index(it - l1_beg)];
614 }
615
616 tmp *= DataType(1)/DataType(idx.get_num_indices());
617 tmp.normalize();
618
619 // prepare dof-assignment
620 dof_assign.prepare(shape);
621
622 // loop over all contributions
623 Index dof_index(dof_assign.get_index(0));
624 l2_factory.add(dof_index, tmp);
625
626 // finish
627 dof_assign.finish();
628 }
629 }
630 else
631 {
632 auto& ts = tsh->template get_target_set<shape_dim_>();
633
634 // loop over all entities
635 const Index num_shapes = ts.get_num_entities();
636
637 for(Index shape(0); shape < num_shapes; ++shape)
638 {
639 ValueType tmp(DataType(0));
640
641 // evaluate the "node functional"
642 for(int j(0); j < idx.get_num_indices(); ++j)
643 {
644 auto it = std::lower_bound(l1_beg, l1_end, idx(ts[shape], j));
645 XASSERTM(it != l1_end, "vertex index not found in Lagrange-1 nu vector");
646 tmp += l1_val[Index(it - l1_beg)];
647 }
648
649 tmp *= DataType(1)/DataType(idx.get_num_indices());
650 tmp.normalize();
651
652 // prepare dof-assignment
653 dof_assign.prepare(ts[shape]);
654
655 // loop over all contributions
656 Index dof_index(dof_assign.get_index(0));
657 l2_factory.add(dof_index, tmp);
658
659 // finish
660 dof_assign.finish();
661 }
662 }
663
664 lagrange_2_vector = l2_factory.make_svb();
665 }
666 };
667
668 template<typename Vector_, typename Space_>
669 struct Lagrange2InterpolatorCore<Vector_, Space_, 0>
670 {
671 public:
672 template<typename TSH_>
673 static void project(Vector_& lagrange_2_vector, const Vector_& lagrange_1_vector, const Space_& space, const TSH_* tsh)
674 {
675 typedef typename Vector_::DataType DataType;
676 typedef typename Vector_::IndexType IndexType;
677 //typedef typename Vector_::ValueType ValueType;
678
679 // define dof assignment
680 typedef typename Space_::template DofAssignment<0, DataType>::Type DofAssignType;
681 DofAssignType dof_assign(space);
682
683 const auto l1_idx = lagrange_1_vector.indices_view_r();
684 const auto l1_val = lagrange_1_vector.elements_view_r();
685 const IndexType* l1_beg = l1_idx.get_r();
686 const IndexType* l1_end = l1_beg + lagrange_1_vector.num_nzes();
687 LAFEM::SparseVectorFactory<DataType, IndexType, Vector_::block_size> l2_factory(space.get_num_dofs());
688
689 if(tsh == nullptr)
690 {
691 // loop over all entities
692 const Index num_verts = space.get_mesh().get_num_entities(0);
693 for(Index vert(0); vert < num_verts; ++vert)
694 {
695 // prepare dof-assignment
696 dof_assign.prepare(vert);
697
698 // "loop over all contributions"
699 Index dof_index(dof_assign.get_index(0));
700
701 // evaluate the "node functional"
702 auto it = std::lower_bound(l1_beg, l1_end, vert);
703 XASSERTM(it != l1_end, "vertex index not found in Lagrange-1 nu vector");
704 l2_factory.add(dof_index, l1_val[Index(it - l1_beg)]);
705
706 // finish
707 dof_assign.finish();
708 }
709 }
710 else
711 {
712 auto& ts = tsh->template get_target_set<0>();
713 // loop over all entities
714 const Index num_verts = ts.get_num_entities();
715 for(Index vert(0); vert < num_verts; ++vert)
716 {
717 // prepare dof-assignment
718 dof_assign.prepare(ts[vert]);
719
720 // "loop over all contributions"
721 Index dof_index(dof_assign.get_index(0));
722
723 // evaluate the "node functional"
724 auto it = std::lower_bound(l1_beg, l1_end, ts[vert]);
725 XASSERTM(it != l1_end, "vertex index not found in Lagrange-1 nu vector");
726 l2_factory.add(dof_index, l1_val[Index(it - l1_beg)]);
727
728 // finish
729 dof_assign.finish();
730 }
731 }
732 lagrange_2_vector = l2_factory.make_svb();
733 }
734 };
735
736 template<typename Space_, int shape_dim_>
737 class Lagrange2InterpolatorWrapper
738 {
739 public:
740 template<typename Vector_, typename TSH_>
741 static void project(Vector_& lagrange_2_vector, const Vector_& lagrange_1_vector, const Space_& space, const TSH_* tsh)
742 {
743 // recurse down
744 Lagrange2InterpolatorWrapper<Space_, shape_dim_ - 1>::project(lagrange_2_vector, lagrange_1_vector, space, tsh);
745
746 // call interpolator core
747 Lagrange2InterpolatorCore<Vector_, Space_, shape_dim_>::project(lagrange_2_vector, lagrange_1_vector, space, tsh);
748 }
749 };
750
751 template<typename Space_>
752 class Lagrange2InterpolatorWrapper<Space_, 0>
753 {
754 public:
755 template<typename Vector_, typename TSH_>
756 static void project(Vector_& lagrange_2_vector, const Vector_& lagrange_1_vector, const Space_& space, const TSH_* tsh)
757 {
758 // call interpolator core
759 Lagrange2InterpolatorCore<Vector_, Space_, 0>::project(lagrange_2_vector, lagrange_1_vector, space, tsh);
760 }
761 };
762
763 } // namespace Intern
765
766 } //namespace Assembly
767} // namespace FEAT
#define XASSERTM(expr, msg)
Assertion macro definition with custom message.
Definition: assertion.hpp:263
Helper class that computes a weighted outer unit normal field.
MeshType::CoordType CoordType
Floating point type.
static void compute_orientations(CoordType *orientation, const Index *facets, const MeshType &mesh)
Computes facet orientations.
TrafoType::MeshType MeshType
The underlying mesh type.
static constexpr int facet_dim
The shape dimension of the boundary faces.
static constexpr int world_dim
The number of coordinates for each vertex.
Shape::FaceTraits< ShapeType, ShapeType::dimension-1 >::ShapeType FacetType
Shape of the facets that make up the boundary we want to compute the normals for,.
static Tiny::Matrix< CoordType, nvt_loc, MeshType::world_dim > compute_oriented_normals(const TrafoType_ &trafo, Index k)
Computes all oriented normals on one face.
Trafo_ TrafoType
Type for the transformation.
static constexpr int nvt_loc
The number of vertices that make up a Facet, i.e. 4 for a Hypercube<2>
MeshType::ShapeType ShapeType
Shape of the mesh's cells.
static void compute_outer_unit_normal(VectorType_ &nu, const Index *facets, const CoordType *orientation, const TrafoType_ &trafo)
Computes an outer unit normal field.
Contains routines to assemble slip filters.
virtual ~SlipFilterAssembler()
Virtual destructor.
SlipFilterAssembler(const TrafoType &trafo)
Constructor from mesh.
SlipFilterAssembler & operator=(SlipFilterAssembler &&)=delete
Explicitly delete the move assignment operator.
static constexpr int world_dim
The number of coordinates for each vertex.
bool _recompute
Flag when to recompute _facets and _orientation (i.e. if MeshParts get added)
void assemble(LAFEM::SlipFilter< DataType_, IndexType_, world_dim > &filter, const Space::Lagrange2::Element< Trafo_ > &space)
Assembles a homogeneous SlipFilter for a Lagrange 2 FE space.
void add_mesh_part(const Geometry::MeshPart< MeshType > &meshpart)
Adds a MeshPart to the assembler.
SlipFilterAssembler(SlipFilterAssembler &&)=delete
Explicitly delete the move constructor.
MeshType::CoordType CoordType
Floating point type.
Geometry::TargetSetHolder< typename MeshType::ShapeType > TargetSetHolderType
Type for the mapping of slip boundary entities to mesh entities.
std::vector< CoordType > _orientation
For every facet in the mesh, this is its orientation in the mesh.
TrafoType::MeshType MeshType
The mesh type.
static constexpr int facet_dim
shape dimension
void recompute_target_set_holder(const MeshType &mesh)
Recomputes the target mapping for geometric entities.
const TrafoType & _trafo
a reference to the trafo that we want to assemble on
std::vector< Index > _facets
Facets for the slip condition get marked by this.
Index _num_entities[MeshType::shape_dim+1]
Number of entities of various shape dimensions in the slip boundary represented by this filter.
void assemble(LAFEM::SlipFilter< DataType_, IndexType_, world_dim > &filter, const Space::Lagrange1::Element< Trafo_ > &space)
Assembles a homogeneous SlipFilter for a Lagrange 1 FE space.
SlipFilterAssembler(const SlipFilterAssembler &)=delete
Explicitly delete the copy constructor.
TargetSetHolderType _target_set_holder
Mapping of boundary entities to mesh entities (i.e. vertices, edges, facets)
Class template for partial meshes.
Definition: mesh_part.hpp:90
Slip Filter class template.
Definition: slip_filter.hpp:67
Factory for SparseVector and SparseVectorBlocked construction.
Typed memory view class.
TrafoType & get_trafo()
Returns a reference to the trafo.
Standard Lagrange-1 Finite-Element space class template.
Definition: element.hpp:39
Index get_num_dofs() const
Returns the number of dofs.
Definition: element.hpp:120
Standard Lagrange-2 Finite-Element space class template.
Definition: element.hpp:39
Index get_num_dofs() const
Returns the number of dofs.
Definition: element.hpp:121
Tiny Matrix class template.
Vector< T_, m_ > orthogonal(const Matrix< T_, m_, m_-1, sm_, sn_ > &tau)
Computes the positively oriented orthogonal vector to the columns of a m_ x (m_-1) Matrix.
FEAT namespace.
Definition: adjactor.hpp:12
std::uint64_t Index
Index data type.
@ jac_mat
specifies whether the trafo should supply jacobian matrices
Face traits tag struct template.
Definition: shape.hpp:106
Reference cell traits structure.
Definition: shape.hpp:230