pystra.system.Component#
- class Component(name, limit_state=None)[source]#
Bases:
objectA 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
Return this component as a Pystra
LimitState.Evaluate the component limit state for one or more samples.
Return a boolean mask where the component is failed.
Return this component as a Pystra
LimitState.Yield leaf components in this subtree.
- getLimitState()[source]#
Return this component as a Pystra
LimitState.This legacy-style alias mirrors the existing Pystra getter naming.
- property components#
Tuple containing this component.