GooseEPM v0.11.0
Loading...
Searching...
No Matches
GooseEPM::Avalanche Class Reference

Measure avalanches in a system. More...

#include <GooseEPM/System.h>

Public Member Functions

std::string repr () const
 Basic class info.
 
const array_type::tensor< size_t, 1 > & idx () const
 Index of failing block.
 
const array_type::tensor< double, 1 > & x () const
 Distance to yielding of the failing block before failing.
 
const array_type::tensor< double, 1 > & t () const
 Time of the failure.
 
template<class System , class Func >
void makeFailureSteps (System &system, size_t n, Func func)
 Run the measurement.
 
template<class System , class Func >
size_t makeFailureSteps_chrono (System &system, size_t n, double elapsed, Func func)
 Run the measurement.
 
template<class System >
void makeAthermalFailureSteps (System &system, size_t n)
 Run SystemBase::makeAthermalFailureStep and store the evolution.
 
template<class System >
void makeWeakestFailureSteps (System &system, size_t n, bool allow_stable=false)
 Run SystemBase::makeWeakestFailureStep and store the evolution.
 
template<class System >
void makeThermalFailureSteps (System &system, size_t n)
 Run SystemBase::makeThermalFailureStep and store the evolution.
 
template<class System >
size_t makeAthermalFailureSteps_chrono (System &system, size_t n, double elapsed)
 Run SystemBase::makeAthermalFailureStep and store the evolution.
 
template<class System >
size_t makeWeakestFailureSteps_chrono (System &system, size_t n, double elapsed, bool allow_stable=false)
 Run SystemBase::makeWeakestFailureStep and store the evolution.
 
template<class System >
size_t makeThermalFailureSteps_chrono (System &system, size_t n, double elapsed)
 Run SystemBase::makeThermalFailureStep and store the evolution.
 

Detailed Description

Measure avalanches in a system.

Run nsteps failure steps (which is referred to as an "avalanche"). For each failure step the following quantities are recorded:

Note
To get properties of the avalanche, use:

You can call the following failure steps:

Otherwise use Avalanche::makeFailureSteps with the proper function.

Definition at line 2595 of file System.h.

Member Function Documentation

◆ idx()

const array_type::tensor< size_t, 1 > & GooseEPM::Avalanche::idx ( ) const
inline

Index of failing block.

Returns
list unsigned integers

Definition at line 2618 of file System.h.

◆ makeAthermalFailureSteps()

template<class System >
void GooseEPM::Avalanche::makeAthermalFailureSteps ( System &  system,
size_t  n 
)
inline

Run SystemBase::makeAthermalFailureStep and store the evolution.

Parameters
systemSystem to run.
nNumber of steps to run.

Definition at line 2725 of file System.h.

◆ makeAthermalFailureSteps_chrono()

template<class System >
size_t GooseEPM::Avalanche::makeAthermalFailureSteps_chrono ( System &  system,
size_t  n,
double  elapsed 
)
inline

Run SystemBase::makeAthermalFailureStep and store the evolution.

Parameters
systemSystem to run.
nMaximum number of steps to run.
elapsedMaximum runtime in seconds.

Definition at line 2762 of file System.h.

◆ makeFailureSteps()

template<class System , class Func >
void GooseEPM::Avalanche::makeFailureSteps ( System &  system,
size_t  n,
Func  func 
)
inline

Run the measurement.

Parameters
systemSystem to run.
nNumber of steps to run.
funcMember function to call.

Definition at line 2648 of file System.h.

◆ makeFailureSteps_chrono()

template<class System , class Func >
size_t GooseEPM::Avalanche::makeFailureSteps_chrono ( System &  system,
size_t  n,
double  elapsed,
Func  func 
)
inline

Run the measurement.

Parameters
systemSystem to run.
nMaximum number of steps to run.
elapsedMaximum run time in seconds.
funcMember function to call.
Returns
Number of steps ran.

Definition at line 2671 of file System.h.

◆ makeThermalFailureSteps()

template<class System >
void GooseEPM::Avalanche::makeThermalFailureSteps ( System &  system,
size_t  n 
)
inline

Run SystemBase::makeThermalFailureStep and store the evolution.

Parameters
systemSystem to run.
nNumber of steps to run.

Definition at line 2750 of file System.h.

◆ makeThermalFailureSteps_chrono()

template<class System >
size_t GooseEPM::Avalanche::makeThermalFailureSteps_chrono ( System &  system,
size_t  n,
double  elapsed 
)
inline

Run SystemBase::makeThermalFailureStep and store the evolution.

Parameters
systemSystem to run.
nMaximum number of steps to run.
elapsedMaximum runtime in seconds.

Definition at line 2796 of file System.h.

◆ makeWeakestFailureSteps()

template<class System >
void GooseEPM::Avalanche::makeWeakestFailureSteps ( System &  system,
size_t  n,
bool  allow_stable = false 
)
inline

Run SystemBase::makeWeakestFailureStep and store the evolution.

Parameters
systemSystem to run.
nNumber of steps to run.
allow_stableIf true, allow the failure of a stable block.

Definition at line 2737 of file System.h.

◆ makeWeakestFailureSteps_chrono()

template<class System >
size_t GooseEPM::Avalanche::makeWeakestFailureSteps_chrono ( System &  system,
size_t  n,
double  elapsed,
bool  allow_stable = false 
)
inline

Run SystemBase::makeWeakestFailureStep and store the evolution.

Parameters
systemSystem to run.
nMaximum number of steps to run.
elapsedMaximum runtime in seconds.
allow_stableIf true, allow the failure of a stable block.

Definition at line 2777 of file System.h.

◆ repr()

std::string GooseEPM::Avalanche::repr ( ) const
inline

Basic class info.

Returns
std::string

Definition at line 2608 of file System.h.

◆ t()

const array_type::tensor< double, 1 > & GooseEPM::Avalanche::t ( ) const
inline

Time of the failure.

Returns
list of doubles

Definition at line 2636 of file System.h.

◆ x()

const array_type::tensor< double, 1 > & GooseEPM::Avalanche::x ( ) const
inline

Distance to yielding of the failing block before failing.

Returns
list of doubles

Definition at line 2627 of file System.h.


The documentation for this class was generated from the following file: