LimitState

class persalys.LimitState(*args)

Create a limit state.

Parameters
namestr

Name

physicalModelPhysicalModel

Physical model

outputNamestr

Interest variable name

operatorComparisonOperator

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

getClassName(self)

Accessor to the object’s name.

getId(self)

Accessor to the object’s id.

getImplementation(self)

Accessor to the underlying implementation.

getName(self)

Accessor to the object’s name.

getOperator(self)

Comparison operator accessor.

getOutputName(self)

Accessor to the name of output variable of interest in limit state.

getPhysicalModel(self)

Physical model for limit state accessor.

getPythonScript(self)

Python script for limit state accessor.

getThreshold(self)

Threshold value for limit state accessor.

isValid(self)

Whether limit state is valid.

setName(self, name)

Accessor to the object’s name.

setOperator(self, comparisonOperator)

Comparison operator accessor.

setOutputName(self, outputName)

Accessor to the name of output variable of interest in limit state.

setThreshold(self, threshold)

Threshold value for limit state accessor.

GetClassName

__init__(self, *args)

Initialize self. See help(type(self)) for accurate signature.

getClassName(self)

Accessor to the object’s name.

Returns
class_namestr

The object class name (object.__class__.__name__).

getId(self)

Accessor to the object’s id.

Returns
idint

Internal unique identifier.

getImplementation(self)

Accessor to the underlying implementation.

Returns
implImplementation

The implementation class.

getName(self)

Accessor to the object’s name.

Returns
namestr

The name of the object.

getOperator(self)

Comparison operator accessor.

Returns
operatoropenturns.ComparisonOperator

Comparison operator

getOutputName(self)

Accessor to the name of output variable of interest in limit state.

Returns
outputNamestr

Interest variable name

getPhysicalModel(self)

Physical model for limit state accessor.

Returns
modelPhysicalModel

Physical model

getPythonScript(self)

Python script for limit state accessor.

Returns
scriptstr

Python script to rebuild the limit state

getThreshold(self)

Threshold value for limit state accessor.

Returns
thresholdfloat

Threshold value

isValid(self)

Whether limit state is valid.

Returns
isValidbool

Whether it is valid

setName(self, name)

Accessor to the object’s name.

Parameters
namestr

The name of the object.

setOperator(self, comparisonOperator)

Comparison operator accessor.

Parameters
operatoropenturns.ComparisonOperator

Comparison operator

setOutputName(self, outputName)

Accessor to the name of output variable of interest in limit state.

Parameters
outputNamestr

Interest variable name

setThreshold(self, threshold)

Threshold value for limit state accessor.

Parameters
thresholdfloat

Threshold value