Skip to content

Commit

Permalink
#40: remove unecessary visualisations
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrepebay committed Oct 5, 2021
1 parent 1183b52 commit 3ef324d
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions testing/compareResults.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
import os
import matplotlib.pyplot as plt
import numpy as np
from skimage import io

def openFoam_results_reader(path_to_file):
velocity_values = []
Expand Down Expand Up @@ -61,13 +60,6 @@ def main():
t = np.array([cppfd_velocity_values[i][0] for i in range(len(cppfd_velocity_values))])
cppfd_velocity_matrix = t.reshape((N_cppfd, N_cppfd))

# visualize results
# io.imshow(openFoam_velocity_matrix)
# plt.show()

io.imshow(cppfd_velocity_matrix)
plt.show()

# plot velocities along center line
y_openFoam = [openFoam_velocity_matrix[i][N_oF // 2] for i in range(N_oF - 1, -1, -1)]
y_cppfd = [cppfd_velocity_matrix[i][N_cppfd // 2] for i in range(N_cppfd - 1, -1, -1)]
Expand Down

0 comments on commit 3ef324d

Please sign in to comment.