Repository navigation
CFDCraft v0.4
| Version | Stage | Highlights |
|---|---|---|
| 0.4 (2026-11-15) | 4 Laminar steady flow | First flow solver: steady incompressible laminar flow with SIMPLEC (and SIMPLE) on polyhedral meshes, relaxation-independent Rhie–Chow interpolation (Majumdar 1988), CG + AMG for the pressure correction, boundary conditions of D29 (walls also moving, velocity and mass-flow inlets, static and total pressure inlets and outlets, symmetry) with a check of their combination and guidance (D30), TOML case file with "did you mean" (D39), log, CSV, wall and line output (D43). Couette exact to the iteration tolerance on all mesh types; Poiseuille observed order 1.80–2.00; lid-driven cavity within 0.4–1.4 % of Ghia et al. at Re 100 and 1000 in 2D and within 2.5 % on 3D tetrahedra and polyhedra. New crate cfdcraft-flow, command cfdcraft flow, thirteen case files, gallery 12–13, recipes 18–20. CPU only; the GPU flow loop follows with stage 5 |
0.4 (2026-11-15) – stage 4: laminar steady flow
New crate cfdcraft-flow, kernel bodies cfdcraft-kernels::flow (one
source for the CPU and the GPU) and the command cfdcraft flow:
- SIMPLEC and SIMPLE (D19). Segregated outer iterations on the
collocated, cell-centred polyhedral grid: momentum with implicit upwind
and deferred linear-upwind convection, orthogonal diffusion implicit and
the non-orthogonal and skewness corrections deferred, implicit
under-relaxation; pressure correction with the SIMPLEC factor
D^C = V/(a_P/α − Σ|a_N|), solved with CG and the stage-3 multigrid
(hierarchy rebuilt every 10 outer iterations); reference cell when no
boundary fixes the pressure. - Rhie–Chow interpolation (D27) with the relaxation term of Majumdar
(1988): the converged result does not depend on the under-relaxation
(lid force equal to 3e-11 for α_u = 0.7 and 0.9). - Boundary conditions (D29): wall (also moving), velocity inlet (vector,
normal speed or the exact profile), mass-flow inlet, static- and
total-pressure inlet and outlet (freely combined), symmetry (implicit per
component). Periodic boundaries follow with stage 6. - Boundary-condition check (D30) before every run and with
cfdcraft flow --check: missing and unknown patches with "did you mean",
net mass flow without a pressure boundary, over-specified flow paths,
wall normal velocity, unused turbulence values, non-planar symmetry,
reference-cell note; the guidance table of sensible combinations in the
case catalogue. - Case file (D39):
[fluid],[flow],[initial],[pressure],
[boundary.<patch>],[solver],[analytic],[verification],[run],
[output]; unknown keys and values with "did you mean"; the resolved case
with all defaults incase.resolved.toml. - Output (D43):
flow.logwith a header of what is written and how
large,residuals.csv,patches.csv(mass flow, mean pressure, force),
wall_<patch>.csv(pressure and wall shear stress per face, in global
face order),line_<name>.csv,fields.vtkhdf,flow.md,flow.json
and SVG charts (residuals, convergence, centre lines against the
reference). - Verification: exact solutions (Couette, Poiseuille) and the
centre-line data of Ghia et al. (1982) for Re 100 and 1000; thirteen case
files (CI runs all of them on Linux and the quick ones on macOS and
Windows); tests for Couette, Poiseuille order, the cavity, relaxation
independence, quick convergence with symmetry planes, the check, "did you
mean" and bitwise equality on 1 and 4 threads. Backend::set_matrix(new matrix values on the same pattern) on the CPU
and CUDA backends;tools/render_mesh.py --no-edges.- Documentation: stage 4 verification,
gallery 12–13, recipes 18–20, flow cases, keys, boundary conditions and
guidance in the case catalogue.