Repository navigation
Releases
Releases · chrislupp/Scirocco
v0.4.0
Added
linux/arm64Docker images: everychrislupp/sciroccoand
chrislupp/scirocco-kulfantag (next, versions andlatest) is now a
multi-arch manifest withlinux/amd64andlinux/arm64images, each
built and smoke-tested on a native runner, so the servers run without
emulation on Apple silicon and Arm hosts.- Homebrew formulae:
brew install chrislupp/tools/sciroccoinstalls the
core library, headers and CMake package from the release source, and
brew install chrislupp/tools/fauxfoilinstallsfauXFOILwith its Qt
plot window. The release workflow's newhomebrewjob points both
formulae inchrislupp/homebrew-toolsat each stable release. - Scirocco Viewer: a Qt 6 Quick desktop program in
gui/that opens the
HDF5 filesHdf5Writerwrites and steps through their iterations. It
shows the airfoil and wake with optional panel nodes and Cp arrows, Cp
and boundary-layer distributions, and the cl, cd and cm history, with
light and dark themes and video export of the iteration sequence. It
carries the Scirocco logo and app icon. It is a separate CMake project
that needs Qt 6.6+ (Quick, Quick Controls, Svg, Charts) and HDF5; the
Scirocco build does not include it. warm_startoption of the Philote analysis discipline (default
false): starts each viscousComputefrom the previous one.
Changed
- fauXFOIL plots are tagged
SciroccoandScirocco V <version>instead
offauXFOILandfauXFOIL V <version>, naming the solver that produced
them. The program name, prompt and banner are unchanged. Param::warm_startnow defaults tofalse, so a viscousSolve()
starts cold and gives the same result whatever the object solved before.
Near stall the coupled equations can have more than one converged
solution, and a warm start picks between them based on earlier solves:
NACA 0012 at Re = 2e5 and 14.25 degrees converged to Cl = 0.93 after a
warm sweep and 0.71 from a cold start. Setwarm_start = truefor fast
polars. The Philote analysis discipline, which reuses one solver for
everyCompute, now starts cold too, so evaluating the same design twice
gives the same outputs. fauXFOIL still warm-starts as XFOIL does (#63).
Fixed
- A cold viscous
Solve()on a reusedSciroccoobject (with
warm_start = false) now takes the same Newton path as one on a new
object.StagPointFindleft the stagnation-point linearization
isol.sstag_uefrom the previous solve in place, and the first coupled
Jacobian used it, so iteration counts depended on what the object solved
before. It is now reset to zero, as on a new object (#62).
v0.3.1
Fixed
fauXFOILCp plot: the wake displacement edges on the airfoil sketch now
start at the trailing-edge displacement points and share the wake delta*
between the sides as XFOIL does, instead of splitting it evenly about the
wake centreline, which left a visible break at the trailing edge. Where
the boundary layer is thick (separated flow at high alpha), wake edge
points that would fold back behind the trailing edge are left out.
v0.3.0
Added
fauXFOIL: an interactive command-line program that looks and behaves like
XFOIL 6.99 (menus, prompts, abbreviations, per-iteration printout, polar
and coordinate file formats) and runs Scirocco. XFOIL batch scripts run
unchanged. It is a separate CMake project infauxfoil/that builds
against the Scirocco source tree beside it or an installed Scirocco.fauXFOILplots: with Qt 6, a native plot window (no X11 needed on
macOS) shows XFOIL's plots: Cp(x) after each point and for sequences,
pressure vectors (CPV), boundary-layer variables (VPLO), polars
(PPLO) and theGDESgeometry.HARDwrites PostScript hardcopies to
plot.ps. Lettering uses FauxfoilPlot, a plotter-style font compiled
into the program; hardcopies draw its letters as outlines, so they need
no fonts. The window is opt-in withFAUXFOIL_GRAPHICS=ON, which
requires Qt 6; otherwisefauXFOILis text-only.fauXFOILcursor input and the rest of XFOIL's plot commands: zoom
(Z,U), plot-object size (SIZE), annotation (ANNO), boundary-layer
velocity profiles (BL,BLC,BLWT), reference Cp, force and polar
overlays (CREF,FREF,RGET,RDEL), polar axis limits (PPAX),
polar airfoils (APLO),VPLOblowup, symbols, labels, clipping, dump
and overlay, and theGDESblowup, window, tick, inch-scale, overlay,
curvature and distance commands.Glob::iteration_observer: optional read-only callback that the coupled
Newton solve calls at every iteration, andGlob::relax, the
under-relaxation factor of the last update. Neither changes the solve.
v0.2.0
Added
- Docker images: each push to
developpublisheschrislupp/scirocco:next
andchrislupp/scirocco-kulfan:nextto Docker Hub, once the image passes
the smoke test. Release images keep their version andlatesttags. SCIROCCO_USE_BLASCMake option (default on): the dense product and LU of
the coupled solve's Schur complement go through BLAS/LAPACK (Accelerate,
OpenBLAS, MKL) when CMake finds one, Eigen otherwise. Viscous solves are
10-15% faster at 200 panels and 15% at 284 on an M1 Pro.Param::warm_start(default on):Scirocco::Solvestarts a viscous solve
from the last converged boundary layer of the same object, as XFOIL does,
and falls back to a cold start (after at most 30 iterations) if that does
not converge. The previous boundary layer is shifted along each surface
to the new stagnation point, as XFOIL's STMOVE does, and its edge
velocity is predicted from the new inviscid solution at the old mass
defect, so a 0.5-degree polar step mostly takes 5-6 Newton iterations.
This also applies across geometry updates through the Philote discipline.BoundaryLayerMarch(new headercore/bl_march.h) and
Param::bl_march(default on): before each coupled Newton step the
boundary layer is re-solved by a mixed-mode march at the current ue, as
XFOIL's MRCHDU does. Each station holds a ue-Hk combination fixed (direct
mode in attached flow, inverse near separation), transition is placed with
UpdateTransition's own test, the stagnation pair and the first wake
station are re-solved too, and failed stations are extrapolated. Over 144
cases (NACA 0012/2412/4412, 99-284 panels, alpha -2 to 12, Re 5e5 and
3e6) the median Newton iteration count drops from 19 to 10 and the mean
from 47 to 15, and 142 cases converge without continuation (128 before);
converged solutions are unchanged. On the XFOIL comparison cases Scirocco
now takes 8-11 steps, like XFOIL.Param::step_limiterandStepLimiter::Relative: XFOIL's
under-relaxation rule as an alternative to the default mfoil rule.Param::rtol_floor(1e-8): the coupled Newton solve also stops once the
residual is below this and a step no longer halves it, instead of running
toniglobat the round-off floor.Param::transitionandTransitionModel::Captured(experimental): the
amplification factor and shear stress live at every node and the laminar
and turbulent closures are blended smoothly over a transition length
(capt_L), so no station switches equations when transition moves. On
NACA 2412 at Re 1e6 the adjoint dCd/dalpha ripple drops from 25% to 1.6%,
and it converges under panel refinement. Against measured Eppler 387 drag
(UIUC Vol 5, Re 1e5-4.6e5) the RMS error is 5.3%, against 16% for the cut
cell;capt_L= 60 momentum thicknesses is calibrated on that data. The
primal matches the mfoil prototype
(mfoil/mfoil_captured.py) to 1e-10. The adjoint is fully analytic: shape
sensitivities match its complex step to 1e-8, and alpha, Re and Mach to
2e-11. Prescribed angle of attack only (no lift-target mode).Param::onsetandOnsetModel::Envelope: opt-in amplification onset
ramp for the e^N model, fitted to spatial Orr-Sommerfeld envelope N-factor
curves of Falkner-Skan profiles (H = 2.36-3.48). Growth starts at the
critical Re_theta and keeps the default asymptote, so far-downstream
amplification is unchanged. Shape gradients near the onset become two to
four times smaller and lose the node-to-node oscillation. The default stays
OnsetModel::Cubic(XFOIL/mfoil). Adjoint derivatives are validated
against mfoil complex step (param.onset = 'envelope'); the stability
solver, data, and fit are inscirocco/validation/onset_envelope.quickstart,bench, anddocs_figure_dataexample programs.bench
times paneling, inviscid and viscous solves, and the full gradient at
several panel counts;docs_figure_datawrites the data plotted on the
documentation site.- Redesigned documentation site: homepage, C++ quickstart and guides,
performance page, local search, and redirects from moved pages. - Automatically snapshot Docusaurus documentation for stable releases, select
the release as the default docs version, and validate it before publication. - Relocatable CMake package configuration and an installed-consumer smoke test.
- Solver input, mode-switch, RPC recovery, and release-version regression tests.
- Docker multi-stage images for
scirocco-server(port 50051) and
kulfan-server(port 50052), both running ondebian:stable-slimas
a non-root user. A CI workflow validates both builds on every PR/push
and publishes to Docker Hub aschrislupp/sciroccoand
chrislupp/scirocco-kulfanthrough the validated release workflow. - Docusaurus 3 documentation site scaffolded at
docs/with KaTeX math
support, versioned docs, and a GitHub Actions workflow that deploys to
GitHub Pages on push todevelop. - Kulfan/CST (Class-Shape Transformation) airfoil geometry discipline
(KulfanDiscipline) with analytic partials of node coordinates w.r.t.
Bernstein coefficients and a built-in second-difference smoothness
output for waviness constraints. - Pseudo-transient continuation (PTC) in the coupled BL Newton solver:
R_VJacobian augmented with(1/τ)·Ion BL rows,
switched-evolution-relaxationτramp inSolveCoupled. Stops the
undamped Newton iteration from diverging on rough intermediate
geometries while leaving the converged R = 0 state unchanged. New
Paramfields:use_ptc,tau_init,tau_min,tau_max,
tau_grow_clamp,tau_shrink_clamp. RefreshPanelGeometryhelper (inpaneling.cpp) that rebuilds
panel.sandpanel.tfrom the currentpanel.xvia
Spline2DCreate. Called fromSiroccoDiscipline::Computeafter
overwritingfoil.xfrom an upstream geometry discipline, so the BL
solver doesn't run on new coordinates with stale tangents. Declared in
scirocco/core/paneling.h.- Three airfoil-optimization examples:
examples/kulfan_inviscid_optimization/— minimizeCm²at target
Cl(inviscid).examples/kulfan_viscous_optimization/— minimizeCdat target
Clwith area floor and CST smoothness constraint.examples/kulfan_multipoint_optimization/— weightedΣ wᵢ·Cdᵢ
across N viscous design points sharing one geometry, with one
analysis server per point.
scirocco_kulfan_serverbinary hostingKulfanDisciplinefor use
withRemoteExplicitComponentclients.- Runnable Philote-MDO 0.8.0 Python tutorial suite under
examples/tutorials/,
covering inviscid and viscous analysis, geometry changes, custom
coordinates, analytic sensitivities, and HDF5 histories. - Optional Philote-Cpp discipline interface for coupling Scirocco with
multidisciplinary optimization tools (SCIROCCO_BUILD_PHILOTE, OFF by
default; server CI and Docker builds enable it). - HDF5 iteration history writer (
SCIROCCO_HDF5_OUTPUT) for saving
analysis and optimization results. examples/naca_optimization/: NACA 4-digit airfoil optimization through
an optimization framework.examples/cst_range_optimization/: CST multipoint optimization for low
drag at Cl = 0.55 and 0.70, with guard conditions at Cl = 0.30 and 0.80.SCIROCCO_SANITIZERSCMake option (AddressSanitizer and
UndefinedBehaviorSanitizer) and a sanitizer CI job, including installed
consumers and Philote tests.- Release validation: the release workflow checks the prepared release
commit, installed consumer, Python references, documentation, and both
container images before publishing; publishes the tested images without
rebuilding; and refuses to publish ifmainadvances. Published source
archives and full-version images are verified after release, and existing
tags can be rechecked manually.
Changed
ResidualStation,ResidualTransitionandBuildGlobSystake an optional
scalar_derivativesflag (default true). Newton iterations and the
boundary-layer march no longer compute the Re and Mach residual partials,
which only the adjoint uses; the solver assembles them once at the accepted
solution. Viscous solves are about 15% faster (NACA 0012, 200 panels:
28-32 ms cold, 12-15 ms for a 0.5-degree polar step).- The influence-matrix LU from the inviscid solve is stored
(Isol::AIC_lu,SolveAIC) and reused byCalcUeMand the adjoint
instead of refactoring, andBuildGlobSysadds the stagnation-point
chain as triplets instead of inserting into the compressed matrix. - Geometry-only work is cached while the panel nodes are unchanged:
BuildGammareuses the influence matrix, its LU and the reference
solutions (Isol::AIC_x), andCalcUeMreuses the airfoil-panel part of
the source influence (Isol::Bp_foil), as XFOIL caches the airfoil part
of its DIJ matrix.RebuildUeM, called when the stagnation point moves to
another panel, now only reapplies the surface signs. A 0.5-degree polar
step at 200 panels takes 15-18 ms instead of 22-25 ms. - The coupled viscous Newton system and the viscous adjoint are factored
through the mass-defect Schur complement (CoupledFactorization, new
headercore/coupled_linear.h) instead of a sparse LU of the assembled
R_V, whose dense edge-velocity block filled in. Substituting the mass
defect for displacement thickness leaves an N x N dense system after a
sparse boundary-layer solve. Steps and adjoints are unchanged to round-off;
the linear solve per Newton iteration drops from 15 ms to 1.9 ms at 200
panels. The boundary-layer block is solved by block forward substitution
over its station groups (BlockTriangularSolver). A sparse LU of the assembled system remains as a fallback, and the
trust-region step still assemblesR_V. Glob::lu_factorizationis replaced byGlob::coupled_factorization, and
StoreAdjointFactorizationno longer fillsGlob::R_V; call...
v0.1.0
Initial public release.
Added
- Inviscid analysis using linear vortex panel method with Kutta condition
- Viscous analysis with coupled boundary layer solver (Newton iteration)
- Laminar-to-turbulent transition prediction (e^N method)
- Karman-Tsien compressibility correction for subsonic flow
- NACA 4-digit and 5-digit airfoil generation
- Custom airfoil coordinate input
- Geometry modification: trailing edge flaps, camber addition, derotation
- Force coefficient output: Cl, Cd, Cm, Cdf, Cdp
- Surface distribution output: Cp, cf, theta, delta*, Hk, Ret, ue
- Boundary layer property functions with analytical Jacobians
- 73 reference validation tests against mfoil
- 8 finite-difference ping tests for Jacobian verification
- CMake build system with Eigen3 dependency
- Apache 2.0 license
[Unreleased]: v0.1.0...HEAD
[0.1.0]: https://github.com/chrislupp/ProjectTrysil/releases/tag/v0.1.0