tallow initFluid on object that initially wasn't a fluid=True object - sphere - GPU-based 3D discrete element method algorithm with optional fluid coupling
(HTM) git clone git://src.adamsgaard.dk/sphere
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
(DIR) commit fee5c3b19c0009c2b65cb484e9b7951f2d8b3aec
(DIR) parent cd3c946b61b00ac1b5bd9776f12d8548fe2d9d39
(HTM) Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date: Wed, 26 Mar 2014 12:53:17 +0100
allow initFluid on object that initially wasn't a fluid=True object
Diffstat:
M python/sphere.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/python/sphere.py b/python/sphere.py
t@@ -2276,7 +2276,7 @@ class sim:
:param mu: The fluid dynamic viscosity [kg/(m*s)]
:type mu: float
'''
- self.mu[0] = mu
+ self.mu = numpy.asarrau(mu)
self.p_f = numpy.ones((self.num[0], self.num[1], self.num[2]),
dtype=numpy.float64)
self.v_f = numpy.zeros((self.num[0], self.num[1], self.num[2], self.nd),