implementations.transfer_classes.TransferMesh module

class mesh_to_mesh(fine_prob, coarse_prob, params)[source]

Bases: SpaceTransfer

Custom base_transfer class, implements Transfer.py

This implementation can restrict and prolong between nd meshes with dirichlet-0 or periodic boundaries via matrix-vector products.

Rspace

spatial restriction matrix, dim. Nf x Nc

Pspace

spatial prolongation matrix, dim. Nc x Nf

prolong(G)[source]

Prolongation implementation :param G: the coarse level data (easier to access than via the coarse attribute)

restrict(F)[source]

Restriction implementation :param F: the fine level data (easier to access than via the fine attribute)