hcurl_fe_transformation.h
Go to the documentation of this file.
1 // The libMesh Finite Element Library.
2 // Copyright (C) 2002-2014 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 #ifndef LIBMESH_HCURL_FE_TRANSFORMATION_H
19 #define LIBMESH_HCURL_FE_TRANSFORMATION_H
20 
22 
23 namespace libMesh
24 {
25 
33  template< typename OutputShape >
34  class HCurlFETransformation : public FETransformationBase<OutputShape>
35  {
36  public:
37 
39  : FETransformationBase<OutputShape>(){}
40 
42 
49  virtual void map_phi( const unsigned int dim,
50  const Elem* const elem,
51  const std::vector<Point>& qp,
53  std::vector<std::vector<OutputShape> >& phi ) const;
54 
59  virtual void map_dphi( const unsigned int /*dim*/,
60  const Elem* const /*elem*/,
61  const std::vector<Point>& /*qp*/,
62  const FEGenericBase<OutputShape>& /*fe*/,
63  std::vector<std::vector<typename FEGenericBase<OutputShape>::OutputGradient> >& /*dphi*/,
64  std::vector<std::vector<OutputShape> >& /*dphidx*/,
65  std::vector<std::vector<OutputShape> >& /*dphidy*/,
66  std::vector<std::vector<OutputShape> >& /*dphidz*/) const
67  { libmesh_do_once( libMesh::err << "WARNING: Shape function gradients for HCurl elements are not currently "
68  << "being computed!" << std::endl; ); return; }
69 
70 #ifdef LIBMESH_ENABLE_SECOND_DERIVATIVES
71 
75  virtual void map_d2phi( const unsigned int /*dim*/,
76  const Elem* const /*elem*/,
77  const std::vector<Point>& /*qp*/,
78  const FEGenericBase<OutputShape>& /*fe*/,
79  std::vector<std::vector<typename FEGenericBase<OutputShape>::OutputTensor> >& /*d2phi*/,
80  std::vector<std::vector<OutputShape> >& /*d2phidx2*/,
81  std::vector<std::vector<OutputShape> >& /*d2phidxdy*/,
82  std::vector<std::vector<OutputShape> >& /*d2phidxdz*/,
83  std::vector<std::vector<OutputShape> >& /*d2phidy2*/,
84  std::vector<std::vector<OutputShape> >& /*d2phidydz*/,
85  std::vector<std::vector<OutputShape> >& /*d2phidz2*/ ) const
86  { libmesh_do_once( libMesh::err << "WARNING: Shape function Hessians for HCurl elements are not currently "
87  << "being computed!" << std::endl; ); return; }
88 #endif //LIBMESH_ENABLE_SECOND_DERIVATIVES
89 
97  virtual void map_curl( const unsigned int dim,
98  const Elem* const elem,
99  const std::vector<Point>& qp,
100  const FEGenericBase<OutputShape>& fe,
101  std::vector<std::vector<OutputShape> >& curl_phi ) const;
102 
107  virtual void map_div( const unsigned int /*dim*/,
108  const Elem* const /*elem*/,
109  const std::vector<Point>& /*qp*/,
110  const FEGenericBase<OutputShape>& /*fe*/,
111  std::vector<std::vector<typename FEGenericBase<OutputShape>::OutputDivergence> >& /*div_phi*/ ) const
112  { libmesh_do_once( libMesh::err << "WARNING: Shape function divergences for HCurl elements are not currently "
113  << "being computed!" << std::endl; ); return; }
114 
115  }; // class HCurlFETransformation
116 
117 }
118 
119 #endif // LIBMESH_HCURL_FE_TRANSFORMATION_H

Site Created By: libMesh Developers
Last modified: February 07 2014 16:57:05 UTC

Hosted By:
SourceForge.net Logo