67std::unique_ptr<FiniteElement<2, 2>>
70 return std::make_unique<FE_P1NC>(*
this);
75std::vector<unsigned int>
78 std::vector<unsigned int> dpo(3);
92 const Point<2> mpt[4] = {(cell->vertex(0) + cell->vertex(2)) / 2,
93 (cell->vertex(1) + cell->vertex(3)) / 2,
94 (cell->vertex(0) + cell->vertex(1)) / 2,
95 (cell->vertex(2) + cell->vertex(3)) / 2};
99 (cell->vertex(0) + cell->vertex(1) + cell->vertex(2) + cell->vertex(3)) / 4;
101 const double det = (mpt[0][0] - mpt[1][0]) * (mpt[2][1] - mpt[3][1]) -
102 (mpt[2][0] - mpt[3][0]) * (mpt[0][1] - mpt[1][1]);
106 ((mpt[2][1] - mpt[3][1]) * (0.5) - (mpt[0][1] - mpt[1][1]) * (0.5)) / det;
108 ((mpt[2][1] - mpt[3][1]) * (-0.5) - (mpt[0][1] - mpt[1][1]) * (0.5)) / det;
110 ((mpt[2][1] - mpt[3][1]) * (0.5) - (mpt[0][1] - mpt[1][1]) * (-0.5)) / det;
112 ((mpt[2][1] - mpt[3][1]) * (-0.5) - (mpt[0][1] - mpt[1][1]) * (-0.5)) / det;
115 (-(mpt[2][0] - mpt[3][0]) * (0.5) + (mpt[0][0] - mpt[1][0]) * (0.5)) / det;
117 (-(mpt[2][0] - mpt[3][0]) * (-0.5) + (mpt[0][0] - mpt[1][0]) * (0.5)) / det;
119 (-(mpt[2][0] - mpt[3][0]) * (0.5) + (mpt[0][0] - mpt[1][0]) * (-0.5)) / det;
121 (-(mpt[2][0] - mpt[3][0]) * (-0.5) + (mpt[0][0] - mpt[1][0]) * (-0.5)) /
124 coeffs[0][2] = 0.25 - cpt[0] * coeffs[0][0] - cpt[1] * coeffs[0][1];
125 coeffs[1][2] = 0.25 - cpt[0] * coeffs[1][0] - cpt[1] * coeffs[1][1];
126 coeffs[2][2] = 0.25 - cpt[0] * coeffs[2][0] - cpt[1] * coeffs[2][1];
127 coeffs[3][2] = 0.25 - cpt[0] * coeffs[3][0] - cpt[1] * coeffs[3][1];
134std::unique_ptr<FiniteElement<2, 2>::InternalDataBase>
142 auto data_ptr = std::make_unique<FiniteElement<2, 2>::InternalDataBase>();
146 const unsigned int n_q_points = quadrature.
size();
158std::unique_ptr<FiniteElement<2, 2>::InternalDataBase>
168 auto data_ptr = std::make_unique<FiniteElement<2, 2>::InternalDataBase>();
172 const unsigned int n_q_points = quadrature[0].
size();
184std::unique_ptr<FiniteElement<2, 2>::InternalDataBase>
192 auto data_ptr = std::make_unique<FiniteElement<2, 2>::InternalDataBase>();
196 const unsigned int n_q_points = quadrature.
size();
230 for (
unsigned int i = 0; i < n_q_points; ++i)
237 for (
unsigned int i = 0; i < n_q_points; ++i)
240 Point<2>(coeffs[k][0], coeffs[k][1]);
248 const unsigned int face_no,
253 const InternalDataBase &fe_internal,
271 for (
unsigned int i = 0; i < quadrature_on_face.
size(); ++i)
276 quadrature_on_face.
point(i));
279 (coeffs[k][0] * quadrature_point[0] +
280 coeffs[k][1] * quadrature_point[1] + coeffs[k][2]);
284 for (
unsigned int i = 0; i < quadrature_on_face.
size(); ++i)
287 Point<2>(coeffs[k][0], coeffs[k][1]);
295 const unsigned int face_no,
296 const unsigned int sub_no,
301 const InternalDataBase &fe_internal,
315 for (
unsigned int i = 0; i < quadrature_on_subface.
size(); ++i)
321 cell, quadrature_on_subface.
point(i));
324 (coeffs[k][0] * quadrature_point[0] +
325 coeffs[k][1] * quadrature_point[1] + coeffs[k][2]);
330 for (
unsigned int i = 0; i < quadrature_on_subface.
size(); ++i)
333 Point<2>(coeffs[k][0], coeffs[k][1]);
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
static ndarray< double, 4, 3 > get_linear_shape_coefficients(const Triangulation< 2, 2 >::cell_iterator &cell)
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
virtual std::unique_ptr< FiniteElement< 2, 2 > > clone() const override
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
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
void initialize_constraints()
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
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
virtual UpdateFlags requires_update_flags(const UpdateFlags flags) const override
static std::vector< unsigned int > get_dpo_vector()
virtual std::string get_name() const override
unsigned int n_dofs_per_cell() const
ReferenceCell reference_cell() const
std::vector< std::vector< Point< dim - 1 > > > unit_face_support_points
TableIndices< 2 > interface_constraints_size() const
FullMatrix< double > interface_constraints
Abstract base class for mapping classes.
virtual Point< spacedim > transform_unit_to_real_cell(const typename Triangulation< dim, spacedim >::cell_iterator &cell, const Point< dim > &p) const =0
static void project_to_subface(const ReferenceCell &reference_cell, const SubQuadrature &quadrature, const unsigned int face_no, const unsigned int subface_no, std::vector< Point< dim > > &q_points, const RefinementCase< dim - 1 > &ref_case=RefinementCase< dim - 1 >::isotropic_refinement)
static void project_to_face(const ReferenceCell &reference_cell, const SubQuadrature &quadrature, const unsigned int face_no, std::vector< Point< dim > > &q_points)
const Point< dim > & point(const unsigned int i) const
unsigned int size() const
unsigned int size() const
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
#define AssertDimension(dim1, dim2)
@ update_hessians
Second derivatives of shape functions.
@ update_values
Shape function values.
@ update_normal_vectors
Normal vectors.
@ update_JxW_values
Transformed quadrature weights.
@ update_gradients
Shape function gradients.
@ update_quadrature_points
Transformed quadrature points.
@ update_default
No update.
typename internal::ndarray::HelperArray< T, Ns... >::type ndarray