set_boundary_condition
Assign or replace a boundary condition for a patch in an OpenFOAM field file by specifying the patch, boundary condition type, and optional value—resolving setup errors quickly.
Instructions
Set (or insert) the boundaryField entry for a patch in a 0/ field file, e.g. field_file='0/U', patch='inlet', bc_type='fixedValue', value='(10 0 0)'.
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": {
"field_file": "<field_file>",
"patch": "<patch>",
"bc_type": "<bc_type>"
},
"name": "set_boundary_condition"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| patch | Yes | ||
| value | No | ||
| bc_type | Yes | ||
| field_file | Yes |