yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #08274
[Question #236237]: How to get Interaction info
New question #236237 on Yade:
https://answers.launchpad.net/yade/+question/236237
I'm writing a Callback Class to count Interactions. But as it seems interactions of bodies which stay together persist as the simulation advances. Therefore I want to filter out this interactions by using the forces between the spheres.
I'm trying to use the IPhys class but I get an SIGSEGV/SIGABRT when calling the function.
FOREACH(const shared_ptr<Interaction>& i, intrsList)
{
shared_ptr<IPhys> phys(i->phys);
shared_ptr<NormPhys> normPhys(YADE_PTR_CAST<NormPhys>(phys));
cout << normPhys->normalForce << endl;
}
What is the poblem here, how to I get the Interaction properties from the IPhys and the IGeom class?
Thanks
Cheers Reza
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.