Skip to content

Driver Extractor

The driver extractor records quantities of the drivers in an output file. Trackers are added, each one identified by a driver id and the fields to record. The extractor is part of the default workflow, called every simulation_driver_extractor_frequency steps; without any tracker, it does nothing.

Trackable fields

Name Type Description
type int driver type identifier
rx, ry, rz double position
vx, vy, vz double linear velocity
vrotx, vroty, vrotz double angular velocity
fx, fy, fz double force
momx, momy, momz double torque

Adding trackers

Trackers are registered with register_driver_extractor, each with a driver id and a list of fields:

setup_drivers:
  ...

input_data:
  - register_driver_extractor:
     trackers:
       - id: 2
         fields: [vroty, fx, fy, fz, momy]
       - id: 0
         fields: [fy]
       - id: 1
         fields: [fy]
     verbosity: true

With verbosity: true, the extractor prints information about the registered trackers at initialization. After the initialization, exaDEM also prints the extractor summary:

======= Driver Extractor ========
Tracked Driver Id: 2 | Fields: [ vroty fx fy fz momy ]
Tracked Driver Id: 0 | Fields: [ fy ]
Tracked Driver Id: 1 | Fields: [ fy ]
=================================

Output format

The extractor writes a single text file, DriverExtractor/data.txt, with the time history of all the tracked fields. Each column is named field_driverId, and the first column is always the physical time:

time vroty_2 fx_2 fy_2 fz_2 momy_2 fy_0 fy_1
0.000500 0.250000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
0.005000 0.250000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000
...
9.995000 0.250000 -9.204748 -0.436030 -82.881255 -78.163145 21.723900 -17.480386
10.000000 0.250000 -10.570360 -0.150192 -83.541703 -75.363659 21.616698 -16.890325

Note

  • Each tracker adds one or more columns, in the order of registration of the trackers and fields.
  • Missing or inactive drivers give zero or unchanged values, depending on the simulation state.
  • The time column is the physical time, not the step.
  • Driver forces and moments are reduced over the MPI processes.