simulate_airflow
Solve airflow from model inputs alone, without saved results, to simulate unsimulated Ventsim models and what-if changes; optionally compare computed airflow with saved results.
Instructions
EXPERIMENTAL. Solve the airflow from the model inputs alone, without the results Ventsim saved: airway resistance, fan curves, fan speed and count, fixed-flow and fixed-pressure airways, closed airways, surface connections and dead ends. Works on a model that was never simulated. Optional changes as in what_if. Natural ventilation and heat are not modelled; use_saved_heat=True takes them from the saved results instead. If the file has saved airflow, 'vs_saved' compares the two (error = total absolute airflow difference / total airflow). stage: simulate another stage (see list_stages) instead of the one whose results are saved. compressible=True: densities from absolute pressure (saved 'p air In/out', so the file must have been simulated once), mass balance, resistance and fan pressure scaled with density, as Ventsim's 'Compressible Airflows' setting; on a Ventsim example it cut the mean airflow difference from 4.2 % to 0.5 %.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "simulate_airflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| limit | No | ||
| stage | No | ||
| fans_off | No | ||
| fan_speed | No | ||
| compressible | No | ||
| use_saved_heat | No | ||
| resistance_scale | No |