Reference documentation for deal.II version 8.5.1
fe_p1nc.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2015 - 2016 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE at
12 // the top level of the deal.II distribution.
13 //
14 // ---------------------------------------------------------------------
15 
16 #ifndef dealii__fe_p1nc_h
17 #define dealii__fe_p1nc_h
18 
19 #include <deal.II/base/config.h>
20 #include <deal.II/fe/fe.h>
21 #include <deal.II/base/quadrature.h>
22 #include <deal.II/base/qprojector.h>
23 
24 
25 DEAL_II_NAMESPACE_OPEN
26 
27 
30 
254 class FE_P1NC : public FiniteElement<2,2>
255 {
256 
257 public:
262  FE_P1NC();
263 
264  virtual std::string get_name () const;
265 
266  virtual UpdateFlags requires_update_flags (const UpdateFlags flags) const;
267 
268  virtual FiniteElement<2,2> *clone () const;
269 
273  virtual ~FE_P1NC ();
274 
275 
276 
277 private:
278 
282  static std::vector<unsigned int> get_dpo_vector ();
283 
288  static std_cxx11::array<std_cxx11::array<double,3>,4>
290 
299  get_data (const UpdateFlags update_flags,
300  const Mapping<2,2> &,
301  const Quadrature<2> &quadrature,
303 
305  get_face_data (const UpdateFlags update_flags,
306  const Mapping<2,2> &,
307  const Quadrature<1> &quadrature,
309 
311  get_subface_data (const UpdateFlags update_flags,
312  const Mapping<2,2> &,
313  const Quadrature<1> &quadrature,
315 
319  virtual void
321  const CellSimilarity::Similarity cell_similarity,
322  const Quadrature<2> &quadrature,
323  const Mapping<2,2> &mapping,
324  const Mapping<2,2>::InternalDataBase &mapping_internal,
326  const FiniteElement<2,2>::InternalDataBase &fe_internal,
328 
332  virtual void
334  const unsigned int face_no,
335  const Quadrature<1> &quadrature,
336  const Mapping<2,2> &mapping,
337  const Mapping<2,2>::InternalDataBase &mapping_internal,
338  const ::internal::FEValues::MappingRelatedData<2,2> &mapping_data,
339  const InternalDataBase &fe_internal,
341 
345  virtual void
347  const unsigned int face_no,
348  const unsigned int sub_no,
349  const Quadrature<1> &quadrature,
350  const Mapping<2,2> &mapping,
351  const Mapping<2,2>::InternalDataBase &mapping_internal,
352  const ::internal::FEValues::MappingRelatedData<2,2> &mapping_data,
353  const InternalDataBase &fe_internal,
355 
359  void initialize_constraints ();
360 
361 };
362 
363 
364 
365 
369 DEAL_II_NAMESPACE_CLOSE
370 
371 #endif
FE_P1NC()
Definition: fe_p1nc.cc:22
virtual FiniteElement< 2, 2 >::InternalDataBase * get_data(const UpdateFlags update_flags, const Mapping< 2, 2 > &, const Quadrature< 2 > &quadrature, ::internal::FEValues::FiniteElementRelatedData< 2, 2 > &output_data) const
Definition: fe_p1nc.cc:130
virtual ~FE_P1NC()
Definition: fe_p1nc.cc:74
static std_cxx11::array< std_cxx11::array< double, 3 >, 4 > get_linear_shape_coefficients(const Triangulation< 2, 2 >::cell_iterator &cell)
Definition: fe_p1nc.cc:91
static std::vector< unsigned int > get_dpo_vector()
Definition: fe_p1nc.cc:79
virtual void fill_fe_values(const Triangulation< 2, 2 >::cell_iterator &cell, const CellSimilarity::Similarity cell_similarity, const Quadrature< 2 > &quadrature, const Mapping< 2, 2 > &mapping, const Mapping< 2, 2 >::InternalDataBase &mapping_internal, const internal::FEValues::MappingRelatedData< 2, 2 > &mapping_data, const FiniteElement< 2, 2 >::InternalDataBase &fe_internal, internal::FEValues::FiniteElementRelatedData< 2, 2 > &output_data) const
Definition: fe_p1nc.cc:196
UpdateFlags
virtual UpdateFlags requires_update_flags(const UpdateFlags flags) const
Definition: fe_p1nc.cc:49
Abstract base class for mapping classes.
Definition: dof_tools.h:46
virtual FiniteElement< 2, 2 > * clone() const
Definition: fe_p1nc.cc:67
virtual std::string get_name() const
Definition: fe_p1nc.cc:42
virtual void fill_fe_face_values(const Triangulation< 2, 2 >::cell_iterator &cell, const unsigned int face_no, const Quadrature< 1 > &quadrature, const Mapping< 2, 2 > &mapping, const Mapping< 2, 2 >::InternalDataBase &mapping_internal, const ::internal::FEValues::MappingRelatedData< 2, 2 > &mapping_data, const InternalDataBase &fe_internal, ::internal::FEValues::FiniteElementRelatedData< 2, 2 > &output_data) const
Definition: fe_p1nc.cc:230
void initialize_constraints()
Definition: fe_p1nc.cc:312
virtual void fill_fe_subface_values(const Triangulation< 2, 2 >::cell_iterator &cell, const unsigned int face_no, const unsigned int sub_no, const Quadrature< 1 > &quadrature, const Mapping< 2, 2 > &mapping, const Mapping< 2, 2 >::InternalDataBase &mapping_internal, const ::internal::FEValues::MappingRelatedData< 2, 2 > &mapping_data, const InternalDataBase &fe_internal, ::internal::FEValues::FiniteElementRelatedData< 2, 2 > &output_data) const
Definition: fe_p1nc.cc:270