Retrieve the Position of a Geometry
You can retrieve the position of a Geometry from EDEM at
any point in a coupled code when EDEM is not executing a
simulation using the getGeometryPosition
method.
-
In the Geometry tabbed page, define the position of the center of mass of the
Geometry.
The data returned from the method is the position of the center of mass of the Geometry (defined before simulation using the EDEM Geometry tab in the GUI) and the orientation of the Geometry on the current EDEM Time Step.
-
To establish how far a Geometry section has moved since the start of the
simulation use the
getGeometryTranslation
method.Note: ThegetGeometryPosition
method is intended to establish the position of a Geometry at the beginning of a simulation or when resuming the simulation from the latest Time Step. It is not recommended to continuously update the position of a Geometry during a simulation using this method, and doing so may lead to generating an accumulating error in position.