LimitState¶
- class persalys.LimitState(*args)¶
Create a limit state.
- Parameters:
- namestr
Name
- physicalModel
PhysicalModel
Physical model
- outputNamestr
Interest variable name
- operator
ComparisonOperator
Comparison operator against threshold (optional)
- thresholdfloat
Threshold value (optional)
Examples
>>> import openturns as ot >>> import persalys
Create the model:
>>> R = persalys.Input('R', 0., ot.LogNormalMuSigma(300., 30., 0.).getDistribution(), 'Yield strength') >>> F = persalys.Input('F', 0., ot.Normal(75000., 5000.), 'Traction load') >>> G = persalys.Output('G', 'deviation') >>> physicalModel = persalys.SymbolicPhysicalModel('model1', [R, F], [G], ['R-F/(pi_*100.0)'])
Create the limit state:
>>> limitState = persalys.LimitState('ls1', physicalModel, 'G', ot.Less(), 0.)
Methods
Accessor to the object's name.
getId
()Accessor to the object's id.
Accessor to the underlying implementation.
getName
()Accessor to the object's name.
Comparison operator accessor.
Accessor to the name of output variable of interest in limit state.
Physical model for limit state accessor.
Python script for limit state accessor.
Threshold value for limit state accessor.
isValid
()Whether limit state is valid.
setName
(name)Accessor to the object's name.
setOperator
(comparisonOperator)Comparison operator accessor.
setOutputName
(outputName)Accessor to the name of output variable of interest in limit state.
setThreshold
(threshold)Threshold value for limit state accessor.
GetClassName
- __init__(*args)¶
- getClassName()¶
Accessor to the object’s name.
- Returns:
- class_namestr
The object class name (object.__class__.__name__).
- getId()¶
Accessor to the object’s id.
- Returns:
- idint
Internal unique identifier.
- getImplementation()¶
Accessor to the underlying implementation.
- Returns:
- implImplementation
A copy of the underlying implementation object.
- getName()¶
Accessor to the object’s name.
- Returns:
- namestr
The name of the object.
- getOperator()¶
Comparison operator accessor.
- Returns:
- operator
openturns.ComparisonOperator
Comparison operator
- operator
- getOutputName()¶
Accessor to the name of output variable of interest in limit state.
- Returns:
- outputNamestr
Interest variable name
- getPhysicalModel()¶
Physical model for limit state accessor.
- Returns:
- model
PhysicalModel
Physical model
- model
- getPythonScript()¶
Python script for limit state accessor.
- Returns:
- scriptstr
Python script to rebuild the limit state
- getThreshold()¶
Threshold value for limit state accessor.
- Returns:
- thresholdfloat
Threshold value
- isValid()¶
Whether limit state is valid.
- Returns:
- isValidbool
Whether it is valid
- setName(name)¶
Accessor to the object’s name.
- Parameters:
- namestr
The name of the object.
- setOperator(comparisonOperator)¶
Comparison operator accessor.
- Parameters:
- operator
openturns.ComparisonOperator
Comparison operator
- operator
- setOutputName(outputName)¶
Accessor to the name of output variable of interest in limit state.
- Parameters:
- outputNamestr
Interest variable name
- setThreshold(threshold)¶
Threshold value for limit state accessor.
- Parameters:
- thresholdfloat
Threshold value