calibrate_airflow
Fits airway resistances to measured airflow values, adjusting selected airways and returning resistance factors plus before/after airflow and residual misfit for use in what-if simulations or edits.
Instructions
EXPERIMENTAL. Fit airway resistances to survey measurements: 'measured' = {Unique No: airflow m3/s}; 'adjustable' = airways whose resistance may change (default: the measured ones). Returns the resistance factors, the airflow before and after at the measured airways, and the remaining misfit. Feed the factors to what_if / simulate_airflow as resistance_scale, or write them with edit_airways (kFactor). Measurements that cannot tell airways apart (airways in series) get the smallest change; check 'at_limit'.
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>",
"measured": "<measured>"
},
"name": "calibrate_airflow"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| measured | Yes | ||
| adjustable | No | ||
| max_factor | No | ||
| from_inputs | No |