pystra.systems.Component#

Use it: User guide · Worked example · Theory

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

Bases: object

A named component limit state within a structural system.

Parameters:
  • name (str | LimitState | Callable[..., Any] | None) – 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 | Callable[..., Any] | None) – 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.

get_limit_state

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.

Return type:

ndarray

as_limit_state()[source]#

Return this component as a PySTRA LimitState.

Return type:

LimitState

get_limit_state()[source]#

Return this component as a PySTRA LimitState.

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

Return type:

LimitState

iter_components()[source]#

Yield leaf components in this subtree.

Return type:

Iterator[Component]

property components: tuple[Component, ...]#

Tuple containing this component.

failure_mask(**kwargs)[source]#

Return a boolean mask where the component is failed.

Return type:

bool | ndarray