Add openfoam postprocessing read to pickle
This commit is contained in:
parent
a6d2041666
commit
4e89266237
2 changed files with 22 additions and 9 deletions
|
|
@ -31,11 +31,14 @@ olaflow_root = args.output
|
|||
model = OFModel(olaflow_root)
|
||||
model.read_mesh()
|
||||
model.read_time()
|
||||
|
||||
model.read_field_all("alpha.water")
|
||||
model.read_field_all("porosity")
|
||||
model.read_field_all("p")
|
||||
model.read_field_all("p_rgh")
|
||||
model.read_field_all("U")
|
||||
|
||||
model.read_post("graphUniform", "alpha.water")
|
||||
|
||||
with gzip.open(out.joinpath("pickle.gz"), "wb") as f:
|
||||
pickle.dump(model, f)
|
||||
|
|
|
|||
Reference in a new issue