pystra.analysis.AnalysisObject#

class AnalysisObject(stochastic_model=None, limit_state=None, analysis_options=None)[source]#

Bases: object

Base class for reliability analysis objects (FORM, SORM, MC).

Note

Subclasses should use self.N_HYPH for the width of console separator lines printed by showResults().

Handles the common set-up shared by all analysis types: storing the stochastic model, limit state, and analysis options, and providing the init_run method that computes the Nataf correlation and isoprobabilistic transformation before the analysis-specific iteration begins.

Parameters:
  • stochastic_model (StochasticModel, optional) – The probabilistic model.

  • limit_state (LimitState, optional) – The limit state function.

  • analysis_options (AnalysisOptions, optional) – Algorithm settings.

model#
Type:

StochasticModel

limitstate#
Type:

LimitState

options#
Type:

AnalysisOptions

transform#
Type:

Transformation

results_valid#

True after a successful run().

Type:

bool

Methods

init_run

Initialise the Nataf transformation before the analysis loop.

init_run()[source]#

Initialise the Nataf transformation before the analysis loop.

Computes the modified (Nataf) correlation matrix and its factorisation. Must be called at the start of every run() method in subclasses.