Reference documentation for deal.II version 8.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
fe_bdm.h
1 // ---------------------------------------------------------------------
2 // @f$Id: fe_bdm.h 31349 2013-10-20 19:07:06Z maier @f$
3 //
4 // Copyright (C) 2003 - 2013 by the deal.II authors
5 //
6 // This file is part of the deal.II library.
7 //
8 // The deal.II library is free software; you can use it, redistribute
9 // it, and/or modify it under the terms of the GNU Lesser General
10 // Public License as published by the Free Software Foundation; either
11 // version 2.1 of the License, or (at your option) any later version.
12 // The full text of the license can be found in the file LICENSE at
13 // the top level of the deal.II distribution.
14 //
15 // ---------------------------------------------------------------------
16 
17 #ifndef __deal2__fe_bdm_h
18 #define __deal2__fe_bdm_h
19 
20 #include <deal.II/base/config.h>
21 #include <deal.II/base/table.h>
22 #include <deal.II/base/polynomials_bdm.h>
23 #include <deal.II/base/polynomial.h>
24 #include <deal.II/base/tensor_product_polynomials.h>
25 #include <deal.II/base/geometry_info.h>
26 #include <deal.II/fe/fe.h>
27 #include <deal.II/fe/fe_poly_tensor.h>
28 
29 #include <vector>
30 
32 
55 template <int dim>
56 class FE_BDM
57  :
58  public FE_PolyTensor<PolynomialsBDM<dim>, dim>
59 {
60 public:
65  FE_BDM (const unsigned int p);
66 
76  virtual std::string get_name () const;
77 
78  virtual FiniteElement<dim> *clone () const;
79 
80  virtual void interpolate(std::vector<double> &local_dofs,
81  const std::vector<double> &values) const;
82  virtual void interpolate(std::vector<double> &local_dofs,
83  const std::vector<Vector<double> > &values,
84  unsigned int offset = 0) const;
85  virtual void interpolate(
86  std::vector<double> &local_dofs,
87  const VectorSlice<const std::vector<std::vector<double> > > &values) const;
88 private:
99  static std::vector<unsigned int>
100  get_dpo_vector (const unsigned int degree);
101 
109  static std::vector<bool>
110  get_ria_vector (const unsigned int degree);
120  void initialize_support_points (const unsigned int rt_degree);
130  std::vector<std::vector<double> > test_values;
131 };
132 
133 DEAL_II_NAMESPACE_CLOSE
134 
135 #endif
void initialize_support_points(const unsigned int rt_degree)
Definition: fe_bdm.h:56
FE_BDM(const unsigned int p)
static std::vector< unsigned int > get_dpo_vector(const unsigned int degree)
virtual FiniteElement< dim > * clone() const
const unsigned int degree
Definition: fe_base.h:287
virtual void interpolate(std::vector< double > &local_dofs, const std::vector< double > &values) const
static std::vector< bool > get_ria_vector(const unsigned int degree)
std::vector< std::vector< double > > test_values
Definition: fe_bdm.h:130
virtual std::string get_name() const