Reference documentation for deal.II version 9.1.0-pre
coupling.h
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2018 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_non_matching_coupling
17 #define dealii_non_matching_coupling
18 
19 #include <deal.II/base/config.h>
20 
21 #include <deal.II/base/quadrature.h>
22 
23 #include <deal.II/dofs/dof_handler.h>
24 
25 #include <deal.II/fe/component_mask.h>
26 #include <deal.II/fe/fe.h>
27 #include <deal.II/fe/mapping_q1.h>
28 
29 #include <deal.II/grid/grid_tools_cache.h>
30 
31 #include <deal.II/lac/affine_constraints.h>
32 
33 DEAL_II_NAMESPACE_OPEN
34 
44 namespace NonMatching
45 {
93  template <int dim0,
94  int dim1,
95  int spacedim,
96  typename Sparsity,
97  typename number = double>
98  void
100  const DoFHandler<dim0, spacedim> &space_dh,
101  const DoFHandler<dim1, spacedim> &immersed_dh,
102  const Quadrature<dim1> & quad,
103  Sparsity & sparsity,
105  const ComponentMask & space_comps = ComponentMask(),
106  const ComponentMask & immersed_comps = ComponentMask(),
107  const Mapping<dim0, spacedim> & space_mapping =
109  const Mapping<dim1, spacedim> &immersed_mapping =
111 
120  template <int dim0,
121  int dim1,
122  int spacedim,
123  typename Sparsity,
124  typename number = double>
125  void
128  const DoFHandler<dim0, spacedim> & space_dh,
129  const DoFHandler<dim1, spacedim> & immersed_dh,
130  const Quadrature<dim1> & quad,
131  Sparsity & sparsity,
133  const ComponentMask & space_comps = ComponentMask(),
134  const ComponentMask & immersed_comps = ComponentMask(),
135  const Mapping<dim1, spacedim> & immersed_mapping =
137 
138 
184  template <int dim0, int dim1, int spacedim, typename Matrix>
185  void
187  const DoFHandler<dim0, spacedim> & space_dh,
188  const DoFHandler<dim1, spacedim> & immersed_dh,
189  const Quadrature<dim1> & quad,
190  Matrix & matrix,
193  const ComponentMask & space_comps = ComponentMask(),
194  const ComponentMask & immersed_comps = ComponentMask(),
195  const Mapping<dim0, spacedim> &space_mapping =
197  const Mapping<dim1, spacedim> &immersed_mapping =
199 
208  template <int dim0, int dim1, int spacedim, typename Matrix>
209  void
211  const GridTools::Cache<dim0, spacedim> & cache,
212  const DoFHandler<dim0, spacedim> & space_dh,
213  const DoFHandler<dim1, spacedim> & immersed_dh,
214  const Quadrature<dim1> & quad,
215  Matrix & matrix,
218  const ComponentMask & space_comps = ComponentMask(),
219  const ComponentMask & immersed_comps = ComponentMask(),
220  const Mapping<dim1, spacedim> &immersed_mapping =
222 } // namespace NonMatching
223 DEAL_II_NAMESPACE_CLOSE
224 
225 #endif
void create_coupling_sparsity_pattern(const DoFHandler< dim0, spacedim > &space_dh, const DoFHandler< dim1, spacedim > &immersed_dh, const Quadrature< dim1 > &quad, Sparsity &sparsity, const AffineConstraints< number > &constraints=AffineConstraints< number >(), const ComponentMask &space_comps=ComponentMask(), const ComponentMask &immersed_comps=ComponentMask(), const Mapping< dim0, spacedim > &space_mapping=StaticMappingQ1< dim0, spacedim >::mapping, const Mapping< dim1, spacedim > &immersed_mapping=StaticMappingQ1< dim1, spacedim >::mapping)
Definition: coupling.cc:49
Abstract base class for mapping classes.
Definition: dof_tools.h:57
void create_coupling_mass_matrix(const DoFHandler< dim0, spacedim > &space_dh, const DoFHandler< dim1, spacedim > &immersed_dh, const Quadrature< dim1 > &quad, Matrix &matrix, const AffineConstraints< typename Matrix::value_type > &constraints=AffineConstraints< typename Matrix::value_type >(), const ComponentMask &space_comps=ComponentMask(), const ComponentMask &immersed_comps=ComponentMask(), const Mapping< dim0, spacedim > &space_mapping=StaticMappingQ1< dim0, spacedim >::mapping, const Mapping< dim1, spacedim > &immersed_mapping=StaticMappingQ1< dim1, spacedim >::mapping)
Definition: coupling.cc:199