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

#include <copy_data.h>

Inheritance diagram for StabilizedMethodsCopyData:
[legend]

Public Member Functions

 StabilizedMethodsCopyData (const unsigned int n_dofs, const unsigned int n_q_points)
void reset ()

Public Attributes

FullMatrix< double > local_matrix
Vector< double > local_rhs
std::vector< types::global_dof_index > local_dof_indices
Vector< double > strong_residual
std::vector< Vector< double > > strong_jacobian
bool cell_is_local

Detailed Description

Class responsible for storing the information calculated using the assembly of stabilized scalar equations. Like the CopyData class, this class is used to initialize, zero (reset) and store the cell_matrix and the cell_rhs. Contrary to the regular CopyData class, this class also stores the strong_residual and the strong_jacobian of the equation being assembled. This is useful for equations that implement residual-based stabilization such as SUPG. This class is specialized for single component equations because the strong jacobian is stored using a Vector<double>.

Definition at line 66 of file copy_data.h.

Constructor & Destructor Documentation

◆ StabilizedMethodsCopyData()

StabilizedMethodsCopyData::StabilizedMethodsCopyData ( const unsigned int n_dofs,
const unsigned int n_q_points )
inline

Constructor. Allocates the memory for the cell_matrix, cell_rhs and dof-indices using the number of dofs and the strong_residual using the number of quadrature points and, the strong_jacobian using both.

Parameters
n_dofsNumber of degrees of freedom per cell in the problem
n_q_pointsNumber of quadrature points

Definition at line 78 of file copy_data.h.

References local_dof_indices, local_matrix, local_rhs, strong_jacobian, and strong_residual.

Member Function Documentation

◆ reset()

void StabilizedMethodsCopyData::reset ( )
inline

Resets the cell_matrix, cell_rhs, strong_residual and strong_jacobian to zero.

Definition at line 92 of file copy_data.h.

References local_matrix, local_rhs, strong_jacobian, and strong_residual.

Member Data Documentation

◆ cell_is_local

bool StabilizedMethodsCopyData::cell_is_local

Definition at line 113 of file copy_data.h.

◆ local_dof_indices

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

Definition at line 106 of file copy_data.h.

◆ local_matrix

FullMatrix<double> StabilizedMethodsCopyData::local_matrix

Definition at line 104 of file copy_data.h.

◆ local_rhs

Vector<double> StabilizedMethodsCopyData::local_rhs

Definition at line 105 of file copy_data.h.

◆ strong_jacobian

std::vector<Vector<double> > StabilizedMethodsCopyData::strong_jacobian

Definition at line 108 of file copy_data.h.

◆ strong_residual

Vector<double> StabilizedMethodsCopyData::strong_residual

Definition at line 107 of file copy_data.h.


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