class dolfin.cpp.function.MeshDisplacement(*args)

Bases: dolfin.cpp.function.Expression

This class encapsulates the CG1 representation of the displacement of a mesh as an Expression . This is particularly useful for the displacement returned by mesh smoothers which can subsequently be used in evaluating forms. The value rank is 1 and the value shape is equal to the geometric dimension of the mesh.

Copy constructor

Parameters:MeshDisplacement & mesh_displacement (const) – (MeshDisplacement ) Object to be copied.

Extract subfunction In python available as MeshDisplacement.sub(i)

Parameters:std::size_t i (const) – (std::size_t) Index of subfunction.
Return type:Function &

The membership flag