Skip to content

Commit

Permalink
[T/BHE] Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
endJunction committed Jan 3, 2023
1 parent 7a37bb8 commit 4cbba0a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,18 +179,18 @@ def serverCommunicationPreTimestep(self, t, dt, Tin_val, Tout_val, flowrate):
flowrate_file.close()

return (Tin_val, flowrate)

def serverCommunicationPostTimestep(self, t, dt, Tin_val, Tout_val, flowrate):
Tin_val = [305,305,305]
Tin_val = [305, 305, 305]

tin = open("T_in.txt", "a")
tin.write("post: " + str(t) + str(Tin_val) + "\n")
tin.close()

tout = open("T_out.txt", "a")
tout.write("post: " + str(t) + str(Tout_val) + "\n")
tout.close()

flowrate_file = open("flowrate.txt", "a")
flowrate_file.write("post: " + str(t) + str(flowrate) + "\n")
flowrate_file.close()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,18 @@ def serverCommunicationPreTimestep(self, t, dt, Tin_val, Tout_val, flowrate):
flowrate_file.close()

return (Tin_val, flowrate)

def serverCommunicationPostTimestep(self, t, dt, Tin_val, Tout_val, flowrate):
Tin_val = [305]

tin = open("T_in.txt", "a")
tin.write("post: " + str(t) + str(Tin_val) + "\n")
tin.close()

tout = open("T_out.txt", "a")
tout.write("post: " + str(t) + str(Tout_val) + "\n")
tout.close()

flowrate_file = open("flowrate.txt", "a")
flowrate_file.write("post: " + str(t) + str(flowrate) + "\n")
flowrate_file.close()
Expand Down

0 comments on commit 4cbba0a

Please sign in to comment.