ObiActor

March 28, 2022 ยท View on GitHub

from tdw.obi_data.obi_actor import ObiActor

Data for an Obi actor.


Fields

  • object_id The object ID.

  • positions The positions of each particle as a numpy array.

  • velocities The velocities of each particle as a numpy array.


Functions

__init__

ObiActor(object_id, solver_id, object_index)

ParameterTypeDefaultDescription
object_idintThe object ID.
solver_idintThe ID of the object's Obi solver.
object_indexintThe index of the object in the ObiParticles output data.

on_communicate

self.on_communicate(obi_particles)

On communicate(), update self.positions and self.velocities.

ParameterTypeDefaultDescription
obi_particlesObiParticlesObiParticles output data.