yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #06577
[Branch ~yade-dev/yade/trunk] Rev 2612: fix bug [Bug 692452]
------------------------------------------------------------
revno: 2612
committer: Sergei D. <sega@think>
branch nick: trunk
timestamp: Mon 2010-12-20 10:19:47 +0300
message:
fix bug [Bug 692452]
modified:
pkg/dem/NozzleFactory.cpp
--
lp:yade
https://code.launchpad.net/~yade-dev/yade/trunk
Your team Yade developers is subscribed to branch lp:yade.
To unsubscribe from this branch go to https://code.launchpad.net/~yade-dev/yade/trunk/+edit-subscription
=== modified file 'pkg/dem/NozzleFactory.cpp'
--- pkg/dem/NozzleFactory.cpp 2010-12-19 09:55:19 +0000
+++ pkg/dem/NozzleFactory.cpp 2010-12-20 07:19:47 +0000
@@ -44,7 +44,7 @@
int attempt;
for(attempt=0; attempt<maxAttempt; attempt++){
Real angle=randomUnit()*2*Mathr::PI, rr=randomUnit()*(radius-r); // random polar coordinate inside the nozzle
- c = center+q*Vector3r(cos(angle)*rr,sin(angle)*rr,0)
+ c = center+q*Vector3r(cos(angle)*rr,sin(angle)*rr,0);
// this version places center in a box around the nozzle center (its size 1.15=2/sqrt(3) diagonal, which is not very exact
//c=center+Vector3r((randomUnit()-.5)*1.15*radius,(randomUnit()-.5)*1.15*radius,(randomUnit()-.5)*1.15*radius);
LOG_TRACE("Center "<<c);