Skip to content

Commit

Permalink
fix pressure unit conversion in writeResult
Browse files Browse the repository at this point in the history
  • Loading branch information
baperry2 committed Sep 23, 2024
1 parent a3025ca commit 9fea10d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Testing/Exec/IgnitionDelay/computeIgnitionDelay.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9fea10d

Please sign in to comment.