Dynamics#

Rerun step to extract the dynamic evolution of fields. The step must be generated by:

Functions

AverageSystemSpanning([cli_args])

Compute averages.

Run([cli_args])

Rerun an event and store output at different time-steps.

restore_system(filepath[, step, branch, ...])

Restore system from file.

Classes

Details

depinning_inertia_2024.Dynamics.AverageSystemSpanning(cli_args=None)#

Compute averages. Groups the output of depinning_inertia_2024.Dynamics.Run().

  • ‘Simple’ averages (macroscopic, on moving particles):

    • For bins of time compared to the time when the event is system spanning.

    • For fixed A.

  • ‘Aligned’ averages (for different element rows), for fixed A.

depinning_inertia_2024.Dynamics.Run(cli_args=None)#

Rerun an event and store output at different time-steps. The time-steps are selected as follows:

  • Given event sizes “A” unit the event is system spanning (--A-step controls interval).

  • Given time-steps if no longer checking at “A” (interval controlled by --t-step).

Customisation:

  • --t-step=0: Break simulation when A = N.

  • --A-step=0: Store at fixed time intervals from the beginning.

Storage:

  • An exact copy of the input file.

  • The position of all particles (“/Dynamics/u/{iiter:d}”).

  • Metadata:

    • "/Dynamics/inc": Increment number (-> time).

    • "/Dynamics/A": Actual number of blocks that yielded at least once.

    • "/Dynamics/stored": The stored “iiter”.

    • "/Dynamics/sync-A": List of “iiter” stored due to given “A”.

    • "/Dynamics/sync-t": List of “iiter” stored due to given “inc” after checking for “A”.

depinning_inertia_2024.Dynamics.restore_system(filepath: str, step: int = None, branch: int = None, apply_trigger: bool = True)#

Restore system from file.

Parameters
  • filepath – Path to file.

  • step – Step to restore.

  • branch – Branch to restore (if Trigger).

  • apply_trigger: – Apply kick (or trigger).

Returns

system, info, with info as follows:: p: Particle kicked (if Trigger). duration: Total event duration (in number of time steps). i_n: Well-index, before trigger.

class depinning_inertia_2024.Dynamics.AlignedAverage(shape)#

Support class for depinning_inertia_2024.Dynamics.AverageSystemSpanning().

subsample(index, data, roll, broken=None)#
Parameters
  • index – Index of the item to add to the average.

  • data – Data to add to the average.

  • roll – Roll to apply to align the data.

  • broken – Array with per weak element whether the element is broken.