GooseEPM v0.11.0
Loading...
Searching...
No Matches
GooseEPM Namespace Reference

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.
 

Detailed Description

Elasto-plastic model.

Function Documentation

◆ cumsum_n_unique()

array_type::tensor< size_t, 1 > GooseEPM::cumsum_n_unique ( const array_type::tensor< size_t, 1 > &  idx)
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]
Parameters
idxArray of indices.
Returns
array of unsigned integers of same size as idx.

Definition at line 2088 of file System.h.

◆ segment_avalanche()

std::tuple< array_type::tensor< size_t, 1 >, array_type::tensor< size_t, 1 >, array_type::tensor< size_t, 1 > > GooseEPM::segment_avalanche ( const array_type::tensor< bool, 1 > &  condition,
array_type::tensor< size_t, 1 >  idx,
bool  first = true,
bool  last = true 
)
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]
Note
If condition[-1] == True, the last segment will be ignored, as it might not yet be finished.
Parameters
conditionCondition to segment on.
idxBlock indices.
firstIf false the first avalanche is ignored if condition[0] = True.
lastIf false the last avalanche is ignored if condition[-1] = True.
Returns
  • 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.

Definition at line 1978 of file System.h.

◆ version()

std::string GooseEPM::version ( )
inline

Version string (for example "0.8.0").

Returns
String.

Definition at line 54 of file version.h.

◆ version_compiler()

std::vector< std::string > GooseEPM::version_compiler ( )
inline

Information on the compiler, the platform, the C++ standard, and the compilation date.

Returns
List of strings.

Definition at line 81 of file version.h.

◆ version_dependencies()

std::vector< std::string > GooseEPM::version_dependencies ( )
inline

Versions of this library and of all of its dependencies.

The output is a list of strings, e.g.:

"gooseepm=0.7.0",
"xtensor=0.20.1"
...
Returns
List of strings.

Definition at line 69 of file version.h.