Introduction
Introduction Statistics Contact Development Disclaimer Help
tfixed output file name - ns2dfd - 2D finite difference Navier Stokes solver fo…
git clone git://src.adamsgaard.dk/ns2dfd
Log
Files
Refs
LICENSE
---
commit 21beace0920e40917cfb89632dc3bb0387b2370a
parent fd992e44cc3ef9a8a55b0f36db39d5e76eb798b5
Author: Anders Damsgaard <[email protected]>
Date: Sun, 2 Mar 2014 10:16:10 +0100
fixed output file name
Diffstat:
M ns2dfd.py | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/ns2dfd.py b/ns2dfd.py
t@@ -13,17 +13,17 @@ class fluid:
'''
self.sim_id = name
- init_grid()
- current_time()
- end_time()
- safety_factor()
- max_iterations()
- tolerance_criteria()
- relaxation_parameter()
- upwind_differencing_factor()
- boundary_conditions()
- reynolds_number()
- gravity()
+ self.init_grid()
+ self.current_time()
+ self.end_time()
+ self.safety_factor()
+ self.max_iterations()
+ self.tolerance_criteria()
+ self.relaxation_parameter()
+ self.upwind_differencing_factor()
+ self.boundary_conditions()
+ self.reynolds_number()
+ self.gravity()
def init_grid(self, nx = 10, ny = 10, dx = 0.1, dy = 0.1):
'''
t@@ -51,7 +51,7 @@ class fluid:
:param t: The current time value.
:type t: float
'''
- self.t_end = numpy.asarray(t)
+ self.t = numpy.asarray(t)
def end_time(self, t_end = 1.0):
'''
t@@ -200,7 +200,7 @@ class fluid:
'''
fh = None
try:
- targetfile = folder + '/' + self.sim_id
+ targetfile = folder + '/' + self.sim_id + '.dat'
if verbose == True:
print('Output file: ' + targetfile)
fh = open(targetfile, 'wb')
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.