Closed AlexBotts closed 2 years ago
StandarDensity and sonicDensity are being calculated incorrectly. I also don't see caDensity being calculated at all or a conversion for user input from F to R... for metric this conversion for temp will be different.
airTempRankine = airTemp + 459.67 'converting F to R you may want to do this on the desktop side caPressurePSIA = supplyPressure + atmpressure caDensity = (caPressurePSIA 144 / 53.34 airTempRankine) standardDensity = atmpressure 144 / (53.34 airTempRankine)) sonicDensity = (caDensity * (2 / (1.4 + 1)) ^ (1 / (1.4 - 1)))
Assuming calculations above work out, the label on the UI for SupplyPressure will need updated to "psig"
@AlexBotts looking at the excel you sent me I think:
caDensity = caPressurePSIA 144 / (53.34 airTempTankine)
Okay so the rest of the calculations for compressed air are done with an air temp of Fahrenheit not Rankine. So I am going to do the conversion in the suite in this case.. However, wondering if the airTemp for the leakVelocity calculation should be in Rankine or Fahrenheit
good catch, yes, that value for leak velocity should be in rankine
Will need local suite develop
to get changes
the caDensity should be outside the power function for the calcuation of sonicDensity
There is a bug somewhere in the calculation. The original excel sheet is giving the proper answer but doesn't match MEASUR. Alex is combing through to find the issue.