tFile IO verified - ns2dfd - 2D finite difference Navier Stokes solver for flui… | |
git clone git://src.adamsgaard.dk/ns2dfd | |
Log | |
Files | |
Refs | |
LICENSE | |
--- | |
commit ced07c5f97209d25f3c9d4bc1d66e2c4c7152d6a | |
parent 1c27cca37f5dad626780cc0a7475f76285534073 | |
Author: Anders Damsgaard <[email protected]> | |
Date: Sun, 2 Mar 2014 19:50:16 +0100 | |
File IO verified | |
Diffstat: | |
M ns2dfd.py | 4 +++- | |
1 file changed, 3 insertions(+), 1 deletion(-) | |
--- | |
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] = \ |