← Back to team overview

yade-users team mailing list archive

Re: [Question #701415]: How to generate a clump

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello,

if you get an error, please provide that error ([1], point 2).

I have tried your script with

python3.6: /builds/yade-dev/trunk/deb/yadedaily/core/Clump.cpp:241:
static void yade::Clump::updateProperties(const
boost::shared_ptr<yade::Body>&, unsigned int): Assertion `M > 0' failed.

even being a bit cryptic, "Assertion `M > 0' failed" means that "M" is
either 0 or negative, but should be positive (and non-zero).

> just run the following code, it works.

what is different from the erroneous code? Material.

Together with "M > 0 failed" and
WDensity = 0
one can deduce, that "M" is mass (zero for zero density).

Either set mass of boxes manually non-zero or use non-zero value for
density and your code works.

Cheers
Jan

[1] https://www.yade-dem.org/wiki/Howtoask

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.