yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #03556
[Branch ~yade-dev/yade/trunk] Rev 2066: - Fix an error in max_vel's definition.
------------------------------------------------------------
revno: 2066
committer: Bruno Chareyre <bchareyre@r1arduina>
branch nick: trunk
timestamp: Tue 2010-03-09 09:48:38 +0100
message:
- Fix an error in max_vel's definition.
modified:
pkg/dem/Engine/PartialEngine/TriaxialStressController.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/Engine/PartialEngine/TriaxialStressController.cpp'
--- pkg/dem/Engine/PartialEngine/TriaxialStressController.cpp 2010-02-23 14:03:02 +0000
+++ pkg/dem/Engine/PartialEngine/TriaxialStressController.cpp 2010-03-09 08:48:38 +0000
@@ -192,16 +192,16 @@
spheresVolume += 1.3333333*Mathr::PI*pow ( sphere->radius, 3 );
}
}
- max_vel1=3 * width /(depth+width+depth)*max_vel;
- max_vel2=3 * height /(depth+width+depth)*max_vel;
- max_vel3 =3 * depth /(depth+width+depth)*max_vel;
+ max_vel1=3 * width /(height+width+depth)*max_vel;
+ max_vel2=3 * height /(height+width+depth)*max_vel;
+ max_vel3 =3 * depth /(height+width+depth)*max_vel;
firstRun = false;
}
// NOT JUST at the first run, since sigma_iso may be changed
// if the TriaxialCompressionEngine is used, sigma_iso is attributed to sigma1, sigma2 and sigma3
if (isAxisymetric){
- sigma1=sigma2=sigma3=sigma_iso;
+ sigma1=sigma2=sigma3=sigma_iso;
}