Table of Contents

Installation
System Dynamics Modeling with se-lib – User's Guide
July 7, 2025
Table of Contents
1. Overview
2. Getting Started with SE-Lib
3. Modeling Guidance and Tips
4. Basic Modeling Patterns
4.1 Negative Feedback Loop
4.2 Exponential Growth
4.3 Balancing Loop
4.4 Goal-Gap Structure
4.5 First-Order Delay
4.6 Second-Order Delay
5. Displaying Output
6. Graphing Functions
Plotting to Screen
Saving to File
7. Random Number Functions
Example
8. Utility and Test Functions
9. Advanced Usage
9.1 Extending a Model Instance
9.1 PySD Integration
10. Visual Gallery of Model Structures
11. Appendix A - Function Reference
init_sd_model(start, stop, dt, stop_when=None)
add_stock(name, initial, inflows=[], outflows=[])
add_flow(name, equation)
add_auxiliary(name, equation)
add_auxiliary_lookup(name, input, xpoints, ypoints)
plot_graph(*outputs)
save_graph(*outputs, filename='graph.png')
draw_sd_model(filename=None, format='svg')
get_stop_time()
get_model_structure()
Examples
Exponential Growth
Negative Feedback
Goal Seeking Behavior
Rayleigh Curve Staffing
Random Functions and Measuring Stop Time
Predator Prey Model
Object Oriented Simulation Examples Using Classes
Monte Carlo Simulation and Output Analysis
Special Functions
Stop When Condition
If Then Else