Reference documentation for deal.II version 9.5.0
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
fe_p1nc.h
Go to the documentation of this file.
1// ---------------------------------------------------------------------
2//
3// Copyright (C) 2015 - 2023 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.md at
12// the top level directory of deal.II.
13//
14// ---------------------------------------------------------------------
15
16#ifndef dealii_fe_p1nc_h
17#define dealii_fe_p1nc_h
18
19#include <deal.II/base/config.h>
20
23
24#include <deal.II/fe/fe.h>
25
26
28
29
259class FE_P1NC : public FiniteElement<2, 2>
260{
261public:
266 FE_P1NC();
267
268 virtual std::string
269 get_name() const override;
270
271 virtual UpdateFlags
272 requires_update_flags(const UpdateFlags flags) const override;
273
274 virtual std::unique_ptr<FiniteElement<2, 2>>
275 clone() const override;
276
280 virtual ~FE_P1NC() override = default;
281
282
283
284private:
289 static std::vector<unsigned int>
291
299
308 virtual std::unique_ptr<FiniteElement<2, 2>::InternalDataBase>
309 get_data(
310 const UpdateFlags update_flags,
311 const Mapping<2, 2> &,
312 const Quadrature<2> &quadrature,
314 &output_data) const override;
315
317
318 virtual std::unique_ptr<FiniteElement<2, 2>::InternalDataBase>
320 const UpdateFlags update_flags,
321 const Mapping<2, 2> &,
322 const hp::QCollection<1> &quadrature,
324 &output_data) const override;
325
326 virtual std::unique_ptr<FiniteElement<2, 2>::InternalDataBase>
328 const UpdateFlags update_flags,
329 const Mapping<2, 2> &,
330 const Quadrature<1> &quadrature,
332 &output_data) const override;
333
337 virtual void
340 const CellSimilarity::Similarity cell_similarity,
341 const Quadrature<2> & quadrature,
342 const Mapping<2, 2> & mapping,
343 const Mapping<2, 2>::InternalDataBase & mapping_internal,
345 & mapping_data,
346 const FiniteElement<2, 2>::InternalDataBase &fe_internal,
348 &output_data) const override;
349
351
355 virtual void
358 const unsigned int face_no,
359 const hp::QCollection<1> & quadrature,
360 const Mapping<2, 2> & mapping,
361 const Mapping<2, 2>::InternalDataBase & mapping_internal,
363 & mapping_data,
364 const InternalDataBase &fe_internal,
366 &output_data) const override;
367
371 virtual void
374 const unsigned int face_no,
375 const unsigned int sub_no,
376 const Quadrature<1> & quadrature,
377 const Mapping<2, 2> & mapping,
378 const Mapping<2, 2>::InternalDataBase & mapping_internal,
380 & mapping_data,
381 const InternalDataBase &fe_internal,
383 &output_data) const override;
384
388 void
390};
391
392
393
398
399#endif
FE_P1NC()
Definition fe_p1nc.cc:24
virtual std::unique_ptr< FiniteElement< 2, 2 >::InternalDataBase > get_face_data(const UpdateFlags update_flags, const Mapping< 2, 2 > &, const hp::QCollection< 1 > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< 2, 2 > &output_data) const override
Definition fe_p1nc.cc:160
static ndarray< double, 4, 3 > get_linear_shape_coefficients(const Triangulation< 2, 2 >::cell_iterator &cell)
Definition fe_p1nc.cc:89
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::FEValuesImplementation::MappingRelatedData< 2, 2 > &mapping_data, const InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< 2, 2 > &output_data) const override
Definition fe_p1nc.cc:294
virtual std::unique_ptr< FiniteElement< 2, 2 > > clone() const override
Definition fe_p1nc.cc:69
virtual void fill_fe_face_values(const Triangulation< 2, 2 >::cell_iterator &cell, const unsigned int face_no, const hp::QCollection< 1 > &quadrature, const Mapping< 2, 2 > &mapping, const Mapping< 2, 2 >::InternalDataBase &mapping_internal, const internal::FEValuesImplementation::MappingRelatedData< 2, 2 > &mapping_data, const InternalDataBase &fe_internal, ::internal::FEValuesImplementation::FiniteElementRelatedData< 2, 2 > &output_data) const override
Definition fe_p1nc.cc:247
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::FEValuesImplementation::MappingRelatedData< 2, 2 > &mapping_data, const FiniteElement< 2, 2 >::InternalDataBase &fe_internal, internal::FEValuesImplementation::FiniteElementRelatedData< 2, 2 > &output_data) const override
Definition fe_p1nc.cc:210
void initialize_constraints()
Definition fe_p1nc.cc:340
virtual std::unique_ptr< FiniteElement< 2, 2 >::InternalDataBase > get_data(const UpdateFlags update_flags, const Mapping< 2, 2 > &, const Quadrature< 2 > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< 2, 2 > &output_data) const override
Definition fe_p1nc.cc:136
virtual std::unique_ptr< FiniteElement< 2, 2 >::InternalDataBase > get_subface_data(const UpdateFlags update_flags, const Mapping< 2, 2 > &, const Quadrature< 1 > &quadrature, ::internal::FEValuesImplementation::FiniteElementRelatedData< 2, 2 > &output_data) const override
Definition fe_p1nc.cc:186
virtual UpdateFlags requires_update_flags(const UpdateFlags flags) const override
Definition fe_p1nc.cc:50
static std::vector< unsigned int > get_dpo_vector()
Definition fe_p1nc.cc:77
virtual std::string get_name() const override
Definition fe_p1nc.cc:42
virtual ~FE_P1NC() override=default
friend class InternalDataBase
Definition fe.h:3061
Abstract base class for mapping classes.
Definition mapping.h:317
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:472
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:473
UpdateFlags
typename internal::ndarray::HelperArray< T, Ns... >::type ndarray
Definition ndarray.h:108