Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
DPGCopyData Class Reference

#include <copy_data.h>

Public Member Functions

 DPGCopyData (const unsigned int n_dofs_test, const unsigned int n_dofs_trial_interior, const unsigned int n_dofs_trial_skeleton)
void reset ()

Public Attributes

LAPACKFullMatrix< double > G_matrix
LAPACKFullMatrix< double > B_matrix
LAPACKFullMatrix< double > B_hat_matrix
Vector< double > l_vector
LAPACKFullMatrix< double > G_inverse_B
LAPACKFullMatrix< double > G_inverse_B_hat
LAPACKFullMatrix< double > M1_matrix
LAPACKFullMatrix< double > M2_matrix
LAPACKFullMatrix< double > M3_matrix
Vector< double > M4_l
Vector< double > M5_l
LAPACKFullMatrix< double > M1_inverse_M2
LAPACKFullMatrix< double > tmp_matrix_M2M1M2
FullMatrix< double > local_matrix
Vector< double > local_rhs
std::vector< types::global_dof_index > local_dof_indices
Vector< double > local_skeleton_solution
Vector< double > local_interior_rhs
Vector< double > local_interior_solution
Vector< double > tmp_vector_reconstruction
Vector< double > local_residual
std::vector< types::global_dof_index > local_dof_indices_trial_interior
double local_residual_norm_squared
unsigned int active_cell_index
bool cell_is_local

Detailed Description

Class responsible for storing the local system of an ultraweak Discontinuous Petrov-Galerkin (DPG) discretization. The assemblers fill the uncondensed local system: the Gram matrix of the test space \(G\), the matrices of the bilinear form in the cell interior \(B\) and on the skeleton \(\hat{B}\), and the load vector \(l\). The solver then condenses this system on the skeleton unknowns using the operators \(M_1 = B^\dagger G^{-1} B\), \(M_2 = B^\dagger G^{-1} \hat{B}\), \(M_3 = \hat{B}^\dagger G^{-1} *\hat{B}\), and the vectors \(M_4 l = B^\dagger G^{-1} l\) and \(M_5 l = *\hat{B}^\dagger G^{-1} l\), and stores either the condensed skeleton system (assembly) or the reconstructed interior solution (interior reconstruction).

Definition at line 231 of file copy_data.h.

Constructor & Destructor Documentation

◆ DPGCopyData()

DPGCopyData::DPGCopyData ( const unsigned int n_dofs_test,
const unsigned int n_dofs_trial_interior,
const unsigned int n_dofs_trial_skeleton )
inline

Constructor. Allocates the memory of all the local matrices and vectors from the number of degrees of freedom per cell of each finite element space.

Parameters
[in]n_dofs_testNumber of degrees of freedom per cell of the test space.
[in]n_dofs_trial_interiorNumber of degrees of freedom per cell of the interior trial space.
[in]n_dofs_trial_skeletonNumber of degrees of freedom per cell of the skeleton trial space.

Definition at line 248 of file copy_data.h.

References active_cell_index, B_hat_matrix, B_matrix, cell_is_local, G_inverse_B, G_inverse_B_hat, G_matrix, l_vector, local_dof_indices, local_dof_indices_trial_interior, local_interior_rhs, local_interior_solution, local_matrix, local_residual, local_residual_norm_squared, local_rhs, local_skeleton_solution, M1_inverse_M2, M1_matrix, M2_matrix, M3_matrix, M4_l, M5_l, tmp_matrix_M2M1M2, and tmp_vector_reconstruction.

Member Function Documentation

◆ reset()

void DPGCopyData::reset ( )
inline

Resets the uncondensed local system to zero. The \(M_1\) matrix is also reset since LAPACKFullMatrix keeps track of its factorization status and forbids writing into it or factorizing it again once it has been factorized.

Definition at line 284 of file copy_data.h.

References B_hat_matrix, B_matrix, G_matrix, l_vector, and M1_matrix.

Member Data Documentation

◆ active_cell_index

unsigned int DPGCopyData::active_cell_index

Definition at line 346 of file copy_data.h.

◆ B_hat_matrix

LAPACKFullMatrix<double> DPGCopyData::B_hat_matrix

Definition at line 298 of file copy_data.h.

◆ B_matrix

LAPACKFullMatrix<double> DPGCopyData::B_matrix

Definition at line 296 of file copy_data.h.

◆ cell_is_local

bool DPGCopyData::cell_is_local

Definition at line 352 of file copy_data.h.

◆ G_inverse_B

LAPACKFullMatrix<double> DPGCopyData::G_inverse_B

Definition at line 303 of file copy_data.h.

◆ G_inverse_B_hat

LAPACKFullMatrix<double> DPGCopyData::G_inverse_B_hat

Definition at line 305 of file copy_data.h.

◆ G_matrix

LAPACKFullMatrix<double> DPGCopyData::G_matrix

Definition at line 294 of file copy_data.h.

◆ l_vector

Vector<double> DPGCopyData::l_vector

Definition at line 300 of file copy_data.h.

◆ local_dof_indices

std::vector<types::global_dof_index> DPGCopyData::local_dof_indices

Definition at line 327 of file copy_data.h.

◆ local_dof_indices_trial_interior

std::vector<types::global_dof_index> DPGCopyData::local_dof_indices_trial_interior

Definition at line 341 of file copy_data.h.

◆ local_interior_rhs

Vector<double> DPGCopyData::local_interior_rhs

Definition at line 332 of file copy_data.h.

◆ local_interior_solution

Vector<double> DPGCopyData::local_interior_solution

Definition at line 334 of file copy_data.h.

◆ local_matrix

FullMatrix<double> DPGCopyData::local_matrix

Definition at line 323 of file copy_data.h.

◆ local_residual

Vector<double> DPGCopyData::local_residual

Definition at line 339 of file copy_data.h.

◆ local_residual_norm_squared

double DPGCopyData::local_residual_norm_squared

Definition at line 344 of file copy_data.h.

◆ local_rhs

Vector<double> DPGCopyData::local_rhs

Definition at line 325 of file copy_data.h.

◆ local_skeleton_solution

Vector<double> DPGCopyData::local_skeleton_solution

Definition at line 330 of file copy_data.h.

◆ M1_inverse_M2

LAPACKFullMatrix<double> DPGCopyData::M1_inverse_M2

Definition at line 318 of file copy_data.h.

◆ M1_matrix

LAPACKFullMatrix<double> DPGCopyData::M1_matrix

Definition at line 308 of file copy_data.h.

◆ M2_matrix

LAPACKFullMatrix<double> DPGCopyData::M2_matrix

Definition at line 310 of file copy_data.h.

◆ M3_matrix

LAPACKFullMatrix<double> DPGCopyData::M3_matrix

Definition at line 312 of file copy_data.h.

◆ M4_l

Vector<double> DPGCopyData::M4_l

Definition at line 314 of file copy_data.h.

◆ M5_l

Vector<double> DPGCopyData::M5_l

Definition at line 316 of file copy_data.h.

◆ tmp_matrix_M2M1M2

LAPACKFullMatrix<double> DPGCopyData::tmp_matrix_M2M1M2

Definition at line 320 of file copy_data.h.

◆ tmp_vector_reconstruction

Vector<double> DPGCopyData::tmp_vector_reconstruction

Definition at line 337 of file copy_data.h.


The documentation for this class was generated from the following file: