pystra.systems.Component#
Use it: User guide · Worked example · Theory
- class Component(name, limit_state=None)[source]#
Bases:
objectA 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 inLimitState.
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.
- evaluate(**kwargs)[source]#
Evaluate the component limit state for one or more samples.
- Return type:
ndarray