ASPECT
aspect::internal::Assembly::CopyData::AdvectionSystem< dim > Struct Template Reference
Inheritance diagram for aspect::internal::Assembly::CopyData::AdvectionSystem< dim >:
[legend]

## Public Member Functions

AdvectionSystem (const FiniteElement< dim > &finite_element, const bool field_is_discontinuous)

Public Member Functions inherited from aspect::internal::Assembly::CopyData::CopyDataBase< dim >
virtual ~CopyDataBase ()=default

## Public Attributes

FullMatrix< double > local_matrix

std::vector< FullMatrix< double > > local_matrices_int_ext

std::vector< FullMatrix< double > > local_matrices_ext_int

std::vector< FullMatrix< double > > local_matrices_ext_ext

Vector< double > local_rhs

std::vector< bool > assembled_matrices

std::vector< types::global_dof_index > local_dof_indices

std::vector< std::vector< types::global_dof_index > > neighbor_dof_indices

## Detailed Description

### template<int dim> struct aspect::internal::Assembly::CopyData::AdvectionSystem< dim >

Additionally to the Stokes system the Advection system copy data object also needs to keep track of contributions across faces (mostly for discontinuous elements that contain DG terms).

Definition at line 116 of file simulator.h.

## Constructor & Destructor Documentation

template<int dim>
 aspect::internal::Assembly::CopyData::AdvectionSystem< dim >::AdvectionSystem ( const FiniteElement< dim > & finite_element, const bool field_is_discontinuous )

Constructor.

Parameters
 finite_element The element that describes the field for which we are trying to assemble a linear system. Not the global finite element. field_is_discontinuous If true, the field is a DG element.

## § local_matrix

template<int dim>

Local contributions to the global matrix that correspond only to the variables listed in local_dof_indices

Definition at line 426 of file interface.h.

## § local_matrices_int_ext

template<int dim>

Local contributions to the global matrix from the face terms in the discontinuous Galerkin method. These arrays are of a length sufficient to hold one matrix for each possible face or subface of the cell. The discontinuous Galerkin bilinear form contains terms arising from internal (to the cell) values and external (to the cell) values. _int_ext and _ext_int hold the terms arising from the pairing between a cell and its neighbor, while _ext_ext is the pairing of the neighbor's dofs with themselves. In the continuous Galerkin case, these are unused, and set to size zero.

Definition at line 439 of file interface.h.

## § local_matrices_ext_int

template<int dim>

Definition at line 440 of file interface.h.

## § local_matrices_ext_ext

template<int dim>

Definition at line 441 of file interface.h.

## § local_rhs

template<int dim>

Local contributions to the right hand side that correspond only to the variables listed in local_dof_indices

Definition at line 447 of file interface.h.

## § assembled_matrices

template<int dim>

Denotes which face matrices have actually been assembled in the DG field assembly. Entries for matrices not used (for example, those corresponding to non-existent subfaces; or faces being assembled by the neighboring cell) are set to false.

Definition at line 455 of file interface.h.

## § local_dof_indices

template<int dim>

Indices of those degrees of freedom that actually correspond to the temperature or compositional field. since this structure is used to represent just contributions to the advection systems, there will be no contributions to other parts of the system and consequently, we do not need to list here indices that correspond to velocity or pressure degrees (or, in fact any other variable outside the block we are currently considering)

Definition at line 466 of file interface.h.

## § neighbor_dof_indices

template<int dim>