ASPECT
Public Member Functions | Private Member Functions | Private Attributes | List of all members
aspect::MatrixFreeStokesOperators::StokesOperator< dim, degree_v, number > Class Template Reference

Inherits Base< dim, ::LinearAlgebra::distributed::BlockVector< number > >.

Public Member Functions

 StokesOperator ()
 
void clear () override
 
void set_cell_data (const OperatorCellData< dim, number > &data)
 
void compute_diagonal () override
 

Private Member Functions

void apply_add (::LinearAlgebra::distributed::BlockVector< number > &dst, const ::LinearAlgebra::distributed::BlockVector< number > &src) const override
 
void local_apply (const ::MatrixFree< dim, number > &data, ::LinearAlgebra::distributed::BlockVector< number > &dst, const ::LinearAlgebra::distributed::BlockVector< number > &src, const std::pair< unsigned int, unsigned int > &cell_range) const
 
void local_apply_face (const ::MatrixFree< dim, number > &data, ::LinearAlgebra::distributed::BlockVector< number > &dst, const ::LinearAlgebra::distributed::BlockVector< number > &src, const std::pair< unsigned int, unsigned int > &face_range) const
 
void local_apply_boundary_face (const ::MatrixFree< dim, number > &data, ::LinearAlgebra::distributed::BlockVector< number > &dst, const ::LinearAlgebra::distributed::BlockVector< number > &src, const std::pair< unsigned int, unsigned int > &face_range) const
 

Private Attributes

const OperatorCellData< dim, number > * cell_data
 

Detailed Description

template<int dim, int degree_v, typename number>
class aspect::MatrixFreeStokesOperators::StokesOperator< dim, degree_v, number >

Operator for the entire Stokes block.

Definition at line 188 of file stokes_matrix_free.h.

Constructor & Destructor Documentation

§ StokesOperator()

template<int dim, int degree_v, typename number>
aspect::MatrixFreeStokesOperators::StokesOperator< dim, degree_v, number >::StokesOperator ( )

Constructor.

Member Function Documentation

§ clear()

template<int dim, int degree_v, typename number>
void aspect::MatrixFreeStokesOperators::StokesOperator< dim, degree_v, number >::clear ( )
override

Reset object.

§ set_cell_data()

template<int dim, int degree_v, typename number>
void aspect::MatrixFreeStokesOperators::StokesOperator< dim, degree_v, number >::set_cell_data ( const OperatorCellData< dim, number > &  data)

Pass in a reference to the problem data.

§ compute_diagonal()

template<int dim, int degree_v, typename number>
void aspect::MatrixFreeStokesOperators::StokesOperator< dim, degree_v, number >::compute_diagonal ( )
override

Computes the diagonal of the matrix. Since matrix-free operators have not access to matrix elements, we must apply the matrix-free operator to the unit vectors to recover the diagonal.

§ apply_add()

template<int dim, int degree_v, typename number>
void aspect::MatrixFreeStokesOperators::StokesOperator< dim, degree_v, number >::apply_add ( ::LinearAlgebra::distributed::BlockVector< number > &  dst,
const ::LinearAlgebra::distributed::BlockVector< number > &  src 
) const
overrideprivate

Performs the application of the matrix-free operator. This function is called by vmult() functions MatrixFreeOperators::Base.

§ local_apply()

template<int dim, int degree_v, typename number>
void aspect::MatrixFreeStokesOperators::StokesOperator< dim, degree_v, number >::local_apply ( const ::MatrixFree< dim, number > &  data,
::LinearAlgebra::distributed::BlockVector< number > &  dst,
const ::LinearAlgebra::distributed::BlockVector< number > &  src,
const std::pair< unsigned int, unsigned int > &  cell_range 
) const
private

Defines the application of the cell matrix.

§ local_apply_face()

template<int dim, int degree_v, typename number>
void aspect::MatrixFreeStokesOperators::StokesOperator< dim, degree_v, number >::local_apply_face ( const ::MatrixFree< dim, number > &  data,
::LinearAlgebra::distributed::BlockVector< number > &  dst,
const ::LinearAlgebra::distributed::BlockVector< number > &  src,
const std::pair< unsigned int, unsigned int > &  face_range 
) const
private

This function doesn't do anything, it's created to use the matrixfree loop.

§ local_apply_boundary_face()

template<int dim, int degree_v, typename number>
void aspect::MatrixFreeStokesOperators::StokesOperator< dim, degree_v, number >::local_apply_boundary_face ( const ::MatrixFree< dim, number > &  data,
::LinearAlgebra::distributed::BlockVector< number > &  dst,
const ::LinearAlgebra::distributed::BlockVector< number > &  src,
const std::pair< unsigned int, unsigned int > &  face_range 
) const
private

Apply the stabilization on free surface faces.

Member Data Documentation

§ cell_data

template<int dim, int degree_v, typename number>
const OperatorCellData<dim,number>* aspect::MatrixFreeStokesOperators::StokesOperator< dim, degree_v, number >::cell_data
private

A pointer to the current cell data that contains viscosity and other required parameters per cell.

Definition at line 251 of file stokes_matrix_free.h.


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