|
| void | Simulation< d >::finalise_init () |
| | Tell NDDEM that the simulations are now initialised and we can start running. More...
|
| |
| void | Simulation< d >::interpret_command (string in) |
| | Interpret individual script command from string. More...
|
| |
| void | Simulation< d >::step_forward (int nt) |
| | Advance the simulation for nt steps (actual duration nt*dt). More...
|
| |
| void | Simulation< d >::finalise () |
| | Settles the simulation, closing open files etc. More...
|
| |
| Vector2Djs | Simulation< d >::getX () |
| | Expose the array of locations. More...
|
| |
| Vector1Djs | Simulation< d >::getRadii () |
| | Expose the array of radii. More...
|
| |
| void | Simulation< d >::setRadius (int id, double radius) |
| | Set the radius of a specific particle. More...
|
| |
| void | Simulation< d >::setMass (int id, double mass) |
| | Set the mass of a specific particle. More...
|
| |
| Vector2Djs | Simulation< d >::getVelocity () |
| | Expose the array of velocities. More...
|
| |
| Vector1Djs | Simulation< d >::getRotationRate () |
| | Expose the array of orientation rate. More...
|
| |
| Vector2Djs | Simulation< d >::getContactForce () |
| | DEPRECATED: Use getContactInfo with the appropriate flags instead. Expose the array of particle id and normal forces. More...
|
| |
| Vector2Djs | Simulation< d >::getContactInfos (int flags) |
| | Expose the array of contact information. More...
|
| |
| void | Simulation< d >::setVelocity (int id, Vector1Djs vel) |
| | Set the array of locations. More...
|
| |
| void | Simulation< d >::setAngularVelocity (int id, Vector1Djs omega) |
| | Set the angular velocity of a single particle. More...
|
| |
| void | Simulation< d >::fixParticle (int a, Vector1Djs loc) |
| | Set a single particle location, velocity, and angular velocity. More...
|
| |
| void | Simulation< d >::setFrozen (int a) |
| | Freeze a single particle. More...
|
| |
| double | Simulation< d >::getTime () |
| | Expose the current time. More...
|
| |
| double | Simulation< d >::getGravityAngle () |
| | Expose the current gravity angle. More...
|
| |
| Vector2Djs | Simulation< d >::getOrientation () |
| | Expose the array of orientation. More...
|
| |
| Vector1Djs | Simulation< d >::getBoundary (int a) |
| | Expose the array of boundaries. More...
|
| |
| Vector2Djs | Simulation< d >::getWallForce () |
| | Expose the array of wall forces. More...
|
| |
| void | Simulation< d >::setExternalForce (int id, int duration, Vector1Djs force) |
| | Set an additional external force on a particle for a certain duration. More...
|
| |
These functions are useful for external access, for interactive runs. This is the basic flow of API calls to run an interactive simulation: