Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
StabilizedMethodsTensorCopyData< dim > Class Template Reference

#include <copy_data.h>

Public Member Functions

 StabilizedMethodsTensorCopyData (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
std::vector< Tensor< 1, dim > > strong_residual
std::vector< std::vector< Tensor< 1, dim > > > strong_jacobian
bool cell_is_local
bool cell_is_cut

Detailed Description

template<int dim>
class StabilizedMethodsTensorCopyData< dim >

Class responsible for storing the information calculated using the assembly of stabilized Tensor<1,dim> 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 Tensor<1,dim> equations because the strong jacobian is stored using a Tensor<1,dim>.

Definition at line 165 of file copy_data.h.

Constructor & Destructor Documentation

◆ StabilizedMethodsTensorCopyData()

template<int dim>
StabilizedMethodsTensorCopyData< dim >::StabilizedMethodsTensorCopyData ( const unsigned int n_dofs,
const unsigned int n_q_points )
inline

Constructor. Allocates the memory for the cell_matrix and cell_rhs 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 177 of file copy_data.h.

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

Member Function Documentation

◆ reset()

template<int dim>
void StabilizedMethodsTensorCopyData< dim >::reset ( )
inline

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

Definition at line 190 of file copy_data.h.

References local_matrix, local_rhs, strong_jacobian, and strong_residual.

Member Data Documentation

◆ cell_is_cut

template<int dim>
bool StabilizedMethodsTensorCopyData< dim >::cell_is_cut

Definition at line 215 of file copy_data.h.

◆ cell_is_local

template<int dim>
bool StabilizedMethodsTensorCopyData< dim >::cell_is_local

Definition at line 214 of file copy_data.h.

◆ local_dof_indices

template<int dim>
std::vector<types::global_dof_index> StabilizedMethodsTensorCopyData< dim >::local_dof_indices

Definition at line 206 of file copy_data.h.

◆ local_matrix

template<int dim>
FullMatrix<double> StabilizedMethodsTensorCopyData< dim >::local_matrix

Definition at line 204 of file copy_data.h.

◆ local_rhs

template<int dim>
Vector<double> StabilizedMethodsTensorCopyData< dim >::local_rhs

Definition at line 205 of file copy_data.h.

◆ strong_jacobian

template<int dim>
std::vector<std::vector<Tensor<1, dim> > > StabilizedMethodsTensorCopyData< dim >::strong_jacobian

Definition at line 208 of file copy_data.h.

◆ strong_residual

template<int dim>
std::vector<Tensor<1, dim> > StabilizedMethodsTensorCopyData< dim >::strong_residual

Definition at line 207 of file copy_data.h.


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