Fix: postProcess incorrect log path
This commit is contained in:
parent
11b612a99f
commit
59e44dd08d
@ -18,7 +18,7 @@ class PostProcess(object):
|
|||||||
def flowRate(self, patch: str):
|
def flowRate(self, patch: str):
|
||||||
func = "patchFlowRate(patch={})".format(patch)
|
func = "patchFlowRate(patch={})".format(patch)
|
||||||
filepath = path.join(self.path, "postProcessing", func, "0", "surfaceFieldValue.dat")
|
filepath = path.join(self.path, "postProcessing", func, "0", "surfaceFieldValue.dat")
|
||||||
postProcess(func, cwd = self.path, logpath = self.path)
|
postProcess(func, cwd = self.path, logpath = path.join(self.path, "patchFlowRate.log"))
|
||||||
surfaceFieldValue = datReader(filepath)
|
surfaceFieldValue = datReader(filepath)
|
||||||
|
|
||||||
return surfaceFieldValue["sum(phi)"][-1]
|
return surfaceFieldValue["sum(phi)"][-1]
|
||||||
|
Loading…
Reference in New Issue
Block a user