itasca.gridpointarray

Array interface for FLAC gridpoints.

Functions

itasca.gridpointarray.disp() → array float{gridpoint,2}.

Get a numpy array of the gridpoint displacement.

itasca.gridpointarray.extra(slot: int) → array float{gridpoint} or float{gridpoint}.

Get the gridpoint extra data in the given slot as an array. Extra variables accessed by array must be of type float or vec.

itasca.gridpointarray.fill_disp(data: array float{gridpoint, 2}) → None.

Fill an existing array with the gridpoint displacement. The array must be the correct shape.

itasca.gridpointarray.fill_force_app(data: array float{gridpoint, 2}) → None.

Fill an existing array with the gridpoint applied force. The array must be the correct shape.

itasca.gridpointarray.fill_force_unbal(data: array float{gridpoint, 2}) → None.

Fill an existing array with the gridpoint unbalanced force. The array must be the correct shape.

itasca.gridpointarray.fill_pos(data: array float{gridpoint, 2}) → None.

Fill an existing array with the gridpoint centroid location. The array must be the correct shape.

itasca.gridpointarray.fill_vel(data: array float{gridpoint, 2}) → None.

Fill an existing array with the gridpoint velocity. The array must be the correct shape.

itasca.gridpointarray.fixity() → array int{gridpoint,3}.

Get a NumPy array of the gridpoint fixity condition.

itasca.gridpointarray.force_app() → array float{gridpoint,2}.

Get a numpy array of the gridpoint applied force.

itasca.gridpointarray.force_unbal() → array float{gridpoint,2}.

Get a numpy array of the gridpoint unbalanced force.

itasca.gridpointarray.ids() → array int{gridpoint}.

Get the gridpoint ids as an array.

itasca.gridpointarray.live_mechanical() → array bool{nzone}.

Return an array of True/False values for each gridpoint, a value of True indicates that a gridpoint is attached to at least one zone with an active mechanical model.

itasca.gridpointarray.pos() → array float{gridpoint,2}.

Get a numpy array of the gridpoint centroid location.

itasca.gridpointarray.set_disp(data: array float{gridpoint, 2}) → None.

Set the gridpoint displacement from an array.

itasca.gridpointarray.set_extra(slot: int, data: array float{gridpoint} or float{gridpoint}) → None.

Set the gridpoint extra data in the given slot with an array. Extra variables set by array must be of type float or vec.

itasca.gridpointarray.set_fixity(array bool{gridpoint, 3}) → None.

Set the gridpoint fixity condition.

itasca.gridpointarray.set_force_app(data: array float{gridpoint, 2}) → None.

Set the gridpoint applied force from an array.

itasca.gridpointarray.set_pos(data: array float{gridpoint, 2}) → None.

Set the gridpoint centroid location from an array.

itasca.gridpointarray.set_vel(data: array float{gridpoint, 2}) → None.

Set the gridpoint velocity from an array.

itasca.gridpointarray.stiffness() → array double{gridpoint}.

Get a NumPy array of the accumulated gridpoint effective stiffness.

itasca.gridpointarray.vel() → array float{gridpoint,2}.

Get a numpy array of the gridpoint velocity.

itasca.gridpointarray.zones() → tuple of tuples of int.

Return the indices of the zones which each gridpoint is attached to. The indices are relative to the arrays returned by the zonearray interface functions. Note that the return type is not a numpy array in this case.