Driver Input / Output¶
Checkpoint and restart¶
The drivers are written automatically with the particle checkpoints, every simulation_dump_frequency steps: their
state is saved in <dir_name>/CheckpointFiles/drivers_%010d.msp (operator dump_drivers), in a plain drivers:
storage list. For an RShape driver, a .shp file with its geometry is also written in CheckpointFiles/.
To restart with drivers, use the restart operator: it reads
drivers_%010d.msp back automatically (with read_drivers); nothing has to be added to includes:. See
Drivers format for dump_drivers and read_drivers.
Legacy driver files
The pipeline also writes a legacy file, driver_%010d.msp (operator write_op_drivers): a
setup_drivers:/register_*: snippet to paste into a top-level includes: list for a manual restart, without
the restart operator. You should not need it: prefer the dump_drivers / restart path.
ParaView¶
RShape drivers are also written with every ParaView output (simulation_paraview_frequency), translated and
oriented, in <dir_name>/ParaviewOutputFiles/ as shape_name_iteration.vtk.
print_drivers¶
Prints a summary of the drivers. It is called by default at the initialization of a simulation.
==================== Driver Configurations =======================
===== Summary
Drivers Stats
Number of drivers: 3
Number of Cylinders: 1
Number of Surfaces: 0
Number of Balls: 0
Number of Stl_meshs: 2
Number of Undefined Drivers: 0
===== List Of Drivers
Driver [0]:
Driver Type: RSHAPE
Name : base
Center : 0,0,-20
Vel : 0,0,0
AngVel : 0,0,0
Quat : 1 0 0 0
Number of faces : 52
Number of edges : 150
Number of vertices : 100
Driver [1]:
Driver Type: Cylinder
Radius: 25
Axis : 1,1,0
Center: 0,0,0
Vel : 0,0,0
AngVel: 0,0,0
Driver [2]:
Driver Type: RSHAPE
Name : palefine
Center : 0,0,1.5
Vel : 0,0,-0.0174
AngVel : 0,0,-0.004
Quat : 1 0 0 0
Number of faces : 25952
Number of edges : 77856
Number of vertices : 31647
=================================================================