comparison Discovery/Src/buehlmann.c @ 1050:88b6ab90c55a GasConsumption

Added separate LLC view for surface GF: A new LLC view has been added. In addition the surface GF is now clipped to a value of 9.99 => 999% in the visualization
author Ideenmodellierer
date Wed, 19 Nov 2025 21:34:18 +0100
parents d91345e9c009
children
comparison
equal deleted inserted replaced
1049:d91345e9c009 1050:88b6ab90c55a
346 346
347 M_surf = inertgas_a + inertgas_b * pres_surface; 347 M_surf = inertgas_a + inertgas_b * pres_surface;
348 if (M_surf > pres_surface) 348 if (M_surf > pres_surface)
349 { 349 {
350 gf_surf = (tissue_inertgas_saturation - pres_surface) / (M_surf - pres_surface); 350 gf_surf = (tissue_inertgas_saturation - pres_surface) / (M_surf - pres_surface);
351 if(M_surf > 9.99)
352 {
353 M_surf = 9.99; /* only intended to be used with 3 digit visualizations */
354 }
351 if(gf_surf > pDecoInfo->gf_surf) 355 if(gf_surf > pDecoInfo->gf_surf)
352 { 356 {
353 pDecoInfo->gf_surf = gf_surf; 357 pDecoInfo->gf_surf = gf_surf;
354 } 358 }
355 } 359 }