rblock.facet.centroid

Syntax

v = rblock.facet.centroid(p,if)

Get the facet centroid. if can take values from 1 to rblock.facet.num. The facets correspond to the entries returned by rblock.facet.map and rblock.vertex.map.

Returns:

v - facet centroid vector

Arguments:

p - rigid block pointer

if - facet number

Component Access

f = rblock.facet.centroid (p, if)->x

f = rblock.facet.centroid.x(p,if)

Get the \(x\)-component of the facet centroid. if can take values from 1 to rblock.facet.num. The facets correspond to the entries returned by rblock.facet.map and rblock.vertex.map.

Returns:

f - \(x\)-component of the facet centroid vector

Arguments:

p - rigid block pointer

if - facet number

Access other vector components (\(y\), \(z\) (3D ONLY)) by substituting the component name where \(x\) appears above. See Member Access Operator for information about accessing members from data types using ->.

Deprecated Component Access

Component access by adding an optional integer in the function arguments (e.g., f = rblock.facet.centroid(p, 1, 3)) is deprecated. It remains available but will not be supported in future versions. See Component Access with Integers in FISH on the Deprecated Commands and FISH page for details.

This is hidden. Added to include remaining vector component access functions for inline help.

f = rblock.facet.centroid.y(p,if)
f = rblock.facet.centroid.z(p,if) (3D ONLY)