flexdesign

Sizes equipment across representative months of a multi-year study. See Run a design study and How design studies annualize cost.

Study configuration

DesignSpec

A base flowsheet, the years and months to run it over, and what to size.

PlanningYear

One modeled year of the study.

RepresentativeMonth

One calendar month modeled in every planning year.

ParameterChange

A change to one base element for the selected years and months.

CapacitySpec

One capacity decision shared by every horizon.

load_design_spec

Load a design study from JSON, with base inline or as a relative path.

Building a model

build_design_model

Merge every horizon into one model with shared sizes and an annualized objective.

build_horizons

Build one standalone operations model per year and month.

expand_horizons

Return one validated flowsheet spec per year and month.

present_worth_factors

Return each modeled year's sum of discount factors over the years it represents.

Results

design_results

Return the capacities and annualized costs of a solved design model.

DesignResults

Solved capacities and annualized costs of a design model.

CapacityResult

One sized capacity and its costs.

Investment metrics

investment_metrics

Return the NPV and IRR of a design's operating savings net of capital spending.

InvestmentMetrics

Cash flows, NPV and IRR of a design against a baseline.