feat(cfd): mean viscous dissipation rate#438
Merged
Merged
Conversation
Add FlowSolution::mean_dissipation_rate(kinematic_viscosity), the rate at which the flow irreversibly converts kinetic energy to heat by viscosity: eps = nu * <|S|^2> = nu * (rms_strain_rate)^2 (m^2/s^3, per unit mass) the quantity that closes the turbulent energy budget (the Kolmogorov cascade rate). Since |S|^2 = 2 S_ij S_ij, eps = 2*nu*<S_ij S_ij>. It is the strain-squared companion to rms_strain_rate (#428), threading it directly. A pure rotation strains nothing and dissipates nothing; only deformation dissipates. Analytic test mean_dissipation_rate_is_viscosity_times_strain_squared: (a) worked: pure shear u(y)=gamma*y, |S|=gamma, nu=0.1 -> eps=nu*gamma^2=0.4; (b) threads rms_vorticity (#406) (non-tautological): for a pure shear |S|=|omega|, so eps = nu*rms_vorticity^2; (c) solid-body rotation -> no strain -> no dissipation (even though it spins); (d) proportional to nu, and zero at nu=0. Pure method on FlowSolution, no lib.rs change. cfd-native 129 lib tests (was 128), cargo clippy --all-targets -D warnings clean.
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.
What
Adds
FlowSolution::mean_dissipation_rate(kinematic_viscosity)— the rate at which the flow irreversibly converts kinetic energy to heat by viscosity:// eps = nu * <|S|^2> = nu * (rms_strain_rate)^2 (m^2/s^3, per unit mass)Why
The quantity that closes the turbulent energy budget (the Kolmogorov cascade rate) — the CFD lane's first genuine energy diagnostic. Since
|S|^2 = 2 S_ij S_ij,eps = 2*nu*<S_ij S_ij>. It is the strain-squared companion torms_strain_rate(#428), threading it directly. A pure rotation strains nothing and dissipates nothing; only deformation dissipates.Test
mean_dissipation_rate_is_viscosity_times_strain_squared(5x5 unit grid):u(y)=gamma*y,|S|=gamma,nu=0.1->eps=nu*gamma^2=0.4;rms_vorticity(feat(cad): Sneed-Folk maximum-projection sphericity #406) (non-tautological) — for a pure shear|S|=|omega|, soeps = nu*rms_vorticity^2;nu, and zero atnu=0.Pure method on
FlowSolution, nolib.rschange.valenx-cfd-native129 lib tests (was 128);cargo clippy -p valenx-cfd-native --all-targets -- -D warningsclean. Research-grade turbulence energy-budget diagnostic.