fe_clough_shape_3D.C
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2018 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 
19 // C++ includes
20 
21 // Local includes
22 #include "libmesh/fe.h"
23 #include "libmesh/elem.h"
24 
25 
26 // FIXME: 3D C1 finite elements are still a work in progress
27 
28 namespace libMesh
29 {
30 
31 
32 template <>
34  const Order,
35  const unsigned int,
36  const Point &)
37 {
38  libmesh_error_msg("Clough-Tocher elements require the real element \nto construct gradient-based degrees of freedom.");
39  return 0.;
40 }
41 
42 
43 
44 template <>
45 Real FE<3,CLOUGH>::shape(const Elem * libmesh_dbg_var(elem),
46  const Order,
47  const unsigned int,
48  const Point &)
49 {
50  libmesh_assert(elem);
51 
52  libmesh_not_implemented();
53  return 0.;
54 }
55 
56 
57 
58 template <>
60  const Order,
61  const unsigned int,
62  const unsigned int,
63  const Point &)
64 {
65  libmesh_error_msg("Clough-Tocher elements require the real element \nto construct gradient-based degrees of freedom.");
66  return 0.;
67 }
68 
69 
70 
71 template <>
72 Real FE<3,CLOUGH>::shape_deriv(const Elem * libmesh_dbg_var(elem),
73  const Order,
74  const unsigned int,
75  const unsigned int,
76  const Point &)
77 {
78  libmesh_assert(elem);
79  libmesh_not_implemented();
80  return 0.;
81 }
82 
83 
84 
85 template <>
86 Real FE<3,CLOUGH>::shape_second_deriv(const Elem * libmesh_dbg_var(elem),
87  const Order,
88  const unsigned int,
89  const unsigned int,
90  const Point &)
91 {
92  libmesh_assert(elem);
93  libmesh_not_implemented();
94  return 0.;
95 }
96 
97 } // namespace libMesh
static OutputShape shape(const ElemType t, const Order o, const unsigned int i, const Point &p)
The base class for all geometric element types.
Definition: elem.h:100
static OutputShape shape_deriv(const ElemType t, const Order o, const unsigned int i, const unsigned int j, const Point &p)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
A geometric point in (x,y,z) space.
Definition: point.h:38
static OutputShape shape_second_deriv(const ElemType t, const Order o, const unsigned int i, const unsigned int j, const Point &p)