fe_transformation_base.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_FE_TRANSFORMATION_BASE_H
19 #define LIBMESH_FE_TRANSFORMATION_BASE_H
20 
21 #include "libmesh/fe_base.h"
22 #include "libmesh/fe_type.h"
23 
24 namespace libMesh
25 {
26 
27  //Forward Declarations
28  template< typename T > class FEGenericBase;
29  template< typename T > class H1FETransformation;
30  template< typename T > class HCurlFETransformation;
31 
40  template< typename OutputShape >
42  {
43  public:
44 
47 
52 
57  virtual void map_phi( const unsigned int dim,
58  const Elem* const elem,
59  const std::vector<Point>& qp,
61  std::vector<std::vector<OutputShape> >& phi ) const = 0;
62 
67  virtual void map_dphi( const unsigned int dim,
68  const Elem* const elem,
69  const std::vector<Point>& qp,
71  std::vector<std::vector<typename FEGenericBase<OutputShape>::OutputGradient> >& dphi,
72  std::vector<std::vector<OutputShape> >& dphidx,
73  std::vector<std::vector<OutputShape> >& dphidy,
74  std::vector<std::vector<OutputShape> >& dphidz ) const = 0;
75 
76 #ifdef LIBMESH_ENABLE_SECOND_DERIVATIVES
77 
81  virtual void map_d2phi( const unsigned int dim,
82  const Elem* const elem,
83  const std::vector<Point>& qp,
85  std::vector<std::vector<typename FEGenericBase<OutputShape>::OutputTensor> >& d2phi,
86  std::vector<std::vector<OutputShape> >& d2phidx2,
87  std::vector<std::vector<OutputShape> >& d2phidxdy,
88  std::vector<std::vector<OutputShape> >& d2phidxdz,
89  std::vector<std::vector<OutputShape> >& d2phidy2,
90  std::vector<std::vector<OutputShape> >& d2phidydz,
91  std::vector<std::vector<OutputShape> >& d2phidz2 ) const = 0;
92 #endif //LIBMESH_ENABLE_SECOND_DERIVATIVES
93 
94 
99  virtual void map_curl( const unsigned int dim,
100  const Elem* const elem,
101  const std::vector<Point>& qp,
102  const FEGenericBase<OutputShape>& fe,
103  std::vector<std::vector<OutputShape> >& curl_phi ) const = 0;
104 
109  virtual void map_div( const unsigned int dim,
110  const Elem* const elem,
111  const std::vector<Point>& qp,
112  const FEGenericBase<OutputShape>& fe,
113  std::vector<std::vector<typename FEGenericBase<OutputShape>::OutputDivergence> >& div_phi ) const = 0;
114 
115  }; // class FETransformationBase
116 
117 }
118 
119 #endif // LIBMESH_FE_TRANSFORMATION_BASE_H

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

Hosted By:
SourceForge.net Logo