h1_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_H1_FE_TRANSFORMATION_H
19 #define LIBMESH_H1_FE_TRANSFORMATION_H
20 
22 #include "libmesh/compare_types.h"
23 #include "libmesh/elem.h"
24 
25 namespace libMesh
26 {
34  template< typename OutputShape >
35  class H1FETransformation : public FETransformationBase<OutputShape>
36  {
37  public:
38 
40  : FETransformationBase<OutputShape>(){}
41 
42  virtual ~H1FETransformation(){}
43 
48  virtual void map_phi( const unsigned int,
49  const Elem* const,
50  const std::vector<Point>&,
52  std::vector<std::vector<OutputShape> >& ) const;
53 
58  virtual void map_dphi( const unsigned int dim,
59  const Elem* const elem,
60  const std::vector<Point>& qp,
62  std::vector<std::vector<typename FEGenericBase<OutputShape>::OutputGradient> >& dphi,
63  std::vector<std::vector<OutputShape> >& dphidx,
64  std::vector<std::vector<OutputShape> >& dphidy,
65  std::vector<std::vector<OutputShape> >& dphidz) const;
66 
67 #ifdef LIBMESH_ENABLE_SECOND_DERIVATIVES
68 
74  virtual void map_d2phi( const unsigned int dim,
75  const Elem* const elem,
76  const std::vector<Point>& qp,
78  std::vector<std::vector<typename FEGenericBase<OutputShape>::OutputTensor> >& d2phi,
79  std::vector<std::vector<OutputShape> >& d2phidx2,
80  std::vector<std::vector<OutputShape> >& d2phidxdy,
81  std::vector<std::vector<OutputShape> >& d2phidxdz,
82  std::vector<std::vector<OutputShape> >& d2phidy2,
83  std::vector<std::vector<OutputShape> >& d2phidydz,
84  std::vector<std::vector<OutputShape> >& d2phidz2 ) const;
85 #endif //LIBMESH_ENABLE_SECOND_DERIVATIVES
86 
91  virtual void map_curl( const unsigned int dim,
92  const Elem* const elem,
93  const std::vector<Point>& qp,
95  std::vector<std::vector<OutputShape> >& curl_phi ) const;
96 
101  virtual void map_div( const unsigned int dim,
102  const Elem* const elem,
103  const std::vector<Point>& qp,
104  const FEGenericBase<OutputShape>& fe,
105  std::vector<std::vector<typename FEGenericBase<OutputShape>::OutputDivergence> >& div_phi ) const;
106 
107  }; // class H1FETransformation
108 
109 }
110 
111 #endif // LIBMESH_H1_FE_TRANSFORMATION_H

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

Hosted By:
SourceForge.net Logo