fosanalysis
A framework to evaluate distributed fiber optic sensor data
Loading...
Searching...
No Matches
fosanalysis.crackmonitoring.separation.CrackLengths Class Reference

Assigns the transfer length to a all cracks.Crack objects in a cracks.CrackList. More...

Inheritance diagram for fosanalysis.crackmonitoring.separation.CrackLengths:

Public Member Functions

 __init__ (self, **dict methods)
 Constructs a CrackLength object.
 
cracks.CrackList run (self, x, strain, cracks.CrackList crack_list)
 Estimates the transfer length of all cracks according to methods.
 
- Public Member Functions inherited from fosanalysis.utils.base.Task
 __init__ (self, *args, **kwargs)
 
- Public Member Functions inherited from fosanalysis.utils.base.Base
 __init__ (self, *args, **kwargs)
 Construct the object and warn about unused/unknown arguments.
 

Public Attributes

 methods = methods if methods else {"min": True, "length": 0.2, "reset": "inner"}
 Dictionary of methods to restrict the effective lengths of a crack with their respective options.
 

Protected Member Functions

int _first_index_leq_threshold (self, data, threshold)
 Return the index of the first entry in data, that is less or equal than the given threshold and None, if no entry fulfills this condition.
 

Detailed Description

Assigns the transfer length to a all cracks.Crack objects in a cracks.CrackList.

Definition at line 15 of file separation.py.

Constructor & Destructor Documentation

◆ __init__()

fosanalysis.crackmonitoring.separation.CrackLengths.__init__ ( self,
**dict methods )

Constructs a CrackLength object.

Parameters
methodsDictionary of methods to restrict the effective lengths of a crack with their respective options. For more, see methods.

Definition at line 19 of file separation.py.

Member Function Documentation

◆ _first_index_leq_threshold()

int fosanalysis.crackmonitoring.separation.CrackLengths._first_index_leq_threshold ( self,
data,
threshold )
protected

Return the index of the first entry in data, that is less or equal than the given threshold and None, if no entry fulfills this condition.

Definition at line 48 of file separation.py.

Here is the caller graph for this function:

◆ run()

cracks.CrackList fosanalysis.crackmonitoring.separation.CrackLengths.run ( self,
x,
strain,
cracks.CrackList crack_list )

Estimates the transfer length of all cracks according to methods.

Limits that are None are replaced by \(-\infty\) for the left and \(\infty\) right limit prior to the assignments

Parameters
xPositional x values.
strainList of strain values.
crack_listcracks.CrackList with cracks.Crack objects, that already have assigned locations.
Returns
Returns a cracks.CrackList object.

Definition at line 56 of file separation.py.

Here is the call graph for this function:

Member Data Documentation

◆ methods

fosanalysis.crackmonitoring.separation.CrackLengths.methods = methods if methods else {"min": True, "length": 0.2, "reset": "inner"}

Dictionary of methods to restrict the effective lengths of a crack with their respective options.

All given methods are carried out, the transfer length will be the tightest interval (the limit closest to the cracks location wins). Default is: {"min": True, "length": 0.2, "reset": "inner"}.

Availabe methods/options:

  • "min": <any value> (activated by default) Crack segments are split at the local minimum in-between two cracks. The outer limits of the outermost cracks are not changed. This option is activated by the sole existence of the key "min" methods. The value assigned to the key is disregarded, as it has no further options.
  • "middle": <any value>: Crack segments are split in the middle inbetween crack locations. The outer limits of the outermost cracks are not changed. This option is activated by the sole existence of the key "middle" methods. The value assigned to the key is disregarded, as it has no further options.
  • "threshold": <threshold: float>: Crack segment is limited at the nearest point of x, where the strain falls below the threshold strain.
  • "length": <length: float>: (activated by default with 0.2) Crack segment is limited in its radius by the constant value. The entry in the x data, with the largest distance to the crack location, but inside this radius is taken as the limit.
  • "reset": "str" = "<option>" If provided, the limits of the transfer lengths are set to \f$-\infty\f$ for the left and \f$\infty\f$ right limit prior to the assignments. In order to purge the information, that is initially provided e.g., by \ref finding.CrackFinder.run(), use this option. Available options: -"all"The limits of all cracks are replaced. -"inner"(default) The outer limits of the outermost cracks are excluded from resetting. -"no"` Deactivate reset, leave the data as provided.

Definition at line 47 of file separation.py.


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