model_templates - a collection of models#
Todo
Write this section.
import fesslix as flx
flx.load_engine()
import fesslix.model_templates
Random Number Generator: MT19937 - initialized with rand()=1626070040;
Random Number Generator: MT19937 - initialized with 1000 initial calls.
Structural reliability analysis#
- fesslix.model_templates.generate_reliability_R_S_example()#
- Syntax:
fesslix.model_templates.generate_reliability_R_S_example()- Description:
Defines a simple R-S model for reliability analysis.
The resistance R follows a log-normal distribution and the load S follows a Normal distribution. The limit-state function is \(R-S\).
- Returns:
A Python dictionary that contains the model.
- Return type:
The returned dict has the following entries:
rv_set(flx.rv_set): set of input random random variables of this modelsampler(flx.sampler): to generate realizations of the input random variables of this modelmodel(flxVecPara): A vector-valued function that returns the model output. In this case it is of dimension one and returns the value of the limit-state function.
Example:
print( fesslix.model_templates.generate_reliability_R_S_example() )
{'rv_set': <fesslix.core.rvset object at 0x7940e029c430>, 'sampler': <fesslix.core.sampler object at 0x7940e02b61f0>, 'model': ['rbrv(rv_set::R)-rbrv(rv_set::S)']}