feat(cfd): add FlowSolution::integral_to_taylor_ratio (completes scale trio)#466
Merged
Merged
Conversation
…e trio) Completes the turbulence length-scale-ratio trio with the integral-to-Taylor ratio L/λ (dimensionless) — the ratio of the energy-containing integral length scale L (integral_length_scale, #445) to the intermediate Taylor microscale λ (taylor_microscale, #441). It joins λ/η (taylor_to_kolmogorov_ratio, #455) and L/η (integral_to_kolmogorov_ratio, #457). It grows linearly with Reynolds number (∝ 1/ν for a fixed flow) and in isotropic turbulence is exactly L/λ = Re_λ/15. Guards λ ≤ 0 (no dissipation). Analytic test (4 checks) on a pure shear u(y)=γy (ε=νγ²) and a solid-body rotation (ε=0): (a) delegation thread L/λ = L ÷ λ; (b) non-tautological identity L/λ = Re_λ/15 threading taylor_reynolds_number (#443); (c) 1/ν scaling — fixed field, halving ν doubles the ratio; (d) no-dissipation → 0. valenx-cfd-native 142 lib tests (was 141), clippy clean. No UI change. Research-grade closed-form diagnostic, not a production turbulence model.
nochallenge
added a commit
that referenced
this pull request
Jun 9, 2026
…ent (3PL/32) (#480) OPENS the two-span continuous-beam POINT-LOAD case. Adds the middle-support moment of a two-span continuous beam (three simple supports A-B-C, two equal spans L) when a single point load P acts at the mid-span of ONE span (the other unloaded): M_B = 3PL/32 (hogging). Derivation (three-moment / Clapeyron theorem): the loaded span's free-BM triangle (area PL²/8, centroid L/2 from the end support) gives 2·M_B·(2L) = -6·(PL²/8)(L/2)/L → M_B = -3PL/32. NOTE 3PL/32 = ½·(3PL/16) = ½· the propped-cantilever clamping moment (#466): the unloaded equal-stiffness adjacent span provides finite (not rigid) rotational restraint at B, exactly halving the fully-fixed value. Free fn -> alphabetical lib.rs re-export. Analytic test (4 checks): (a) exact value M_B = 3PL/32 = 6 for P=32, L=2; (b) NON-TAUTOLOGICAL dual thread over three signed (P, L) cases — (i) M_B = ½· the propped-cantilever clamping moment (#466), (ii) an INDEPENDENT three-moment-theorem recompute from the free-BM triangle area/centroid; (c) linear in P and L; (d) guards (L <= 0 or P non-finite -> 0). valenx-fem 284 lib tests (was 283), clippy clean. No UI change. Research-grade closed-form continuous-beam result, not a production solver.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Completes the turbulence length-scale-ratio trio in
valenx-cfd-nativewith the integral-to-Taylor ratioL/λ(dimensionless) — the ratio of the energy-containing integral length scaleL(integral_length_scale, #445) to the intermediate Taylor microscaleλ(taylor_microscale, #441).It joins
λ/η(taylor_to_kolmogorov_ratio, #455) andL/η(integral_to_kolmogorov_ratio, #457). It grows linearly with Reynolds number (∝ 1/νfor a fixed flow) and in isotropic turbulence is exactlyL/λ = Re_λ/15. Guardsλ ≤ 0.Test (analytic, 4 checks)
On a pure shear
u(y)=γy(ε=νγ²) and a solid-body rotation (ε=0):L/λ = L ÷ λ.taylor_reynolds_number, feat(cad): surface-equivalent sphere diameter #443):L/λ = Re_λ/15.νdoubles the ratio.Verification
cargo test -p valenx-cfd-native --lib→ 142 passed (was 141).cargo clippy -p valenx-cfd-native --all-targets -- -D warnings→ clean.FlowSolutionmethod, no public-API/lib.rs change. No UI change.Research-grade closed-form diagnostic, not a production turbulence model.