Vibeflow openlb

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

Vibeflow openlb is an AI agent skill from the GitHub repository sunrise-hjx/vibeFlow-skills. Use when preparing, running, debugging, post-processing, or extending VibeFlow/VibeCAE OpenLB lattice-Boltzmann workflows from 0-caseDict/caseDict, including C++ applications, lattice units, geometry indicators, boundary conditions, parallel builds, VTK output, and reusable LBM templates.

How to use this skill

Skill file

VibeFlow OpenLB

This skill treats OpenLB as the VibeCAE lattice Boltzmann method backend for flow, heat transfer, multiphase work, porous media, particle coupling, and related LBM workflows.

When to Use

First Decide: Usage Mode or Development Mode

What to Read First

Input

Output

Recommended Structure

C-run/openlb/
`-- case-1/
    |-- src/
    |-- input/
    |-- build/
    |-- results/
    |-- logs/
    |-- Allrun
    `-- Allclean

Usage-Mode Workflow

  1. Convert caseDict to LBM parameters: physical length, velocity, viscosity, Re, lattice resolution, time step, relaxation time, and Mach limit.
  2. Select the closest template from OpenLB examples; do not start from an empty C++ file.
  3. Write a case-specific C++ application with explicit geometry indicator, materials, boundary conditions, initialization, and output.
  4. Compile the application and save the build log.
  5. Run a short smoke test and check initialization, boundaries, VTK output, and statistics.
  6. Run the formal case and post-process velocity, pressure, vorticity, forces, fluxes, or user target metrics.
  7. Write parameter conversion, run status, and limitations back to caseDict.

Development-Mode Workflow

  1. Define the development target: OpenLB case template, parameter converter, geometry importer, boundary wrapper, or output converter.
  2. Write a development note first, recording the OpenLB version, source-tree location method, build method, template source, and validation case.
  3. C++ templates must preserve the conversion from physical units to lattice units.
  4. For new boundaries or geometry adapters, validate at least on a simple channel or cylinder benchmark.
  5. Do not write a user-machine OpenLB installation path into the repository; use environment variables or configuration files.

Core Rules

Validation

Fallback Rules

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.