17 #include <deal.II/base/polynomials_p.h> 18 #include <deal.II/base/qprojector.h> 19 #include <deal.II/base/quadrature_lib.h> 20 #include <deal.II/base/std_cxx14/memory.h> 22 #include <deal.II/dofs/dof_accessor.h> 24 #include <deal.II/fe/fe.h> 25 #include <deal.II/fe/fe_bernardi_raugel.h> 26 #include <deal.II/fe/fe_tools.h> 27 #include <deal.II/fe/fe_values.h> 28 #include <deal.II/fe/mapping.h> 30 #include <deal.II/grid/tria.h> 31 #include <deal.II/grid/tria_iterator.h> 37 DEAL_II_NAMESPACE_OPEN
51 std::vector<bool>(dim, true)))
74 std::ostringstream namebuf;
75 namebuf <<
"FE_BR<" << dim <<
">(" << 1 <<
")";
83 std::unique_ptr<FiniteElement<dim, dim>>
86 return std_cxx14::make_unique<FE_BernardiRaugel<dim>>(*this);
95 std::vector<double> & nodal_values)
const 97 Assert(support_point_values.size() == this->generalized_support_points.size(),
99 this->generalized_support_points.size()));
101 Assert(nodal_values.size() == this->dofs_per_cell,
104 std::vector<Tensor<1, dim>> normals;
105 for (
unsigned int i = 0; i < GeometryInfo<dim>::faces_per_cell; ++i)
109 normals.push_back(normal);
112 for (
unsigned int i = 0; i < dim * GeometryInfo<dim>::vertices_per_cell; ++i)
113 nodal_values[i] = support_point_values[i][i % dim];
117 i < dim * GeometryInfo<dim>::vertices_per_cell +
122 for (
unsigned int j = 0; j < dim; ++j)
124 support_point_values[i][j] *
132 std::vector<unsigned int>
139 std::vector<unsigned int> dpo(dim + 1, 0u);
154 this->generalized_support_points.resize(this->dofs_per_cell);
158 for (
unsigned int i = 0; i < dim * GeometryInfo<dim>::vertices_per_cell; ++i)
159 this->generalized_support_points[i] =
163 for (
unsigned int i = 0; i < dim; ++i)
165 for (
unsigned int j = 0; j < 2; ++j)
174 const unsigned int k =
176 this->generalized_support_points[k] = p;
185 DEAL_II_NAMESPACE_CLOSE
#define AssertDimension(dim1, dim2)
FE_BernardiRaugel(const unsigned int p=1)
void initialize_support_points()
virtual std::string get_name() const override
static ::ExceptionBase & ExcMessage(std::string arg1)
static ::ExceptionBase & ExcImpossibleInDim(int arg1)
#define Assert(cond, exc)
static ::ExceptionBase & ExcDimensionMismatch(std::size_t arg1, std::size_t arg2)
virtual void convert_generalized_support_point_values_to_dof_values(const std::vector< Vector< double >> &support_point_values, std::vector< double > &nodal_values) const override
static std::vector< unsigned int > get_dpo_vector()
virtual std::unique_ptr< FiniteElement< dim, dim > > clone() const override