Skip to content

Simulate

Run Monte Carlo simulation with optional importance sampling and FORM/SORM analysis.

Basic Usage

python -m reliafy simulate <profile> [OPTIONS]

Command Options

Monte Carlo Options

  • --mc-with-is, -i: Use importance sampling with Monte Carlo simulation

Reliability Methods

  • --include-form, -f: Include first-order reliability method (FORM) analysis
  • --include-sorm, -s: Include second-order reliability method (SORM) analysis (automatically enables FORM)

Plotting Options

  • --plot-lsf, -l: Generate limit state function plot
  • --plot-pdfs, -p: Generate probability density function plots

General Options

  • --open-results, -o: Open results directory after completion (default: True)

Examples

Basic Monte Carlo Simulation

python -m reliafy simulate default

MC with Importance Sampling

python -m reliafy simulate default --mc-with-is

MC with FORM/SORM and Plots

python -m reliafy simulate default -f -s -l -p

Complete Simulation with IS

python -m reliafy simulate default -i -s -p

Using Custom Profile

python -m reliafy simulate myprofile --include-form --plot-pdfs

Notes

  • If --include-sorm is specified without --include-form, FORM is automatically enabled
  • If importance sampling method is set to mpp_normal in the profile, FORM is automatically enabled
  • Monte Carlo sample size is configured in the profile file

Aliases

  • sim: Short alias