gp.accel

Syntax

Vector Access

v = gp.accel(gp<,i>)

Get the acceleration vector for the gridpoint. Returns a vector, unless an optional component argument i is supplied, in which case it returns the component value. This is only available if model configure dynamic has been specified.

Returns:

v - acceleration vector or component

Arguments:

gp - gridpoint pointer

i - optional vector component, from 1 to 3

Component Access

f = gp.accel.x(gp)

Get the x-component acceleration vector. This is only available if model configure dynamic has been specified.

Returns:f - x-component acceleration vector
Arguments:gp - gridpoint pointer
f = gp.accel.y(gp)

Get the y-component acceleration vector. This is only available if model configure dynamic has been specified.

Returns:f - y-component acceleration vector
Arguments:gp - gridpoint pointer
f = gp.accel.z(gp)

Get the z-component acceleration vector. This is only available if model configure dynamic has been specified.

Returns:f - z-component acceleration vector
Arguments:gp - gridpoint pointer