MFEM  v4.5.1
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
fe_ser.hpp
Go to the documentation of this file.
1 // Copyright (c) 2010-2022, Lawrence Livermore National Security, LLC. Produced
2 // at the Lawrence Livermore National Laboratory. All Rights reserved. See files
3 // LICENSE and NOTICE for details. LLNL-CODE-806117.
4 //
5 // This file is part of the MFEM library. For more information and source code
6 // availability visit https://mfem.org.
7 //
8 // MFEM is free software; you can redistribute it and/or modify it under the
9 // terms of the BSD-3 license. We welcome feedback and contributions, see file
10 // CONTRIBUTING.md for details.
11 
12 #ifndef MFEM_FE_SERENDIPITY
13 #define MFEM_FE_SERENDIPITY
14 
15 #include "fe_base.hpp"
16 
17 namespace mfem
18 {
19 
20 /// Arbitrary order H1 serendipity elements in 2D on a quad
22 {
23 public:
24  /// Construct the H1Ser_QuadrilateralElement of order @a p
25  H1Ser_QuadrilateralElement(const int p);
26  virtual void CalcShape(const IntegrationPoint &ip, Vector &shape) const;
27  virtual void CalcDShape(const IntegrationPoint &ip,
28  DenseMatrix &dshape) const;
30  DenseMatrix &I) const;
32 };
33 
34 
35 } // namespace mfem
36 
37 #endif
virtual void GetLocalInterpolation(ElementTransformation &Trans, DenseMatrix &I) const
Return the local interpolation matrix I (Dof x Dof) where the fine element is the image of the base g...
Definition: fe_ser.cpp:231
virtual void Project(Coefficient &coeff, ElementTransformation &Trans, Vector &dofs) const
Given a coefficient and a transformation, compute its projection (approximation) in the local finite ...
Definition: fe_base.cpp:125
virtual void CalcShape(const IntegrationPoint &ip, Vector &shape) const
Evaluate the values of all shape functions of a scalar finite element in reference space at the given...
Definition: fe_ser.cpp:56
Data type dense matrix using column-major storage.
Definition: densemat.hpp:23
Class for finite elements with basis functions that return scalar values.
Definition: fe_base.hpp:629
virtual void CalcDShape(const IntegrationPoint &ip, DenseMatrix &dshape) const
Evaluate the gradients of all shape functions of a scalar finite element in reference space at the gi...
Definition: fe_ser.cpp:138
Class for integration point with weight.
Definition: intrules.hpp:25
Arbitrary order H1 serendipity elements in 2D on a quad.
Definition: fe_ser.hpp:21
H1Ser_QuadrilateralElement(const int p)
Construct the H1Ser_QuadrilateralElement of order p.
Definition: fe_ser.cpp:22
Vector data type.
Definition: vector.hpp:60