Flow123d  DF_patch_fe_mechanics-5faa023
patch_fe_values.cc
Go to the documentation of this file.
1 /*!
2  *
3  * Copyright (C) 2015 Technical University of Liberec. All rights reserved.
4  *
5  * This program is free software; you can redistribute it and/or modify it under
6  * the terms of the GNU General Public License version 3 as published by the
7  * Free Software Foundation. (http://www.gnu.org/licenses/gpl-3.0.en.html)
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12  *
13  *
14  * @file patch_fe_values.cc
15  * @brief Class FEValues calculates finite element data on the actual
16  * cells such as shape function values, gradients, Jacobian of
17  * the mapping from the reference cell etc.
18  * @author Jan Stebel, David Flanderka
19  */
20 
21 #include "fem/patch_fe_values.hh"
22 #include "fem/op_factory.hh"
24 #include "fem/op_accessors_impl.hh"
25 #include "fem/mapping_p1.hh"
26 #include "fem/fe_system.hh"
27 #include "fem/fe_values_map.hh"
28 
29 
30 
31 template<unsigned int spacedim>
32 template<unsigned int dim>
34  ASSERT((dim>0) && (dim<=3))(dim).error("Dimension must be 1, 2 or 3.");
35  return BulkValues<dim>(*this, fe_);
36 }
37 
38 template<unsigned int spacedim>
39 template<unsigned int dim>
41  ASSERT((dim>0) && (dim<=3))(dim).error("Dimension must be 1, 2 or 3.");
42  return SideValues<dim>(*this, fe_);
43 }
44 
45 template<unsigned int spacedim>
46 template<unsigned int dim>
48  //ASSERT((dim>1) && (dim<=3))(dim).error("Dimension must be 2 or 3.");
49  return JoinValues<dim>(*this, fe_);
50 }
51 
52 
53 
54 
55 // explicit instantiation
69 
70 template class PatchFEValues<3>;
#define ASSERT(expr)
Definition: asserts.hh:351
Template specialization of dim = 1.
Definition: op_factory.hh:298
SideValues< dim > side_values()
Return SideValue object of dimension given by template parameter.
JoinValues< dim > join_values()
Return JoinValue object of dimension given by template parameter.
BulkValues< dim > bulk_values()
Return BulkValue object of dimension given by template parameter.
Base class for quadrature rules on simplices in arbitrary dimensions.
Definition: quadrature.hh:48
Class FESystem for compound finite elements.
Class MappingP1 implements the affine transformation of the unit cell onto the actual cell.
Declares top level factory classes of FE operations.
Class FEValues calculates finite element data on the actual cells such as shape function values,...
Store finite element data on the actual patch such as shape function values, gradients,...