add a utils.js file just to start it off.

This commit is contained in:
lukas fricke 2025-02-05 18:14:25 +01:00
parent 4f72bb9b80
commit b5d8408ed6

12
utils.js Normal file
View file

@ -0,0 +1,12 @@
function observed_volume(FoV_Width, FoV_Height, Sample_Size, Slip_Width, Slip_Height){
// Slip dimensions in mm - Sample Size in uL:
// uL / mm*mm -> 10^9 um³ / 10^6 um²
// 10^9 um³ / 10^12 um² = 10^3 um
let h = (Sample_Size / Slip_Width*Slip_Height)*Math.pow(10,3);
// observed volume = h * Area FoV [um³]
// 1 um³ = 10^-9 uL
let observed_volume = h * FoV_Width * FoV_Height * Math.pow(10,-9);
return observed_volume
}