write_results
Write solved airflow, pressure, and optional heat results into a copied Ventsim model, preserving the original, so Ventsim and other tools can read them.
Instructions
EXPERIMENTAL. Copy the model to 'out_path' with this server's results written into it, so Ventsim and the other tools see them: airflow ('Quantity', 'Dry Massflow'), pressures at both ends, the airway pressure drop and the fan pressure, from the what_if solver (airflow='saved', default: the saved state plus the changes given) or from simulate_airflow (airflow='simulated', inputs only, less accurate); with_heat also the dry- and wet-bulb temperatures from simulate_heat. Ventsim stores airflow positive along each airway; an airway whose air now runs backwards is written negative and counted in 'reversed'. Other saved results (heat terms, gases) stay as they were; re-simulate in Ventsim before relying on the copy. The changes themselves are written into the inputs (resistance, Fan Off, Fan Speed). Never overwrites a file.
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>"
},
"name": "write_results"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| airflow | No | saved | |
| fans_off | No | ||
| out_path | Yes | ||
| fan_speed | No | ||
| with_heat | No | ||
| resistance_scale | No |