comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhcalculation/TkhCalculator.java @ 8938:9c02733a1b3c

Work on Sinfo-tkh - exports; using same logic for wst-description as winfo
author gernotbelger
date Tue, 06 Mar 2018 17:09:39 +0100
parents 29442c03c6e3
children 82998242ba84
comparison
equal deleted inserted replaced
8937:8596f95673b1 8938:9c02733a1b3c
212 final double critTau = critShields * (PHYS_GRAIN_DENSITY_RHOS - PHYS_WATER_DENSITY_RHO) * PHYS_G * d50; 212 final double critTau = critShields * (PHYS_GRAIN_DENSITY_RHOS - PHYS_WATER_DENSITY_RHO) * PHYS_G * d50;
213 final double tkh = 100 * h * (1 - Math.pow(froude, 2)) / (2 * PHYS_VELOCCOEFF_N * PHYS_FORMCOEFF_ALPHA) * (1 - critTau / tau); 213 final double tkh = 100 * h * (1 - Math.pow(froude, 2)) / (2 * PHYS_VELOCCOEFF_N * PHYS_FORMCOEFF_ALPHA) * (1 - critTau / tau);
214 // Some regular input values may give a negative calculation result; that is unwanted 214 // Some regular input values may give a negative calculation result; that is unwanted
215 if (tkh < 0.0) 215 if (tkh < 0.0)
216 return 0.0; 216 return 0.0;
217 else 217
218 return tkh; 218 return tkh;
219 } 219 }
220 } 220 }

http://dive4elements.wald.intevation.org