Skip to content

Releases

v0.4.0

Choose a tag to compare

@chrislupp chrislupp released this 27 Nov 21:54
e95f9f8

Added

  • linux/arm64 Docker images: every chrislupp/scirocco and
    chrislupp/scirocco-kulfan tag (next, versions and latest) is now a
    multi-arch manifest with linux/amd64 and linux/arm64 images, 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/scirocco installs the
    core library, headers and CMake package from the release source, and
    brew install chrislupp/tools/fauxfoil installs fauXFOIL with its Qt
    plot window. The release workflow's new homebrew job points both
    formulae in chrislupp/homebrew-tools at each stable release.
  • Scirocco Viewer: a Qt 6 Quick desktop program in gui/ that opens the
    HDF5 files Hdf5Writer writes 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_start option of the Philote analysis discipline (default
    false): starts each viscous Compute from the previous one.

Changed

  • fauXFOIL plots are tagged Scirocco and Scirocco V <version> instead
    of fauXFOIL and fauXFOIL V <version>, naming the solver that produced
    them. The program name, prompt and banner are unchanged.
  • Param::warm_start now defaults to false, so a viscous Solve()
    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. Set warm_start = true for fast
    polars. The Philote analysis discipline, which reuses one solver for
    every Compute, 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 reused Scirocco object (with
    warm_start = false) now takes the same Newton path as one on a new
    object. StagPointFind left the stagnation-point linearization
    isol.sstag_ue from 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

Choose a tag to compare

@github-actions github-actions released this 21 Nov 04:12

Fixed

  • fauXFOIL Cp 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

Choose a tag to compare

@github-actions github-actions released this 21 Nov 01:23

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 in fauxfoil/ that builds
    against the Scirocco source tree beside it or an installed Scirocco.
  • fauXFOIL plots: 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 the GDES geometry. HARD writes 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 with FAUXFOIL_GRAPHICS=ON, which
    requires Qt 6; otherwise fauXFOIL is text-only.
  • fauXFOIL cursor 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), VPLO blowup, symbols, labels, clipping, dump
    and overlay, and the GDES blowup, 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, and Glob::relax, the
    under-relaxation factor of the last update. Neither changes the solve.

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 15 Nov 05:44

Added

  • Docker images: each push to develop publishes chrislupp/scirocco:next
    and chrislupp/scirocco-kulfan:next to Docker Hub, once the image passes
    the smoke test. Release images keep their version and latest tags.
  • SCIROCCO_USE_BLAS CMake 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::Solve starts 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 header core/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_limiter and StepLimiter::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
    to niglob at the round-off floor.
  • Param::transition and TransitionModel::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::onset and OnsetModel::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 in scirocco/validation/onset_envelope.
  • quickstart, bench, and docs_figure_data example programs. bench
    times paneling, inviscid and viscous solves, and the full gradient at
    several panel counts; docs_figure_data writes 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 on debian:stable-slim as
    a non-root user. A CI workflow validates both builds on every PR/push
    and publishes to Docker Hub as chrislupp/scirocco and
    chrislupp/scirocco-kulfan through 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 to develop.
  • 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_V Jacobian augmented with (1/τ)·I on BL rows,
    switched-evolution-relaxation τ ramp in SolveCoupled. Stops the
    undamped Newton iteration from diverging on rough intermediate
    geometries while leaving the converged R = 0 state unchanged. New
    Param fields: use_ptc, tau_init, tau_min, tau_max,
    tau_grow_clamp, tau_shrink_clamp.
  • RefreshPanelGeometry helper (in paneling.cpp) that rebuilds
    panel.s and panel.t from the current panel.x via
    Spline2DCreate. Called from SiroccoDiscipline::Compute after
    overwriting foil.x from 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/ — minimize Cm² at target
      Cl (inviscid).
    • examples/kulfan_viscous_optimization/ — minimize Cd at target
      Cl with 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_server binary hosting KulfanDiscipline for use
    with RemoteExplicitComponent clients.
  • 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_SANITIZERS CMake 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 if main advances. Published source
    archives and full-version images are verified after release, and existing
    tags can be rechecked manually.

Changed

  • ResidualStation, ResidualTransition and BuildGlobSys take an optional
    scalar_derivatives flag (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 by CalcUeM and the adjoint
    instead of refactoring, and BuildGlobSys adds the stagnation-point
    chain as triplets instead of inserting into the compressed matrix.
  • Geometry-only work is cached while the panel nodes are unchanged:
    BuildGamma reuses the influence matrix, its LU and the reference
    solutions (Isol::AIC_x), and CalcUeM reuses 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
    header core/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 assembles R_V.
  • Glob::lu_factorization is replaced by Glob::coupled_factorization, and
    StoreAdjointFactorization no longer fills Glob::R_V; call...
Read more

v0.1.0

Choose a tag to compare

@github-actions github-actions released this 19 Mar 00:06

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