← Back to team overview

yade-users team mailing list archive

Re: [Question #237047]: BubbleMat updated, interaction not working after 1 or 2 contacts

 

Question #237047 on Yade changed:
https://answers.launchpad.net/yade/+question/237047

    Status: Open => Answered

Anton Gladky proposed the following answer:
2013/10/8 Nolan Dyck <question237047@xxxxxxxxxxxxxxxxxxxxx>:
> The bubble bounces a couple of times (apparently depending on size, gravity scale, and density) and then disappears. The inspector shows the normal forces and penetrationDepth going to NaN.

I did not compile/check your code. But what can cause problems is line
42 [1]

Real c2 = 1./(4*c1*rAvg);

[1] https://github.com/ndyck/trunk/blob/master/pkg/dem/BubbleMat.cpp#L42

Are you sure, that (4*c1*rAvg) is always <>0?

> It would also be nice to know how to update my fork to the changes
made in yade/trunk. I do not understand how to do that. This may be part
of the issue.

Unlikely. See git documentation, how to pull and merge branches [2].

[2] https://help.github.com/categories/19/articles

When you are ready with your contact model, we can try to integrate it into
the main branch. But for that please:

- doublecheck the code;
- add an example of using it;
- add references on sources, where you took equations [3].

[3]
https://github.com/yade/trunk/blob/master/pkg/dem/ViscoelasticCapillarPM.cpp#L33

Best regards,

Anton

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.