Public Member Functions

ma::SolutionTransfers Class Reference

a meta-object that carries out a series of transfers More...

Inheritance diagram for ma::SolutionTransfers:
ma::SolutionTransfer ma::AutoSolutionTransfer

List of all members.

Public Member Functions

void add (SolutionTransfer *t)
 add another field transfer object
virtual bool hasNodesOn (int dimension)
 return true if this field has nodes on entities of this dimension
virtual void onVertex (apf::MeshElement *parent, Vector const &xi, Entity *vert)
 perform solution transfer on refined vertex
virtual void onRefine (Entity *parent, EntityArray &newEntities)
 perform solution transfer on refined entities
virtual void onCavity (EntityArray &oldElements, EntityArray &newEntities)
 perform solution transfer on cavity replacement

Detailed Description

a meta-object that carries out a series of transfers

use this class to put together solution transfer objects for several fields before giving them to MeshAdapt.


Member Function Documentation

virtual void ma::SolutionTransfers::onCavity ( EntityArray oldElements,
EntityArray newEntities 
) [virtual]

perform solution transfer on cavity replacement

this will be called for operations like edge collapses and edge swaps. Both the old and new cavity are given, and the code should transfer solution into into the new cavity.

Parameters:
oldElements all elements in the old cavity
newEntities newly created entities which need transfer

Reimplemented from ma::SolutionTransfer.

virtual void ma::SolutionTransfers::onRefine ( Entity parent,
EntityArray newEntities 
) [virtual]

perform solution transfer on refined entities

when there are nodes on entities other than vertices, it becomes necessary to transfer solution to these as well. If this is not the case, don't override this.

Parameters:
parent the parent element
newEntities entities created during refinement. this may contain some entities that don't have nodes, so check them

Reimplemented from ma::SolutionTransfer.

virtual void ma::SolutionTransfers::onVertex ( apf::MeshElement parent,
Vector const &  xi,
Entity vert 
) [virtual]

perform solution transfer on refined vertex

this vertex was created while refining an element. Given coordinates in the parent element's parametric space, transfer the solution from the parent element to the vertex

Parameters:
parent MeshElement for the parent. can be given to apf::createElement so that element interpolation can be used.
xi Coordinates of the vertex in the parent element's parametric space

Reimplemented from ma::SolutionTransfer.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines