Thermal#
Run thermal dynamics.
Functions
|
Branch from prepared stress state and add parameters. |
|
Calculate properties of avalanches. |
|
Calculate properties of avalanches. |
|
Calculate properties of avalanches. |
|
Measure the structure factor of snapshots. |
|
Basic interpretation of the ensemble. |
|
Extract the structure factor at snapshots. |
|
Basic of the ensemble. |
|
Run simulation at fixed stress. |
|
Upgrade data to the current version. |
|
Allocate the system, and restore snapshot. |
|
Add (part of) avalanche measurement. |
|
Add/overwrite snapshot of the current state (fully recoverable). |
|
Open new avalanche. |
Classes
|
|
|
Add points to the system and measure avalanches. |
|
|
|
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 ifreturn_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 ifreturn_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 ifreturn_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 ifreturn_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 ifreturn_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 ifreturn_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 ifreturn_parser
.
- depinning_creep_2024.Thermal.Run(cli_args: list = None, _return_parser: bool = False, _module: str = 'Thermal') None #
Run simulation at fixed stress.
Run
file["/Thermal/snapshots"].attrs["preparation"]
events and take snapshot.Run
file["/Thermal/avalanches/idx"].shape[1]
events, and record:Sequence of failing blocks:
time
t
flat index of failing block
idx
Snapshot.
Run
file["/Thermal/snapshots"].attrs["interval"]
events and take snapshot.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 ifreturn_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 ifreturn_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.