16 #ifndef dealii__derivative_approximation_h 17 #define dealii__derivative_approximation_h 19 #include <deal.II/base/config.h> 20 #include <deal.II/base/exceptions.h> 21 #include <deal.II/base/std_cxx11/tuple.h> 22 #include <deal.II/base/synchronous_iterator.h> 23 #include <deal.II/fe/fe_update_flags.h> 24 #include <deal.II/fe/mapping.h> 25 #include <deal.II/lac/vector.h> 26 #include <deal.II/grid/filtered_iterator.h> 28 # include <deal.II/dofs/dof_accessor.h> 32 DEAL_II_NAMESPACE_OPEN
173 template <
int dim,
template <
int,
int>
class DoFHandlerType,
class InputVector,
int spacedim>
176 const DoFHandlerType<dim,spacedim> &dof,
177 const InputVector &solution,
179 const unsigned int component = 0);
185 template <
int dim,
template <
int,
int>
class DoFHandlerType,
class InputVector,
int spacedim>
188 const InputVector &solution,
190 const unsigned int component = 0);
209 template <
int dim,
template <
int,
int>
class DoFHandlerType,
class InputVector,
int spacedim>
212 const DoFHandlerType<dim,spacedim> &dof,
213 const InputVector &solution,
215 const unsigned int component = 0);
221 template <
int dim,
template <
int,
int>
class DoFHandlerType,
class InputVector,
int spacedim>
224 const InputVector &solution,
226 const unsigned int component = 0);
241 template <
typename DoFHandlerType,
class InputVector,
int order>
245 const DoFHandlerType &dof,
246 const InputVector &solution,
248 const typename DoFHandlerType::active_cell_iterator &cell,
253 const unsigned int component = 0);
258 template <
typename DoFHandlerType,
class InputVector,
int order>
261 (
const DoFHandlerType &dof,
262 const InputVector &solution,
264 const typename DoFHandlerType::active_cell_iterator &cell,
269 const unsigned int component = 0);
274 template <
int dim,
int order>
283 <<
"The output vector needs to have a size equal " 284 "to the number of active cells of your triangulation " 285 "but has length " << arg1 <<
"There are " 286 << arg2 <<
" active cells in your triangulation.");
291 "We have encountered a cell on which the number of linearly " 292 "independent directions that span the matrix Y (discussed " 293 "in the documentation of the DerivativeApproximation " 294 "class) is not equal to dim. The matrix Y then is " 295 "rank deficient and can not be inverted.");
300 DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcInsufficientDirections()
#define DeclException2(Exception2, type1, type2, outsequence)
Abstract base class for mapping classes.
#define DeclExceptionMsg(Exception, defaulttext)
double derivative_norm(const Tensor< order, dim > &derivative)
void approximate_derivative_tensor(const Mapping< DoFHandlerType::dimension, DoFHandlerType::space_dimension > &mapping, const DoFHandlerType &dof, const InputVector &solution, const typename DoFHandlerType::active_cell_iterator &cell, Tensor< order, DoFHandlerType::dimension > &derivative, const unsigned int component=0)
void approximate_second_derivative(const Mapping< dim, spacedim > &mapping, const DoFHandlerType< dim, spacedim > &dof, const InputVector &solution, Vector< float > &derivative_norm, const unsigned int component=0)
void approximate_gradient(const Mapping< dim, spacedim > &mapping, const DoFHandlerType< dim, spacedim > &dof, const InputVector &solution, Vector< float > &derivative_norm, const unsigned int component=0)
static ::ExceptionBase & ExcVectorLengthVsNActiveCells(int arg1, int arg2)