From 9fea10d21a49f5f0fb800760c4a024fc792aca90 Mon Sep 17 00:00:00 2001 From: Bruce Perry Date: Mon, 23 Sep 2024 11:01:27 -0600 Subject: [PATCH] fix pressure unit conversion in writeResult --- Testing/Exec/IgnitionDelay/computeIgnitionDelay.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Testing/Exec/IgnitionDelay/computeIgnitionDelay.py b/Testing/Exec/IgnitionDelay/computeIgnitionDelay.py index f4ba62dbc..12ae2c8a3 100644 --- a/Testing/Exec/IgnitionDelay/computeIgnitionDelay.py +++ b/Testing/Exec/IgnitionDelay/computeIgnitionDelay.py @@ -41,7 +41,7 @@ def writeNewInput(oldInput,newInput,dt,ndt): def writeResult(filename,temp,press,phi,tign,uncertainty): with open(filename,'w+') as f: - logMessage = f"T = {temp:.3g} K , P = {press/101325.0:.3g} atm, Phi = {phi:.3g}, tIgn = {ignitionDelayPP:.3g} +/- {dt/ndt:.3g} s" + logMessage = f"T = {temp:.3g} K , P = {press/1013250.0:.3g} atm, Phi = {phi:.3g}, tIgn = {ignitionDelayPP:.3g} +/- {dt/ndt:.3g} s" f.write(logMessage) def readMultiColFile(filename,headerSize=0):