Rufineer v0.43.0
Account
Browse the docs

Example 6 of 13

Aluminium cable plant

Based on aluminium-cable-plant-model.xlsx

An annual corporate-style model for a manufacturing plant: a product mix per stock turn, raw material tonnages, power from grid and generator, a 10-year annuity loan, and valuation at key dates. It is small, but the product-mix sheet is a real table, and the workbook has a Claude Log sheet that records its edit history. Design example: written in the full v0.5 language. The compiler builds the working core today, so this one doesn't compile yet. Source: examples/design/aluminium/.

Workbook
8 sheets plus a Claude Log, annual, 20 operating years from June 2027
Products
7 conductor lines (Fig 8 AIRDAC, AAC, ACSR), 8 stock turns a year, USD 9.98m annual revenue
Capex
USD 7.576m: machinery from a 14-line supplier quote, factory shell, civils, electrical
Debt
70% of capex at 15% over 10 years (USD 1.057m a year)
Rebuild shown
5 files, 146 lines

Where each sheet goes

Workbook sheetsRufineer
Assumptions, Machinery, Conductor Pricesinputs.rfn, with tables read from sheets of plant_inputs.xlsx
Product Mix & Revenueops.rfn (a table and three sums)
Modelops.rfn, finance.rfn, fs.rfn
Dashboard, Valuationvaluation.rfn
Sensitivityresults grids
Claude Logversion control history

Source 5 files shown, 146 lines

model.rfn
model "Aluminium Cable Plant" {
  sponsor  "Rho Power"
  currency USD
  display  thousands
  data     "plant_inputs.xlsx"  // product mix and the machinery quote
}

timeline {
  start        2026-06-01
  step         year
  construction 1y
  operations   20y
}

What this model needed from the language

  • Tables with typed columns. The product mix stays in Excel, and Rufineer gives each column a unit. Column arithmetic such as products.length * products.price runs row by row, and sum adds the rows up.
  • Unit conversions that matter. Lengths are in km and prices in USD per metre. The compiler inserts the ×1,000 and shows it in the formula.
  • Two-way sensitivity grids. The Sensitivity sheet's grids become results blocks with across and by.
  • Edit history. The Claude Log sheet lists 13 turns: a working capital facility added then removed, sculpting tried then reverted, a DSRA added. Each turn is a small diff in version control, and undoing one is a revert.