Thermal#

Run thermal dynamics.

Functions

BranchPreparation([cli_args, ...])

Branch from prepared stress state and add parameters.

EnsembleAvalanches_base(cli_args, ...)

Calculate properties of avalanches.

EnsembleAvalanches_chord([cli_args, ...])

Calculate properties of avalanches.

EnsembleAvalanches_clusters([cli_args, ...])

Calculate properties of avalanches.

EnsembleAvalanches_structure([cli_args, ...])

Measure the structure factor of snapshots.

EnsembleInfo([cli_args, _return_parser, _module])

Basic interpretation of the ensemble.

EnsembleStructure([cli_args, ...])

Extract the structure factor at snapshots.

Plot([cli_args, _return_parser, _module])

Basic of the ensemble.

Run([cli_args, _return_parser, _module])

Run simulation at fixed stress.

UpgradeData([cli_args, _return_parser])

Upgrade data to the current version.

allocate_System(file, index[, _module])

Allocate the system, and restore snapshot.

dump_avalanche(index, start_column, group, ...)

Add (part of) avalanche measurement.

dump_snapshot(index, group, system, S, ...)

Add/overwrite snapshot of the current state (fully recoverable).

new_avalanche(index, group, t0, index_snapshot)

Open new avalanche.

Classes

MeasureAvalanches(n, S_bin_edges, ...)

MySegmenterBasic(shape)

Add points to the system and measure avalanches.

MySegmenterChord(shape)

MySegmenterClusters(shape)

Spatially segment avalanches identifying connected clusters.

Details

depinning_creep_2024.Thermal.BranchPreparation(cli_args: list = None, _return_parser: bool = False, _module: str = 'Thermal') None#

Branch from prepared stress state and add parameters.

Parameters
  • cli_args – Command line arguments, see --help for details. Default: sys.argv[1:] is used.

  • _return_parser – Return parser instead of executing (for documentation).

Returns

None if executed, parser if return_parser.

depinning_creep_2024.Thermal.EnsembleAvalanches_base(cli_args: list, _return_parser: bool, _module: str, mymode: str, funcname, doc: str) None#

Calculate properties of avalanches.

Warning

This function assumes separately stored “avalanches” sequences as independent.

depinning_creep_2024.Thermal.EnsembleAvalanches_chord(cli_args: list = None, _return_parser: bool = False, _module: str = 'Thermal')#

Calculate properties of avalanches. - Measure at different times compared to an arbitrary reference time. - Avalanches are measured along ranmdomly chosen lines.

Parameters
  • cli_args – Command line arguments, see --help for details. Default: sys.argv[1:] is used.

  • _return_parser – Return parser instead of executing (for documentation).

Returns

None if executed, parser if return_parser.

depinning_creep_2024.Thermal.EnsembleAvalanches_clusters(cli_args: list = None, _return_parser: bool = False, _module: str = 'Thermal')#

Calculate properties of avalanches. - Measure at different times compared to an arbitrary reference time. - Avalanches are segmented by spatial clustering.

Parameters
  • cli_args – Command line arguments, see --help for details. Default: sys.argv[1:] is used.

  • _return_parser – Return parser instead of executing (for documentation).

Returns

None if executed, parser if return_parser.

depinning_creep_2024.Thermal.EnsembleAvalanches_structure(cli_args: list = None, _return_parser: bool = False, _module: str = 'Thermal')#

Measure the structure factor of snapshots. - Measure at different times compared to an arbitrary reference time. - The interface is arbitrarily assumed flat at the reference time.

Parameters
  • cli_args – Command line arguments, see --help for details. Default: sys.argv[1:] is used.

  • _return_parser – Return parser instead of executing (for documentation).

Returns

None if executed, parser if return_parser.

depinning_creep_2024.Thermal.EnsembleInfo(cli_args: list = None, _return_parser: bool = False, _module: str = 'Thermal') None#

Basic interpretation of the ensemble.

Parameters
  • cli_args – Command line arguments, see --help for details. Default: sys.argv[1:] is used.

  • _return_parser – Return parser instead of executing (for documentation).

Returns

None if executed, parser if return_parser.

depinning_creep_2024.Thermal.EnsembleStructure(cli_args: list = None, _return_parser: bool = False, _module: str = 'Thermal')#

Extract the structure factor at snapshots. See: https://doi.org/10.1103/PhysRevB.74.140201 https://doi.org/10.1103/PhysRevLett.118.147208

Parameters
  • cli_args – Command line arguments, see --help for details. Default: sys.argv[1:] is used.

  • _return_parser – Return parser instead of executing (for documentation).

Returns

None if executed, parser if return_parser.

depinning_creep_2024.Thermal.Plot(cli_args: list = None, _return_parser: bool = False, _module: str = 'Thermal') None#

Basic of the ensemble.

Parameters
  • cli_args – Command line arguments, see --help for details. Default: sys.argv[1:] is used.

  • _return_parser – Return parser instead of executing (for documentation).

Returns

None if executed, parser if return_parser.

depinning_creep_2024.Thermal.Run(cli_args: list = None, _return_parser: bool = False, _module: str = 'Thermal') None#

Run simulation at fixed stress.

  1. Run file["/Thermal/snapshots"].attrs["preparation"] events and take snapshot.

  2. Run file["/Thermal/avalanches/idx"].shape[1] events, and record:

    1. Sequence of failing blocks:

      • time t

      • flat index of failing block idx

    2. Snapshot.

  3. Run file["/Thermal/snapshots"].attrs["interval"] events and take snapshot.

  4. Repeat from 1.

Parameters
  • cli_args – Command line arguments, see --help for details. Default: sys.argv[1:] is used.

  • _return_parser – Return parser instead of executing (for documentation).

Returns

None if executed, parser if return_parser.

depinning_creep_2024.Thermal.UpgradeData(cli_args: list = None, _return_parser: bool = False)#

Upgrade data to the current version.

Parameters
  • cli_args – Command line arguments, see --help for details. Default: sys.argv[1:] is used.

  • _return_parser – Return parser instead of executing (for documentation).

Returns

None if executed, parser if return_parser.

depinning_creep_2024.Thermal.allocate_System(file: File, index: int, _module: str = 'Thermal') SystemClass#

Allocate the system, and restore snapshot.

Parameters
  • param – Opened file.

  • index – Index of the snapshot to load.

  • _module – Name of the module calling this function.

Returns

System.

depinning_creep_2024.Thermal.dump_avalanche(index: int, start_column: int, group: Group, avalanche: Avalanche, _module: str) None#

Add (part of) avalanche measurement.

Parameters
  • index – Index of the snapshot to overwrite (“row”).

  • start_column – Start index of the items in the avalanche sequence (“column”).

  • group – Group to store the snapshot in.

  • avalanche – Measurement.

  • _module – Module name.

depinning_creep_2024.Thermal.dump_snapshot(index: int, group: Group, system: SystemClass, S: int, index_avalanche: int) None#

Add/overwrite snapshot of the current state (fully recoverable).

Parameters
  • index – Index of the snapshot to overwrite.

  • group – Group to store the snapshot in.

  • system – System.

  • S – #failures since the last snapshot.

  • index_avalanche – Index of the avalanche after which the snapshot was taken (-1 if not taken directly after an avalanche).

depinning_creep_2024.Thermal.new_avalanche(index: int, group: Group, t0: float, index_snapshot: int)#

Open new avalanche.

Parameters
  • t0 – Time before starting to measure the avalanche.

  • index_snapshot – Index of the snapshot at the start of the avalanche (-1 if no snapshot is stored).

class depinning_creep_2024.Thermal.MeasureAvalanches(n: int, S_bin_edges: array, A_bin_edges: array, ell_bin_edges: array, n_moments: int)#
class depinning_creep_2024.Thermal.MySegmenterBasic(shape)#

Add points to the system and measure avalanches. The base class only measures S, the amount of times each block has failed.

reset()#

Reset to initial state: a completely flat interface.

class depinning_creep_2024.Thermal.MySegmenterChord(shape)#
reset()#

Reset to initial state: a completely flat interface.

class depinning_creep_2024.Thermal.MySegmenterClusters(shape)#

Spatially segment avalanches identifying connected clusters.

reset()#

Reset to initial state: a completely flat interface.