Introduction
Introduction Statistics Contact Development Disclaimer Help
tallow initFluid on object that initially wasn't a fluid=True object - sphere -…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit fee5c3b19c0009c2b65cb484e9b7951f2d8b3aec
parent cd3c946b61b00ac1b5bd9776f12d8548fe2d9d39
Author: Anders Damsgaard <[email protected]>
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(-)
---
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…
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.