Reference documentation for deal.II version 9.6.0
|
#include <deal.II/distributed/field_transfer.h>
Public Member Functions | |
FieldTransfer (const DoFHandler< dim, spacedim > &dof_handler) | |
void | prepare_for_coarsening_and_refinement (const VectorType &in, const unsigned int fe_nothing_index) |
void | interpolate (const Number &new_value, const AffineConstraints< Number > &affine_constraints, VectorType &out) |
Private Types | |
using | Number = typename VectorType::value_type |
Private Attributes | |
const DoFHandler< dim, spacedim > & | dof_handler |
std::vector< Vector< Number > > | data_to_transfer |
std::unique_ptr< CellDataTransfer< dim, spacedim, std::vector< Vector< Number > > > > | cell_data_transfer |
This class is similar to SolutionTransfer but it supports the case where elements have been activated during refinement, i.e., FE_Nothing elements have been associated with a finite elements during refinement.
Definition at line 44 of file field_transfer.h.
|
private |
Definition at line 47 of file field_transfer.h.
parallel::distributed::experimental::FieldTransfer< dim, VectorType, spacedim >::FieldTransfer | ( | const DoFHandler< dim, spacedim > & | dof_handler | ) |
Constructor.
[in] | dof_handler | The DoFHandler on which all the operations will happen. This constructor must be called before the underlying Triangulation is coarsened/refined. |
Definition at line 32 of file field_transfer.cc.
void parallel::distributed::experimental::FieldTransfer< dim, VectorType, spacedim >::prepare_for_coarsening_and_refinement | ( | const VectorType & | in, |
const unsigned int | fe_nothing_index ) |
Prepare the current object for coarsening and refinement.
[in] | in | The vector that will be interpolated |
[in] | fe_nothing_index | The finite element index associated with FE_Nothing |
Definition at line 132 of file field_transfer.cc.
void parallel::distributed::experimental::FieldTransfer< dim, VectorType, spacedim >::interpolate | ( | const Number & | new_value, |
const AffineConstraints< Number > & | affine_constraints, | ||
VectorType & | out ) |
Interpolate the data previously stored in this object before the mesh was refined or coarsened onto the current set of cells. new_value
is the value associated to the new degrees of freedom that where created during the element activation. affine_constraints
is the AffineConstraints after refinement.
Definition at line 173 of file field_transfer.cc.
|
private |
DoFHandler associated with the object.
Definition at line 86 of file field_transfer.h.
|
private |
Data transferred by cell_data_transfer.
Definition at line 91 of file field_transfer.h.
|
private |
CellDataTransfer used to perform the field transfer.
Definition at line 98 of file field_transfer.h.