read_log
Inspect OpenFOAM simulation logs by returning the tail or grepping for patterns like warnings, bounding, or Courant numbers to monitor solver progress.
Instructions
Read the tail of a log, or grep it (e.g. 'FOAM Warning|bounding|Courant').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| log | No | Log file, e.g. 'log.foamRun' or just 'foamRun'. Default: most recently modified log. | |
| case | Yes | Case name in the workspace (e.g. 'pitzDaily') or an absolute path inside an allowed root. | |
| grep | No | Regex; return matching lines (with line numbers) instead of the tail. | |
| tail | No | Number of trailing lines to return (ignored with grep). |