← Back to team overview

yade-dev team mailing list archive

[Branch ~yade-pkg/yade/git-trunk] Rev 3803: small change in PFV checkTest

 

------------------------------------------------------------
revno: 3803
committer: Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx>
timestamp: Thu 2014-01-23 19:10:35 +0100
message:
  small change in PFV checkTest
modified:
  scripts/checks-and-tests/checks/DEM-PFV-check.py


--
lp:yade
https://code.launchpad.net/~yade-pkg/yade/git-trunk

Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-pkg/yade/git-trunk/+edit-subscription
=== modified file 'scripts/checks-and-tests/checks/DEM-PFV-check.py'
--- scripts/checks-and-tests/checks/DEM-PFV-check.py	2013-11-26 16:22:14 +0000
+++ scripts/checks-and-tests/checks/DEM-PFV-check.py	2014-01-23 18:10:35 +0000
@@ -23,7 +23,8 @@
 	wallIds=O.bodies.append(walls)
 
 	sp=pack.SpherePack()
-	#sp.makeCloud(mn,mx,-1,0.3333,num_spheres,False, 0.95,seed=1) #"seed" is not enough for portable determinism it seems, let us use a data file
+	sp.makeCloud(mn,mx,-1,0.3333,num_spheres,False, 0.95,seed=0) #"seed" is not enough for portable determinism it seems, let us use a data file
+	checksPath="/home/3S-LAB/bchareyre/yade/yade-git/trunk/scripts/checks-and-tests/checks"
 	sp.load(checksPath+'/data/100spheres')
 
 	sp.toSimulation(material='spheres')
@@ -101,8 +102,8 @@
 	Qout = flow.getBoundaryFlux(3)
 	permeability = abs(Qin)/1.e-4 #size is one, we compute K=V/∇H
 
-	if abs(Qin+Qout)>1e-15 :
-		print "DEM-PFV: unbalanced Qin vs. Qout"
+	if abs(Qin+Qout)>1e-10 :
+		print "DEM-PFV: unbalanced Qin vs. Qout (",Qin," vs. ",Qout,")"
 		errors+=1
 
 	target=0.040399916554