ProbPipingBase
Base class for probabilistic piping calculations.
Attributes
| model_config |
ConfigDict |
Configuration for the pydantic model. |
| progress |
bool |
Flag to indicate if progress should be shown. |
| debug |
bool |
Flag to indicate if debug information should be printed. |
| rel_stochasts |
RelevantStochasts |
Relevant stochastic variables for different types of analyses. |
| piping_eq |
PipingEquations |
Piping equations to use for the calculations. |
Methods
prob_calculation
ProbPipingBase.prob_calculation(
h,
z_type,
z_func,
settings,
prob_input,
copula=None,
leave=True,
)
Perform a probabilistic calculation.
Parameters
| h |
float |
Water level. |
required |
| z_type |
str |
Type of the limit state function. |
required |
| z_func |
Callable |
Limit state function. |
required |
| settings |
PipingSettings |
Piping settings. |
required |
| prob_input |
ProbInput |
Probabilistic input settings. |
required |
| copula |
ot.Distribution or None |
Copula distribution, by default None. |
None |
| leave |
bool |
If True, remove the progress bar, by default True |
True |
Returns
|
tuple[PipingSettings, ProbResult] |
Updated settings and results. |
set_calc_options
ProbPipingBase.set_calc_options(optimAlgo, calc_options, debug)
Set calculation options for the optimization algorithm.
Parameters
| optimAlgo |
ot.AbdoRackwitz or ot.Cobyla or ot.ProbabilitySimulationAlgorithm or ot.DirectionalSampling |
The optimization algorithm instance to configure. |
required |
| calc_options |
dict of str to float or int |
A dictionary containing the calculation options to set, where keys are option names and values are option values. |
required |
| debug |
bool |
If True, print debug information about the options being set. |
required |