generate_blockmesh
Auto-generates a boundary-layer-graded blockMeshDict with presets and first-cell-height grading for target y+, eliminating manual mesh setup errors.
Instructions
Auto-generate a valid, boundary-layer-graded blockMeshDict and write it to output_path (typically '/system/blockMeshDict'). Pick a preset (channel, flatplate, step, box). If first_cell_height > 0, wall-normal grading is computed automatically so the near-wall cell matches that height (feed it the value from the first_cell_height tool to hit a target y+). This removes the hardest, most error-prone part of setting up a case.
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": {
"output_path": "<output_path>"
},
"name": "generate_blockmesh"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| depth | No | ||
| height | No | ||
| length | No | ||
| preset | No | channel | |
| cells_x | No | ||
| cells_y | No | ||
| cells_z | No | ||
| output_path | Yes | ||
| first_cell_height | No |