CakeCFD Project Record Status: Active — In Preparation

CakeCFD

A modified OpenFOAM solver core with high-order TENO discretization

Project ID: CAKECFD‑01
cakecfd.org
This project record is provided for reference. Source release, installer, and accompanying manuscript are in preparation and not yet public.

Overview

Summary. CakeCFD is a solver core derived from OpenFOAM, modified to support higher-order convection discretization and a desktop application (Cake Studio) for case setup, meshing, solving, and post-processing. The project is developed independently and is not affiliated with the OpenFOAM Foundation or ESI Group.

Solver baseOpenFOAM 2412, finite volume method
Primary contributionTENO convection schemes on unstructured meshes, adaptive C_T weighting
ApplicationDesktop GUI (Cake Studio) for meshing, case setup, and solving
PlatformLinux (Ubuntu 22.04+) or WSL2 on Windows, presented via WSLg
LicenseGNU General Public License v3.0 (solver & application)

Numerics

The solver implements unstructured-mesh formulations of Targeted Essentially Non-Oscillatory (TENO) convection schemes following Fu, Hu & Adams (2016), with adaptive C_T weighting (Fu, 2018) and per-component smoothness indicators, provided as a wmake library not present in a stock OpenFOAM installation.

Verification status. As shipped, the schemes measure second order on smooth linear advection, not the fifth and sixth order of the reference formulation — the reconstruction reduces to central differencing in smooth regions, a deliberate choice for pressure–velocity stability that caps the achievable order. Reproducible via validation/tools/advection_order.py (case VC‑001). A k‑exact upwind‑biased reconstruction reaching approximately fifth order on the same test is in progress on a development branch.
Supported solverssimpleFoam, icoFoam, pimpleFoam, pisoFoam, rhoSimpleFoam, rhoPimpleFoam, rhoCentralFoam, buoyantSimpleFoam, buoyantPimpleFoam
Turbulence closuresk–ω SST, k–ε, Spalart–Allmaras
Geometry importSTEP and BREP via OpenCASCADE (OCCT 7.6), with automatic tessellation and STL export for meshing
MeshingAutomated blockMesh / snappyHexMesh pipeline — surface feature extraction, boundary layers, refinement regions

Cake Studio

Cake Studio is the accompanying native C++ Qt5 desktop application, covering the workflow from geometry import through meshing, case setup, solving, and post-processing in a single interface.

AI Interface

cakecfd_ai is a companion Python package that exposes the solver and meshing pipeline as tools for Claude, allowing simulations to be run, parameters tuned, and results interpreted through natural language — via the Claude API, an agentic REPL, or direct tool calls from the command line. Released separately under CC BY 4.0.

InterfacesPython API (CakeAgent), interactive CLI REPL, direct tool calls (no API key required)
Tool surfaceMesh setup, solver execution and monitoring, residual/force parsing, boundary condition patching, turbulence database queries, report generation
RequirementsPython 3.10+, OpenFOAM 2412, Anthropic API key (agent/REPL mode only)

Status

ComponentStatus
Solver core & TENO schemesIn preparation — second-order verified, higher-order in progress
Cake Studio applicationIn preparation
cakecfd_ai packageIn preparation
Cross-platform installerPlanned
Technical manuscriptPlanned

License

CakeCFD (solver core and Cake Studio application) is released under the GNU General Public License v3.0. The companion cakecfd_ai package is released separately under CC BY 4.0. Source publication is pending; this page will be updated with repository links at release.