pycba.load_cases.LoadCombination#
- class LoadCombination(name, factors, metadata=None)[source]#
Bases:
objectNamed linear combination of load cases.
factorsmay be a numeric vector in load-case order, or a mapping keyed by load-case name or zero-based load-case index.Methods
Analyse this combination as one PyCBA beam analysis.
Analyse this combination as one PyCBA beam analysis.
Analyse this combination and return a plottable
Envelopes.Return this combination's factors in load-case order.
Return this combination's response.
Return the factored PyCBA load matrix for this combination.
Return this combination as one ordinary factored
LoadCase.Attributes
metadatanamefactors- factor_vector(load_cases=None)[source]#
Return this combination’s factors in load-case order.
- Parameters:
load_cases (
Optional[LoadCases]) – The basis collection. When omitted, the basis bound byLoadCases.target_combination()is used.- Return type:
ndarray
- to_LM(load_cases=None)[source]#
Return the factored PyCBA load matrix for this combination.
- Parameters:
load_cases (
Optional[LoadCases]) – The basis collection. When omitted, the basis bound byLoadCases.target_combination()is used.- Return type:
List[List[Union[int,float]]]
- to_load_case(load_cases=None)[source]#
Return this combination as one ordinary factored
LoadCase.- Parameters:
load_cases (
Optional[LoadCases]) – The basis collection. When omitted, the basis bound byLoadCases.target_combination()is used.- Return type:
- response(load_cases=None, response='M')[source]#
Return this combination’s response.
- Parameters:
load_cases (
Optional[LoadCases]) – The basis collection. When omitted, the basis bound byLoadCases.target_combination()is used.response (
str) – Station response to return (default"M").
- Return type:
tuple[ndarray,ndarray]
- analyze(load_cases=None, npts=None)[source]#
Analyse this combination as one PyCBA beam analysis.
- Parameters:
load_cases (
Optional[LoadCases]) – The basis collection. When omitted, the basis bound byLoadCases.target_combination()is used.npts (
Optional[int]) – Number of evaluation points along a member.
- Return type:
- analyse(load_cases=None, npts=None)#
Analyse this combination as one PyCBA beam analysis.
- Parameters:
load_cases (
Optional[LoadCases]) – The basis collection. When omitted, the basis bound byLoadCases.target_combination()is used.npts (
Optional[int]) – Number of evaluation points along a member.
- Return type:
- envelope(load_cases=None, npts=None)[source]#
Analyse this combination and return a plottable
Envelopes.This lands a target or explicit combination directly on a first-class
pycba.results.Envelopes, which can be merged withEnvelopes.combine()(or the|/+operators) and plotted.- Parameters:
load_cases (
Optional[LoadCases]) – The basis collection. When omitted, the basis bound byLoadCases.target_combination()is used.npts (
Optional[int]) – Number of evaluation points along a member.
- Returns:
A single-result
pycba.results.Envelopesfor this combination.- Return type: