Repository navigation
MFC v5.7.1
What's Changed
Fourier heat conduction, prescribed kinematics for immersed boundaries (including airfoils and STL bodies), heterogeneous reacting surface boundary conditions, smooth inflow start-up, and MFC-owned thermochemistry generation replacing Pyrometheus. A large batch of correctness fixes covers immersed boundaries on many ranks, probes, restarts, 3D cylindrical coordinates, and several Riemann solvers. Several validator checks are stricter, so a case that validated under v5.7.0 may now be rejected; see the breaking changes below.
Breaking changes
- Remove the fluid center-of-mass output —
fluid<i>_com.dathad no parameter to request or disable it and was written by every probe-enabled case, at the cost of a full-domain reduction per step. It is no longer written. by @sbryngelson in #1873 - Replace Pyrometheus with MFC-owned thermochemistry generation — the Fortran generator now lives in
toolchain/mfc/thermochem(adapted from Pyrometheus 1.1.1, MIT license retained), with Cantera supplying mechanism data. Pyrometheus and JAX are no longer toolchain dependencies. Them_thermocheminterface and numerical formulas are unchanged. by @sbryngelson in #1915 - Stricter GRCBC validation —
grcbc_innow requires the full inflow state (velocity, pressure, partial densities, volume fractions), andgrcbc_out/grcbc_vel_outrequirepres_out/vel_out. Previously these validated and then diverged or relaxed toward a default sentinel. by @sbryngelson in #1854 and #1877 - Refuse a boundary-condition patch geometry the dimensionality never applies — such a patch was silently ignored. by @sbryngelson in #1869
- Validator constants now match
m_constants.fpp—num_patches_max(10) is enforced, and up to 810000 IB patches are accepted. by @sbryngelson in #2042 - Reject
chem_params%diffusionwithoutchemistry— this combination previously segfaulted on the first step. by @platelett in #2108 time_data.datandio_time_data.datcolumn headers — renamed froms/steptos/rhsands/saveto match what they measure. Scripts that parse the header need updating. by @sbryngelson in #1949
New features
- Fourier heat conduction in the energy equation —
fluid_pp(i)%k_thermaddsdiv(k grad T)to the mixture energy equation for single- and multi-fluid runs, independent ofviscous. Covers 1D/2D/3D Cartesian and cylindrical, including the axis cell. by @sbryngelson in #1906 - Prescribed kinematics for immersed boundaries —
patch_ib(i)%kin_modelsets the body state directly from the current time at each RK stage (hinged flapping, pitch-up, and others), so parameter sweeps need no rebuild and restarts reproduce the same trajectory. by @sbryngelson in #1847 - Prescribed kinematics for airfoil and STL immersed boundaries — extends
kin_modelto geometries 4, 5, 11 and 12 and fixes a multi-rank setup deadlock along the way. by @sbryngelson in #1929 - Heterogeneous reacting surface boundary conditions by @rocfire11 in #1821
- Smooth inflow start-up —
bc_[x,y,z]%vel_in_ramp,vel_in_t0andvel_in_frac0ramp a GRCBC inflow velocity with a tanh profile, evaluated inside the CBC kernel. Cases without a ramp are bit-identical. by @sbryngelson in #1850 - Ramp Dirichlet inflows and boundary patches as well by @sbryngelson in #1931
- Immersed-boundary force history — each body's force, torque and kinematics are recorded every step to one shared file,
D/ib_forces.dat, with its layout inD/ib_forces.hdr. by @sbryngelson in #1846 - Particle cloud generation moved to pre_process — particles are placed once on CPUs and read by simulation on start and restart. by @danieljvickers in #1839
- Smooth airfoil surfaces — the airfoil level set now projects onto the segments between surface points, as for a 2D STL model. by @danieljvickers in #1924
- Raise the probe limit from 10 to 64 by @sbryngelson in #1845
- Write
vel(2)to 2D probe files and drop the per-step print by @sbryngelson in #1844 - Generate
m_thermochemas Fypp source using MFC's conventions by @sbryngelson in #1917 - Generate caller-shaped thermochemistry routines by @sbryngelson in #1919
- Raise the amdflang species bound so mechanisms above ten species build by @sbryngelson in #1852
- Size species arrays from the generated mechanism on AMD by @sbryngelson in #1918
- Add Tuolumne AMD (
tamd): AFAR 24.3.0 amdflang + Cray MPICH, gfx942 by @sbryngelson in #2032 - Add the thin-plate force case that measures issue 1849 by @sbryngelson in #1868
Performance
- Collapse only spatial loops in per-variable GPU kernels — 5.4-10.3% lower grind time on H200, bit-identical output. by @AppleChen17 in #2087
- Read WENO stencils directly from
v_vf— removes an identical copy before each WENO3/5/7 reconstruction; 5.9-6.5% lower grind time on H200. by @AppleChen17 in #2092 - Optimize IB index lookup — removes the main cost of IB ownership handoff at hundreds of millions of IBs. by @danieljvickers in #1916
- Add
-fopenmp-assume-no-thread-stateto the amdflang offload flags (~1.2x on AFAR 24.3) by @sbryngelson in #1940 - Stop amdflang GPU builds relinking the whole device image every time (no-op build 19m37s to 0.4s on Frontier) by @sbryngelson in #1904
- Fix parallel I/O failures and performance overhead by passing array sections to MPI-IO by @Tix3Dev in #2085
- IB: check every patch is marked in one pass and one reduction by @sbryngelson in #1933
Bug fixes
- Fix the IBM RK integrator — the coefficients made immersed boundaries propagate at first order; they now have the intended order. by @danieljvickers in #2040
- Fix the azimuthal flux divergence and geometric sources in 3D cylindrical coordinates by @aliencaocao in #2051
- Stop NVHPC IPO silently miscompiling the six-equation relaxation kernel — inlining dropped the internal-energy update in OpenACC device code. by @sbryngelson in #1878
- Debug IBM stability — a set of latent multi-rank immersed-boundary fixes, including masking IB interiors from the CFL assessment. by @danieljvickers in #1792
- Refresh the device copy of
num_gpswhen a moving immersed boundary is updated — stale ghost points were written into fluid cells, differently on each run. by @sbryngelson in #1887 - Synthetic turbulence seeds are now independent — modes are drawn from an exact integer PRNG; previously different
synth_seedvalues gave mostly the same forcing. by @sbryngelson in #1946 - Fixed-dt restarts continue bitwise by @sbryngelson in #1951
- Restore the slope sign in the SUPERBEE limiter by @aliencaocao in #2049
- Transport volume fractions in the LF solver by @aliencaocao in #2050
- Give HLL's viscous energy flux a face velocity by @aliencaocao in #2054
- Restore pT equilibrium when pTg relaxation uses up a phase by @aliencaocao in #2052
- Fill the six-equation phasic energies in the primitive variables by @aliencaocao in #2055
- Abort when post_process is given a different grid than the restart files by @sbryngelson in #1858
- Reject truncated restart files and incompatible boundary decompositions by @sbryngelson in #1948
- Abort on a fluid cell with no valid time step instead of dropping it from the dt reduction by @sbryngelson in #1952
- Abort with the file name when
MPI_FILE_OPENfails by @sbryngelson in #1932 - Append to probe and CoM files only when continuing a run by @sbryngelson in #1867
- Probes: own a probe on a rank face by one rank only (values were doubled) by @sbryngelson in #1945
- Choose
ib_neighborhood_radiusfrom the thinnest rank, not the widest by @sbryngelson in #1866 - IB: abort if an immersed boundary marks no cell anywhere by @sbryngelson in #1914
- IB: survive ranks that hold no patch, and bound the ghost-point array per rank by @sbryngelson in #1930
- IB: size the ownership hand-off arrays by the neighborhood radius by @sbryngelson in #1944
- Fix periodic errors near IB surfaces by @danieljvickers in #1922
- Make the IB force-reduction receive buffers device resident by @sbryngelson in #1843
- Copy the
ibflag to the device by @sbryngelson in #1937 - Map OpenMP reduction variables explicitly on NVHPC by @sbryngelson in #2018
- Don't leave optional arrays absent in GPU loops; move famd and amdfund to AFAR 24.3.0 by @sbryngelson in #1920
- Pass Flux a valid
--time-limitin the Tuolumne batch templates by @sbryngelson in #2033 - Fix computer name in load error and empty-arg tests by @sbryngelson in #1983
- Fix Python bootstrap compatibility and Fypp patching by @sbryngelson in #2020
- Fix indexed-parameter schema and fallback constants by @sbryngelson in #2021
Refactoring & internals
- Extract
m_eosand add a single EOS family registry by @sbryngelson in #1870 - Clean up the IBM correct-state subroutine by @danieljvickers in #1838
- Retire the WENO7 amdflang workaround; record which ones AFAR 24.3 still needs by @sbryngelson in #1939
- Build: rebuild dependencies built by a different toolchain by @sbryngelson in #1935
CI & testing
- Test: fail fast under
--no-buildwhen a needed binary is missing; add--no-chemistryby @sbryngelson in #1934 - Test: compile thermochem kernels with the configured Fortran compiler by @sbryngelson in #1943
- Fix the grcbc outflow tests that #1854 broke by @sbryngelson in #1889
- Fail a SLURM job the scheduler marked FAILED, whatever its exit code by @sbryngelson in #1879
- Probe the node with a solver binary, not just syscheck by @sbryngelson in #1871
- Exclude faulty Phoenix node atl1-1-01-002-28-0 by @sbryngelson in #1865
- Raise self-hosted job timeout to 1380m to absorb Phoenix queue wait by @sbryngelson in #1942
- Put the benchmark speedup table on the run summary page by @sbryngelson in #1872
- Only build and push containers from the upstream repository by @sbryngelson in #1888
- Pin compiler versions in Intel CI by @wilfonba in #2099
- Review every PR with Claude, including from authors without write access by @sbryngelson in #2043
- Fix doc-reference lint, review follow-ups, preflight portability, and the Homebrew release trigger by @sbryngelson in #1857
Documentation
- Add five showcase cards (schlieren trio, flapping wing, Starship plume) by @sbryngelson in #1885
- Add five flapping-flight and jet runs to the showcase by @sbryngelson in #1912
- Troubleshooting: NVHPC GPU link fails in deep build paths by @sbryngelson in #2034
- Label
time_data.datandio_time_data.datcolumns by what they measure by @sbryngelson in #1949 - Check staged docs for date footers; say what precheck skips by @sbryngelson in #2028
- Consolidate agent instructions into
.claude/CLAUDE.mdby @sbryngelson in #1855 - One linted agent entry point; fix the silent Claude review; correct contributing.md by @sbryngelson in #2027
- Tell agents to re-read the code path after two failed fixes by @sbryngelson in #2035
New Contributors
- @rocfire11 made their first contribution in #1821
- @AppleChen17 made their first contribution in #2087
- @platelett made their first contribution in #2108
- @Tix3Dev made their first contribution in #2085
Full Changelog: v5.7.0...v5.7.1