summaryrefslogtreecommitdiff
path: root/src/research.py
diff options
context:
space:
mode:
authoreug-vs <eugene@eug-vs.xyz>2022-05-23 11:59:05 +0400
committereug-vs <eugene@eug-vs.xyz>2022-05-23 11:59:05 +0400
commit0534e85981b327b8c0effb9b0814ae041a4fb905 (patch)
treea585513317801de808662e3b163b45c69e89b43c /src/research.py
parent5e9eebd534f96042b5802e6f6be2b66ecb7fd271 (diff)
downloadCFD-SIMPLE-0534e85981b327b8c0effb9b0814ae041a4fb905.tar.gz
refactor: use iterator for grid
Diffstat (limited to 'src/research.py')
-rw-r--r--src/research.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/research.py b/src/research.py
index f0374cf..d660f8e 100644
--- a/src/research.py
+++ b/src/research.py
@@ -37,6 +37,8 @@ class Research:
self.plotter.plot(self.model)
if preview:
self.plotter.show()
+ if save_plot:
+ self.plotter.save(os.path.join(self.path, f'{iteration}.png'))
if iteration % 50 == 0:
if save_model: