implementations.transfer_classes.TransferMesh_NoCoarse module

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

Bases: space_transfer

Custon 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

Parameters:

G – the coarse level data (easier to access than via the coarse attribute)

restrict(F)[source]

Restriction implementation

Parameters:

F – the fine level data (easier to access than via the fine attribute)