MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
fe_ser.hpp
Go to the documentation of this file.
1// Copyright (c) 2010-2024, 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 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
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
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:227
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:136
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
H1Ser_QuadrilateralElement(const int p)
Construct the H1Ser_QuadrilateralElement of order p.
Definition fe_ser.cpp:22
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:656
Vector data type.
Definition vector.hpp:80
real_t p(const Vector &x, real_t t)