Why the _polyhedra_utils.PWaveTimeStep() is invalid

Asked by percy

Hello, everyone!
When i try to run free-fall.py in trunk/examples/polyhedra
I obtain the following warn:
WARN /home/snoopy/myu/trunk/pkg/dem/Shop_01.cpp:450 PWaveTimeStep: PWaveTimeStep has not found any suitable spherical body to calculate dt. dt is set to 1.0

Compared Shop_01.cpp and _polyhedra_utils.cpp, there are some differences in computing PWaveTimeStep(). If _polyhedra_utils.PWaveTimeStep() is called, the warn should be "PWaveTimeStep has not found any suitable spherical or polyhedral body to calculate dt. dt is set to 1.0"; So i think _polyhedra_utils.PWaveTimeStep() is invalid. IS there a bug?
how to solve this problem? Does anybody can help me?

my computer os is ubuntu 14.04, yade version is 1.14.0
Thanks a lot.

Question information

Language:
English Edit question
Status:
Answered
For:
Yade Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jérôme Duriez (jduriez) said :
#1

Hi,

Unfortunately, there might be currently no polyhedra user available to answer your question (I'm not one of them)..
However, if you took time to give a look to the code and think it should be improved, please feel free to go ahead, filling a bug and possibly correcting the code (which would require you to apply for, and be granted, the possibility to "push" code revisions)

In the particular case of this warning message, I'd basically suspect a copy-paste "error" at the time _polyhedra_utils.PWaveTimeStep() was written.

Revision history for this message
percy (percy-k-d) said :
#2

Hi Jérôme Duriez, thanks for your response.
 I’m new in Yade, maybe take some time to solve it. And I want to ask another question. I creat a new constitutive law or new module(class), I don't know where I put them. Should I recompile Yade.

Revision history for this message
Jérôme Duriez (jduriez) said :
#3

Hi,

If you have another question, please open another Launchpad question ;-)

In this particular case, the creation of a new constitutive law has already been discussed so you may give a look e.g. to [1] before any new question. And yes, each time you modify the code, you have to recompile it.

[1]: https://answers.launchpad.net/yade/+question/251218

Can you help with this problem?

Provide an answer of your own, or ask percy for more information if necessary.

To post a message you must log in.