Fluid structure interaction suite
assemble_nitsche_with_exact_intersections.h
Go to the documentation of this file.
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2022 by Luca Heltai
4 //
5 // This file is part of the FSI-suite platform, based on the deal.II library.
6 //
7 // The FSI-suite platform is free software; you can use it, redistribute it,
8 // and/or modify it under the terms of the GNU Lesser General Public License as
9 // published by the Free Software Foundation; either version 3.0 of the License,
10 // or (at your option) any later version. The full text of the license can be
11 // found in the file LICENSE at the top level of the FSI-suite platform
12 // distribution.
13 //
14 // ---------------------------------------------------------------------
15 
16 
17 
18 #ifndef assemble_nitsche_exact_h
19 #define assemble_nitsche_exact_h
20 
21 #include <deal.II/base/config.h>
22 
25 
27 
28 #include <deal.II/fe/mapping.h>
29 #include <deal.II/fe/mapping_q1.h>
30 
33 #include <deal.II/grid/tria.h>
34 
36 
37 #include <tuple>
38 #include <vector>
39 
40 #include "compute_intersections.h"
41 
42 using namespace dealii;
43 namespace dealii
44 {
45  namespace NonMatching
46  {
58  template <int dim0, int dim1, int spacedim, typename Matrix>
59  void
62  const std::vector<std::tuple<
63  typename dealii::Triangulation<dim0, spacedim>::cell_iterator,
64  typename dealii::Triangulation<dim1, spacedim>::cell_iterator,
65  dealii::Quadrature<spacedim>>> &,
66  Matrix &matrix,
68  const ComponentMask &,
71  &nitsche_coefficient = Functions::ConstantFunction<spacedim>(1.0),
72  const double penalty = 1.);
73  } // namespace NonMatching
74 } // namespace dealii
75 
76 #endif
void assemble_nitsche_with_exact_intersections(const DoFHandler< dim0, spacedim > &, const std::vector< std::tuple< typename Triangulation< dim0, spacedim >::cell_iterator, typename Triangulation< dim1, spacedim >::cell_iterator, Quadrature< spacedim >>> &, Matrix &matrix, const AffineConstraints< typename Matrix::value_type > &, const ComponentMask &, const Mapping< dim0, spacedim > &, const Function< spacedim, typename Matrix::value_type > &nitsche_coefficient=Functions::ConstantFunction< spacedim >(1.0), const double penalty=1.)
Given two non-matching, overlapping grids, this function computes the local contributions M_{ij}:= \i...