yade-dev team mailing list archive
-
yade-dev team
-
Mailing list archive
-
Message #01388
[svn] r1837 - trunk/pkg/dem/Engine/DeusExMachina
Author: chareyre
Date: 2009-07-02 23:45:44 +0200 (Thu, 02 Jul 2009)
New Revision: 1837
Modified:
trunk/pkg/dem/Engine/DeusExMachina/TriaxialStressController.cpp
Log:
Missing declarations in r1836.
Modified: trunk/pkg/dem/Engine/DeusExMachina/TriaxialStressController.cpp
===================================================================
--- trunk/pkg/dem/Engine/DeusExMachina/TriaxialStressController.cpp 2009-07-02 21:13:56 UTC (rev 1836)
+++ trunk/pkg/dem/Engine/DeusExMachina/TriaxialStressController.cpp 2009-07-02 21:45:44 UTC (rev 1837)
@@ -323,6 +323,13 @@
*/
void TriaxialStressController::computeStressStrain(MetaBody* ncb)
{
+ shared_ptr<BodyContainer>& bodies = ncb->bodies;
+ PhysicalParameters* p_bottom = static_cast<PhysicalParameters*>((*bodies)[wall_bottom_id]->physicalParameters.get());
+ PhysicalParameters* p_top = static_cast<PhysicalParameters*>((*bodies)[wall_top_id]->physicalParameters.get());
+ PhysicalParameters* p_left = static_cast<PhysicalParameters*>((*bodies)[wall_left_id]->physicalParameters.get());
+ PhysicalParameters* p_right = static_cast<PhysicalParameters*>((*bodies)[wall_right_id]->physicalParameters.get());
+ PhysicalParameters* p_front = static_cast<PhysicalParameters*>((*bodies)[wall_front_id]->physicalParameters.get());
+ PhysicalParameters* p_back = static_cast<PhysicalParameters*>((*bodies)[wall_back_id]->physicalParameters.get());
height = p_top->se3.position.Y() - p_bottom->se3.position.Y() - thickness;
width = p_right->se3.position.X() - p_left->se3.position.X() - thickness;
Follow ups