GooseEPM v0.11.0
|
Elasto-plastic model. More...
Namespaces | |
namespace | array_type |
Container type. | |
Classes | |
class | Avalanche |
Measure avalanches in a system. More... | |
class | AvalancheSegmenter |
Segment event in spatially correlated avalanches. More... | |
class | SystemBase |
class | SystemDepinningSpringLoading |
System loaded using a spring. More... | |
class | SystemDepinningStrainControl |
System for which the average strain is fixed. More... | |
class | SystemDepinningStressControl |
System for which the average stress is fixed. More... | |
class | SystemDepinningThermalStressControl |
System for which the average stress is fixed. More... | |
class | SystemSpringLoading |
System loaded using a spring. More... | |
class | SystemStrainControl |
System for which the average strain is fixed. More... | |
class | SystemStressControl |
System for which the average stress is fixed. More... | |
class | SystemThermalStressControl |
System for which the average stress is fixed. More... | |
Functions | |
std::tuple< array_type::tensor< size_t, 1 >, array_type::tensor< size_t, 1 >, array_type::tensor< size_t, 1 > > | segment_avalanche (const array_type::tensor< bool, 1 > &condition, array_type::tensor< size_t, 1 > idx, bool first=true, bool last=true) |
Compute avalanche properties of a series of segments. | |
array_type::tensor< size_t, 1 > | cumsum_n_unique (const array_type::tensor< size_t, 1 > &idx) |
Cumulative sum of the number of unique items in the slice up to that index. | |
std::string | version () |
Version string (for example "0.8.0" ). | |
std::vector< std::string > | version_dependencies () |
Versions of this library and of all of its dependencies. | |
std::vector< std::string > | version_compiler () |
Information on the compiler, the platform, the C++ standard, and the compilation date. | |
Elasto-plastic model.
|
inline |
Cumulative sum of the number of unique items in the slice up to that index.
For example:
>>> idx = [0, 3, 1, 0, 6, 6, 7] >>> print(cumsum_n_unique(idx)) [1, 2, 3, 3, 4, 4, 5]
idx | Array of indices. |
|
inline |
Compute avalanche properties of a series of segments.
An avalanche is defined as a connected series of items for which the condition is true. For example:
>>> idx = [0, 3, 1, 0, 6, 6, 7] >>> condition = [0, 1, 1, 0, 1, 1, 1] >>> S, A, index = segment_avalanche(condition, idx) >>> print(S) [2, 3] >>> print(A) [2, 3] >>> print(index) [1, 4]
condition[-1] == True
, the last segment will be ignored, as it might not yet be finished.condition | Condition to segment on. |
idx | Block indices. |
first | If false the first avalanche is ignored if condition[0] = True . |
last | If false the last avalanche is ignored if condition[-1] = True . |
S
: The size of each avalanche (the number of yield events).A
: The number of unique blocks that yielded in each avalanche.index
: The index in condition
and idx
where each avalanche starts.
|
inline |
|
inline |