add_airways
Copies a Ventsim model and adds specified airways to a new file, enabling what-if ventilation scenarios to be simulated and checked.
Instructions
EXPERIMENTAL. Copy the model to 'out_path' with new airways added. Each airway: {"like": "12", "start": [x, y, z], "end": [x, y, z], "name": "new drive", "width": 5.0, "height": 5.0, "open_ends": ["end"]} (name, width, height, open_ends optional). It copies size, shape, friction factor and stage from airway 'like' (not its fan, fixed flow or pressure, heat or gas sources); resistance follows the new length and size. An end within 5 cm of an existing airway end joins the network there (not at a surface connection); an end that joins nothing is a dead end unless listed in 'open_ends' ("start" / "end"), then it is open to the surface. Saved results are not recomputed: run simulate_airflow on the copy, then check the copy in Ventsim.
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>",
"out_path": "<out_path>",
"airways": "<airways>"
},
"name": "add_airways"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| airways | Yes | ||
| out_path | Yes |