MeshDisplacement.h¶
Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
-
class
MeshDisplacement
¶ Parent class(es)
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.
Create MeshDisplacement of given mesh
- @param mesh (
Mesh
) - Mesh to be displacement defined on.
- @param mesh (
-
MeshDisplacement
(const MeshDisplacement &mesh_displacement)¶ Copy constructor
- @param mesh_displacement (
MeshDisplacement
) - Object to be copied.
- @param mesh_displacement (
-
Function &
operator[]
(const std::size_t i)¶ Extract subfunction In python available as MeshDisplacement.sub(i)
- @param i (std::size_t)
- Index of subfunction.
-
const Function &
operator[]
(const std::size_t i) const¶ Extract subfunction. Const version
- @param i (std::size_t)
- Index of subfunction.
-
void
eval
(Array<double> &values, const Array<double> &x, const ufc::cell &cell) const¶ Evaluate at given point in given cell.
- @param values (Array<double>)
- The values at the point.
- @param x (Array<double>)
- The coordinates of the point.
- @param cell (ufc::cell)
- The cell which contains the given point.