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/synchronous_iterator.h> 22 #include <deal.II/fe/fe_update_flags.h> 23 #include <deal.II/fe/mapping.h> 24 #include <deal.II/lac/vector.h> 25 #include <deal.II/grid/filtered_iterator.h> 27 # include <deal.II/dofs/dof_accessor.h> 31 DEAL_II_NAMESPACE_OPEN
172 template <
int dim,
template <
int,
int>
class DoFHandlerType,
class InputVector,
int spacedim>
175 const DoFHandlerType<dim,spacedim> &dof,
176 const InputVector &solution,
178 const unsigned int component = 0);
184 template <
int dim,
template <
int,
int>
class DoFHandlerType,
class InputVector,
int spacedim>
187 const InputVector &solution,
189 const unsigned int component = 0);
208 template <
int dim,
template <
int,
int>
class DoFHandlerType,
class InputVector,
int spacedim>
211 const DoFHandlerType<dim,spacedim> &dof,
212 const InputVector &solution,
214 const unsigned int component = 0);
220 template <
int dim,
template <
int,
int>
class DoFHandlerType,
class InputVector,
int spacedim>
223 const InputVector &solution,
225 const unsigned int component = 0);
240 template <
typename DoFHandlerType,
class InputVector,
int order>
244 const DoFHandlerType &dof,
245 const InputVector &solution,
247 const typename DoFHandlerType::active_cell_iterator &cell,
252 const unsigned int component = 0);
257 template <
typename DoFHandlerType,
class InputVector,
int order>
260 (
const DoFHandlerType &dof,
261 const InputVector &solution,
263 const typename DoFHandlerType::active_cell_iterator &cell,
268 const unsigned int component = 0);
273 template <
int dim,
int order>
282 <<
"The output vector needs to have a size equal " 283 "to the number of active cells of your triangulation " 284 "but has length " << arg1 <<
"There are " 285 << arg2 <<
" active cells in your triangulation.");
290 "We have encountered a cell on which the number of linearly " 291 "independent directions that span the matrix Y (discussed " 292 "in the documentation of the DerivativeApproximation " 293 "class) is not equal to dim. The matrix Y then is " 294 "rank deficient and can not be inverted.");
299 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)