Introduction
Introduction Statistics Contact Development Disclaimer Help
tadd function to input/output current simulation time - sphere - GPU-based 3D d…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit 1de4c1866e675e10e411edd96e5cebbc16317fb8
parent 3fb2ebf739fa4636a0bc1986655b561732551cbc
Author: Anders Damsgaard <[email protected]>
Date: Wed, 18 Feb 2015 09:48:32 +0100
add function to input/output current simulation time
Diffstat:
M python/sphere.py | 17 +++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/python/sphere.py b/python/sphere.py
t@@ -3107,6 +3107,23 @@ class sim:
raise Exception('Value of cfd_solver not understood (' + \
str(self.cfd_solver[0]) + ')')
+ def currentTime(self, value=-1):
+ '''
+ Get or set the current time. If called without arguments the current
+ time is returned. If a new time is passed in the 'value' argument, the
+ time is written to the object.
+
+ :param value: The new current time
+ :type value: float
+
+ :returns: The current time
+ :return type: float
+ '''
+ if value != -1:
+ self.time_current[0] = value
+ else:
+ return self.time_current[0]
+
def setFluidBottomNoFlow(self):
'''
Set the lower boundary of the fluid domain to follow the no-flow
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.