16 #ifndef dealii__fe_poly_tensor_h 17 #define dealii__fe_poly_tensor_h 20 #include <deal.II/base/config.h> 21 #include <deal.II/lac/full_matrix.h> 22 #include <deal.II/fe/fe.h> 23 #include <deal.II/base/derivative_form.h> 24 #include <deal.II/base/quadrature.h> 25 #include <deal.II/base/thread_management.h> 28 DEAL_II_NAMESPACE_OPEN
138 template <
class PolynomialType,
int dim,
int spacedim=dim>
170 const unsigned int component)
const;
184 const unsigned int component)
const;
198 const unsigned int component)
const;
219 InternalData *data =
new InternalData;
222 const unsigned int n_q_points = quadrature.
size();
225 std::vector<Tensor<1,dim> > values(0);
226 std::vector<Tensor<2,dim> > grads(0);
227 std::vector<Tensor<3,dim> > grad_grads(0);
228 std::vector<Tensor<4,dim> > third_derivatives(0);
229 std::vector<Tensor<5,dim> > fourth_derivatives(0);
242 data->transformed_shape_values.resize (n_q_points);
249 data->transformed_shape_grads.resize (n_q_points);
258 data->untransformed_shape_grads.resize(n_q_points);
264 data->shape_grad_grads.reinit (this->
dofs_per_cell, n_q_points);
265 data->transformed_shape_hessians.resize (n_q_points);
267 data->untransformed_shape_hessian_tensors.resize(n_q_points);
278 for (
unsigned int k=0; k<n_q_points; ++k)
281 values, grads, grad_grads,
289 data->shape_values[i][k] = values[i];
296 data->shape_values[i][k] = add_values;
304 data->shape_grads[i][k] = grads[i];
311 data->shape_grads[i][k] = add_grads;
319 data->shape_grad_grads[i][k] = grad_grads[i];
326 data->shape_grad_grads[i][k] = add_grad_grads;
341 const ::internal::FEValues::MappingRelatedData<dim, spacedim> &mapping_data,
348 const unsigned int face_no,
352 const ::internal::FEValues::MappingRelatedData<dim, spacedim> &mapping_data,
359 const unsigned int face_no,
360 const unsigned int sub_no,
364 const ::internal::FEValues::MappingRelatedData<dim, spacedim> &mapping_data,
404 mutable std::vector<Tensor<1, spacedim> > transformed_shape_values;
406 mutable std::vector<Tensor<2, spacedim > > transformed_shape_grads;
407 mutable std::vector<Tensor<2, dim > > untransformed_shape_grads;
409 mutable std::vector<Tensor<3, spacedim > > transformed_shape_hessians;
410 mutable std::vector<Tensor<3, dim > > untransformed_shape_hessian_tensors;
463 DEAL_II_NAMESPACE_CLOSE
std::vector< Tensor< 2, dim > > cached_grads
Threads::Mutex cache_mutex
Point< dim > cached_point
virtual Tensor< 1, dim > shape_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
virtual Tensor< 1, dim > shape_grad(const unsigned int i, const Point< dim > &p) const
const unsigned int degree
FE_PolyTensor(const unsigned int degree, const FiniteElementData< dim > &fe_data, const std::vector< bool > &restriction_is_additive_flags, const std::vector< ComponentMask > &nonzero_components)
const Point< dim > & point(const unsigned int i) const
virtual FiniteElement< dim, spacedim >::InternalDataBase * get_data(const UpdateFlags update_flags, const Mapping< dim, spacedim > &, const Quadrature< dim > &quadrature, ::internal::FEValues::FiniteElementRelatedData< dim, spacedim > &) const
virtual Tensor< 2, dim > shape_grad_grad_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
virtual double shape_value(const unsigned int i, const Point< dim > &p) const
PolynomialType poly_space
Table< 2, Tensor< 1, dim > > shape_values
virtual UpdateFlags requires_update_flags(const UpdateFlags update_flags) const
Abstract base class for mapping classes.
Table< 2, DerivativeForm< 2, dim, spacedim > > shape_grad_grads
std::vector< double > sign_change
Second derivatives of shape functions.
unsigned int size() const
const unsigned int dofs_per_cell
std::vector< Tensor< 1, dim > > cached_values
virtual Tensor< 2, dim > shape_grad_grad(const unsigned int i, const Point< dim > &p) const
std::vector< Tensor< 3, dim > > cached_grad_grads
Shape function gradients.
const std::vector< ComponentMask > nonzero_components
virtual double shape_value_component(const unsigned int i, const Point< dim > &p, const unsigned int component) const
FullMatrix< double > inverse_node_matrix
Table< 2, DerivativeForm< 1, dim, spacedim > > shape_grads
const std::vector< bool > restriction_is_additive_flags