Introduction
Introduction Statistics Contact Development Disclaimer Help
tudpate to new default pressure - sphere - GPU-based 3D discrete element method…
git clone git://src.adamsgaard.dk/sphere
Log
Files
Refs
LICENSE
---
commit 40e88f9865a7515575552bae55d42a85665742ff
parent 04f0dda8bcbf205fd4468c4f80a324dbbbf070f8
Author: Anders Damsgaard <[email protected]>
Date: Mon, 10 Nov 2014 13:32:04 +0100
udpate to new default pressure
Diffstat:
M tests/cfd_tests_darcy_particles.py | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/tests/cfd_tests_darcy_particles.py b/tests/cfd_tests_darcy_particl…
t@@ -24,9 +24,9 @@ orig.run(verbose=False)
py = sphere.sim(sid = orig.sid, fluid = True)
py.readlast(verbose=False)
-ones = numpy.ones((orig.num))
+zeros = numpy.zeros((orig.num))
py.readlast(verbose = False)
-compareNumpyArrays(ones, py.p_f, "Conservation of pressure:")
+compareNumpyArrays(zeros, py.p_f, "Conservation of pressure:")
# Fluid flow should be very small
if ((numpy.abs(py.v_f[:,:,:,:]) < 1.0e-6).all()):
t@@ -61,9 +61,9 @@ orig.run(verbose=False)
py = sphere.sim(sid = orig.sid, fluid = True)
py.readlast(verbose=False)
-ones = numpy.ones((orig.num))
+zeros = numpy.zeros((orig.num))
py.readlast(verbose = False)
-compareNumpyArrays(ones, py.p_f, "Conservation of pressure:")
+compareNumpyArrays(zeros, py.p_f, "Conservation of pressure:")
# Fluid flow should be very small
if ((numpy.abs(py.v_f[:,:,:,:]) < 1.0e-6).all()):
t@@ -99,9 +99,9 @@ orig.run(verbose=False)
py = sphere.sim(sid = orig.sid, fluid = True)
py.readlast(verbose=False)
-ones = numpy.ones((orig.num))
+zeros = numpy.zeros((orig.num))
py.readlast(verbose = False)
-compareNumpyArrays(ones, py.p_f, "Conservation of pressure:")
+compareNumpyArrays(zeros, py.p_f, "Conservation of pressure:")
# Fluid flow should be very small
if ((numpy.abs(py.v_f[:,:,:,:]) < 1.0e-6).all()):
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.