Esempio n. 1
0
 def liquid_depth_from_volume(self, vol):
     if vol <= 0.0:
         return 0.0
     if vol <= 3296.08:
         return -5.522264395071952 + 0.6039249881108911 * cubeRoot(
             764.5441851977812 + 8.842372775534407 * vol)
     return -2269.6881765411304 + 37.538777353484434 * cubeRoot(
         223119.88753911393 + 0.5460286683567588 * vol)
Esempio n. 2
0
 def liquid_depth_from_volume(self, vol):
     if vol <= 0.0:
         return 0.0
     if vol <= 1260.65:
         return -4.605312927271903 + 1.425220154402649 * cubeRoot(
             33.73895064080807 + 5.3077630053562075 * vol)
     return -809.8165210055173 + 27.119471721476614 * cubeRoot(
         27957.824136197134 + 0.7370907258662586 * vol)
Esempio n. 3
0
 def liquid_depth_from_volume(self, vol):
     if vol <= 0:
         return 0
     if vol <= 4.97137:
         return 3.33494414484718 / cubeRoot(
             -3 * vol + sqrt(116.52404878202921 + 9 * square(vol))
         ) - 0.6827840632552957 * cubeRoot(
             -3 * vol + sqrt(116.52404878202921 + 9 * square(vol)))
     if vol <= 1014.06:
         return -4.527482527717488 + 1.4293857409730928 * cubeRoot(
             39.92570761834668 + 4.646502581189681 * vol)
     return -302.1252531106694 + 15.294554814291097 * cubeRoot(
         8610.391237925141 + 0.6794188941067961 * vol)
Esempio n. 4
0
 def liquid_depth_from_volume(self, vol):
     if vol <= 0:
         return 0
     if vol <= 0.67718:
         return 3.2346271740790455 / cubeRoot(
             -3 * vol + sqrt(106.32185983362221 + 9 * square(vol))
         ) - 0.6827840632552957 * cubeRoot(
             -3 * vol + sqrt(106.32185983362221 + 9 * square(vol)))
     if vol <= 463.316:
         return -8.597168410942386 + 2.324577069455727 * cubeRoot(
             52.28910925575565 + 2.660323800283652 * vol)
     return -214.3418544824842 + 19.561686679619903 * cubeRoot(
         1474.2109760964095 + 0.37305557584692783 * vol)
Esempio n. 5
0
 def liquid_depth_from_volume(self, vol):
     if vol <= 0.0:
         return 0.0
     if vol <= 95.7748:
         return -6.514739207958923 + 2.7801804906856553 * cubeRoot(
             12.86684682940816 + 1.3870479041474308 * vol)
     return 3.669055001226564 + 0.04642103427328387 * vol
Esempio n. 6
0
 def liquid_depth_from_volume(self, vol):
     if vol <= 0.0:
         return 0.0
     if vol <= 67.1109:
         return 0.9095678851543723 * cubeRoot(vol)
     return 2.464193794602757 + 0.018359120058446303 * vol