Vibeflow postprocess

From sunrise-hjx/vibeFlow-skills · View interactive version

Vibeflow postprocess is an AI agent skill from the GitHub repository sunrise-hjx/vibeFlow-skills. Use when planning, extracting, validating, plotting, visualizing, or summarizing VibeFlow OpenFOAM results from C-run and 0-caseDict/caseDict, including postProcessing data, probes, forces, forceCoeffs, samples, field files, solver logs, Python metrics, ParaView/pvpython scenes, evidence tables, fig

How to use this skill

Skill file

VibeFlow Postprocess

This skill turns solver results into evidence that can answer the user's question. Post-processing is not about piling up figures; it extracts metrics, field images, tables, and traceable conclusions around intent.targetOutputs and postProcessing.objectives.

When to Use

What to Read First

Input

Output

Recommended Workflow

  1. Read postProcessing.objectives.primaryMetrics and clarify what question each figure or table answers.
  2. Check whether the run is sufficient: final time, logs, residuals, physical monitored quantities, and unresolved errors.
  3. List data sources: function objects, samples, probes, forces, time-directory field files, and solver logs.
  4. Produce numerical summaries and quality judgments first, then line plots/tables, and finally scene visualizations.
  5. Use Python for tables, curves, and statistics; use ParaView/pvpython for slices, isosurfaces, streamlines, vectors, and mesh scenes.
  6. Write output paths to postProcessing.artifacts, and provide key figures for the report.
  7. If results are insufficient to support the conclusion, write to errors or return to vibeflow-openfoam.

ParaView GUI Python Control

When the user asks to operate the ParaView GUI in the current Studio Workspace, such as importing case.foam, adding slice/contour/clip filters, switching the coloring variable, adjusting the camera, saving screenshots, or saving state, preferentially generate a paraview.simple script instead of only describing manual click steps.

Minimal example:

from paraview.simple import *

case = OpenFOAMReader(FileName="/path/to/C-run/case.foam")
case.MeshRegions = ["internalMesh"]
case.CellArrays = ["U", "p"]

view = GetActiveViewOrCreate("RenderView")
Show(case, view)
ColorBy(GetDisplayProperties(case, view), ("POINTS", "U", "Magnitude"))
RescaleTransferFunctionToDataRange()
ResetCamera()

slice1 = Slice(Input=case)
slice1.SliceType.Origin = [0.5, 0.0, 0.0]
slice1.SliceType.Normal = [1.0, 0.0, 0.0]
Show(slice1, view)
Render()

Rules

Validation

Fallback Conditions

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.