MFEM v4.8.0
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-2025, 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
17namespace mfem
18{
19
20/// Arbitrary order H1 serendipity elements in 2D on a quad
22{
23public:
24 /// Construct the H1Ser_QuadrilateralElement of order @a p
26 void CalcShape(const IntegrationPoint &ip, Vector &shape) const override;
27 void CalcDShape(const IntegrationPoint &ip,
28 DenseMatrix &dshape) const override;
30 DenseMatrix &I) const override;
32};
33
34
35} // namespace mfem
36
37#endif
Data type dense matrix using column-major storage.
Definition densemat.hpp:24
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:126
Arbitrary order H1 serendipity elements in 2D on a quad.
Definition fe_ser.hpp:22
void GetLocalInterpolation(ElementTransformation &Trans, DenseMatrix &I) const override
Return the local interpolation matrix I (Dof x Dof) where the fine element is the image of the base g...
Definition fe_ser.cpp:227
void CalcDShape(const IntegrationPoint &ip, DenseMatrix &dshape) const override
Evaluate the gradients of all shape functions of a scalar finite element in reference space at the gi...
Definition fe_ser.cpp:136
H1Ser_QuadrilateralElement(const int p)
Construct the H1Ser_QuadrilateralElement of order p.
Definition fe_ser.cpp:22
void CalcShape(const IntegrationPoint &ip, Vector &shape) const override
Evaluate the values of all shape functions of a scalar finite element in reference space at the given...
Definition fe_ser.cpp:56
Class for integration point with weight.
Definition intrules.hpp:35
Class for finite elements with basis functions that return scalar values.
Definition fe_base.hpp:662
Vector data type.
Definition vector.hpp:82
real_t p(const Vector &x, real_t t)