Introduction
Introduction Statistics Contact Development Disclaimer Help
tFix write of Reynolds number in fluid-grid VTK files - sphere - GPU-based 3D d…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit a6e7460fa10dff1327ca9928b5594ebc9f41f4a6
parent 85df782e88c762b6bb74973fcf408d871badf45a
Author: Anders Damsgaard <[email protected]>
Date: Thu, 31 Oct 2019 12:24:11 +0100
Fix write of Reynolds number in fluid-grid VTK files
Diffstat:
M python/sphere.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/python/sphere.py b/python/sphere.py
t@@ -2097,7 +2097,7 @@ class sim:
dporos.SetNumberOfTuples(grid.GetNumberOfPoints())
# array of scalars: Reynold's number
- Re = self.ReynoldsNumber()
+ Re_values = self.ReynoldsNumber()
Re = vtk.vtkDoubleArray()
Re.SetName("Reynolds number [-]")
Re.SetNumberOfComponents(1)
t@@ -2143,7 +2143,7 @@ class sim:
vel.SetTuple(idx, self.v_f[x, y, z, :])
poros.SetValue(idx, self.phi[x, y, z])
dporos.SetValue(idx, self.dphi[x, y, z])
- Re.SetValue(idx, Re[x, y, z])
+ Re.SetValue(idx, Re_values[x, y, z])
if self.cfd_solver[0] == 1:
k.SetValue(idx, self.k[x, y, z])
K.SetValue(idx, self.K[x, y, z])
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.