tFile IO verified - ns2dfd - 2D finite difference Navier Stokes solver for fluid dynamics
(HTM) git clone git://src.adamsgaard.dk/ns2dfd
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit ced07c5f97209d25f3c9d4bc1d66e2c4c7152d6a
(DIR) parent 1c27cca37f5dad626780cc0a7475f76285534073
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Sun, 2 Mar 2014 19:50:16 +0100
File IO verified
Diffstat:
M ns2dfd.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
(DIR) diff --git a/ns2dfd.py b/ns2dfd.py
t@@ -173,7 +173,9 @@ class fluid:
self.nx = numpy.fromfile(fh, dtype=numpy.int32, count=1)
self.ny = numpy.fromfile(fh, dtype=numpy.int32, count=1)
- init_grid(dx = self.dx, dy = self.dy, nx = self.nx, ny = self.ny)
+ self.init_grid(dx = self.dx, dy = self.dy,\
+ nx = self.nx, ny = self.ny)
+
for j in range(self.ny+1):
for i in range(self.nx+1):
self.P[i,j] = \