# gp.mass.add

Syntax

Get/set the added mass vector for the gridpoint. This mass is added to the inertial mass of the gridpoint during equations of motion.

Returns: v - added mass vector v - added mass vector z - zone pointer i - optional vector component, from 1 to 3

Component Access

f := gp.mass.add (gp)->x
gp.mass.add (gp)->x := f

Get/set the $$x$$-component of the added mass vector for the gridpoint.

Returns: f - $$x$$-component of the added mass vector f - $$x$$-component of the added mass vector gp - zone pointer

Access other vector components ($$y$$, $$z$$) 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 (gp.mass.add(gp,<int>)) 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.