pystra.system.Component#

class Component(name, limit_state=None)[source]#

Bases: object

A named component limit state within a structural system.

Parameters:
  • name (str or LimitState or callable) – Component name. For convenience, if limit_state is omitted this argument is treated as the limit-state object and the name is inferred.

  • limit_state (LimitState or callable, optional) – Component limit-state function. Callables are wrapped in LimitState.

Notes

Component functions may use only a subset of the stochastic model variables. Extra keyword arguments are filtered unless the function accepts **kwargs.

Methods

as_limit_state

Return this component as a Pystra LimitState.

evaluate

Evaluate the component limit state for one or more samples.

failure_mask

Return a boolean mask where the component is failed.

getLimitState

Return this component as a Pystra LimitState.

iter_components

Yield leaf components in this subtree.

evaluate(**kwargs)[source]#

Evaluate the component limit state for one or more samples.

as_limit_state()[source]#

Return this component as a Pystra LimitState.

getLimitState()[source]#

Return this component as a Pystra LimitState.

This legacy-style alias mirrors the existing Pystra getter naming.

iter_components()[source]#

Yield leaf components in this subtree.

property components#

Tuple containing this component.

failure_mask(**kwargs)[source]#

Return a boolean mask where the component is failed.