16#ifndef dealii_derivative_form_h
17#define dealii_derivative_form_h
57template <
int order,
int dim,
int spacedim,
typename Number =
double>
165 <<
"Invalid DerivativeForm index " << arg1);
187template <
int order,
int dim,
int spacedim,
typename Number>
192 ExcMessage(
"Only allowed for forms with dim==spacedim."));
194 for (
unsigned int j = 0; j < dim; ++j)
200template <
int order,
int dim,
int spacedim,
typename Number>
204 for (
unsigned int j = 0; j < spacedim; ++j)
210template <
int order,
int dim,
int spacedim,
typename Number>
218 for (
unsigned int j = 0; j < dim; ++j)
225template <
int order,
int dim,
int spacedim,
typename Number>
230 for (
unsigned int j = 0; j < spacedim; ++j)
237template <
int order,
int dim,
int spacedim,
typename Number>
242 Assert((1 == spacedim) && (order == 1),
243 ExcMessage(
"Only allowed for spacedim==1 and order==1."));
252template <
int order,
int dim,
int spacedim,
typename Number>
263template <
int order,
int dim,
int spacedim,
typename Number>
266 const unsigned int i)
const
275template <
int order,
int dim,
int spacedim,
typename Number>
279 Assert((1 == spacedim) && (order == 1),
287template <
int order,
int dim,
int spacedim,
typename Number>
296 for (
unsigned int j = 0; j < dim; ++j)
304template <
int order,
int dim,
int spacedim,
typename Number>
311 for (
unsigned int i = 0; i < spacedim; ++i)
312 for (
unsigned int j = 0; j < dim; ++j)
313 tt[j][i] = (*
this)[i][j];
320template <
int order,
int dim,
int spacedim,
typename Number>
327 for (
unsigned int i = 0; i < spacedim; ++i)
328 for (
unsigned int j = 0; j < dim; ++j)
329 dest[i][j] = (*
this)[i] * T[j];
336template <
int order,
int dim,
int spacedim,
typename Number>
341 for (
unsigned int i = 0; i < spacedim; ++i)
342 sum_of_squares += tensor[i].norm_square();
348template <
int order,
int dim,
int spacedim,
typename Number>
357 return ::determinant(T);
364 for (
unsigned int i = 0; i < dim; ++i)
365 for (
unsigned int j = 0; j < dim; ++j)
366 G[i][j] = DF_t[i] * DF_t[j];
374template <
int order,
int dim,
int spacedim,
typename Number>
388 for (
unsigned int i = 0; i < dim; ++i)
389 for (
unsigned int j = 0; j < dim; ++j)
390 G[i][j] = DF_t[i] * DF_t[j];
392 return (this->times_T_t(
invert(G)));
397template <
int order,
int dim,
int spacedim,
typename Number>
429template <
int spacedim,
int dim,
typename Number1,
typename Number2>
435 for (
unsigned int i = 0; i < spacedim; ++i)
436 dest[i] = grad_F[i] * d_x;
451template <
int spacedim,
int dim,
typename Number1,
typename Number2>
461 for (
unsigned int i = 0; i < dim; ++i)
476template <
int spacedim,
492 for (
unsigned int i = 0; i < n_components; ++i)
515template <
int spacedim,
int dim,
typename Number1,
typename Number2>
522 for (
unsigned int i = 0; i < spacedim; ++i)
536template <
int dim,
int spacedim,
typename Number>
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
static ::ExceptionBase & ExcInvalidTensorIndex(int arg1)
#define Assert(cond, exc)
#define AssertIndexRange(index, range)
#define DeclException1(Exception1, type1, outsequence)
static ::ExceptionBase & ExcMessage(std::string arg1)
::VectorizedArray< Number, width > sqrt(const ::VectorizedArray< Number, width > &)
typename internal::ProductTypeImpl< typename std::decay< T >::type, typename std::decay< U >::type >::type type
constexpr Number determinant(const SymmetricTensor< 2, dim, Number > &)
constexpr SymmetricTensor< 2, dim, Number > invert(const SymmetricTensor< 2, dim, Number > &)