gp.disp

Syntax

Vector Access

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

Get/set the displacement vector for the gridpoint. Returns a vector, unless an optional component argument i is supplied, in which case it returns the component value.

Note that in FLAC3D, displacement vectors are accumulated from velocities and timesteps every cycle. They have no direct effect on the model state. Displacements can be changed at any time without changing the forces or stresses in the model.

Returns:

v - displacement vector or component

Accepts:

v - displacement vector or component

Arguments:

gp - gridpoint pointer

i - optional vector component, from 1 to 3

Component Access

f = gp.disp.x(gp)
gp.disp.x(gp) = f

Get/set the x-component displacement vector.

Returns:f - x-component displacement vector
Accepts:f - x-component displacement vector
Arguments:gp - gridpoint pointer
f = gp.disp.y(gp)
gp.disp.y(gp) = f

Get/set the y-component displacement vector.

Returns:f - y-component displacement vector
Accepts:f - y-component displacement vector
Arguments:gp - gridpoint pointer
f = gp.disp.z(gp)
gp.disp.z(gp) = f

Get/set the z-component displacement vector.

Returns:f - z-component displacement vector
Accepts:f - z-component displacement vector
Arguments:gp - gridpoint pointer