Fluidsim

From XuShuwenn/RedAct · View interactive version

Fluidsim is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Calculate Nusselt number for forced convection heat transfer. Use when computing dimensionless heat transfer coefficient, or analyzing convection heat transfer performance.

How to use this skill

Skill file

FluidSim: Nusselt Number Calculation

Overview

The Nusselt number (Nu) is a dimensionless parameter that characterizes convective heat transfer. It represents the ratio of convective to conductive heat transfer across a fluid boundary.

Formula

Nu = h × D / k

Where:

Calculation

# Read input: h (W/m²·K), k (W/m·K), D (m)
with open("/root/input.txt") as f:
    lines = f.read().strip().split("\n")
    h = float(lines[0].strip())   # convective coefficient
    k = float(lines[1].strip())   # thermal conductivity
    D = float(lines[2].strip())   # characteristic length

# Calculate Nusselt number
Nu = h * D / k

# Output
with open("/root/output.txt", "w") as f:
    f.write(f"Nusselt number: {Nu:.2f}\n")

Output Format

Nusselt number: X.XX

Round to 2 decimal places.

Physical Interpretation

| Nu Range | Interpretation |

|----------|---------------|

| Nu ≈ 1 | Pure conduction (no convection) |

| Nu ≈ 2–10 | Laminar flow in ducts |

| Nu > 10 | Turbulent forced convection |

Key Reference

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.