velocity==NaN! & fixed=False

Asked by Alvin

Hi, all
I make a facetbox with dynamic = true (fixed =False), and a error occured: velocity==NaN!
How can I fix this problem.
the mass of the box was already assigned

best regards

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
Anton Gladky (gladky-anton) said :
#1

> I make a facetbox with dynamic = true (fixed =False), and a error occured: velocity==NaN!> How can I fix this problem.> the mass of the box was already assigned

if you created the box from facets, it cannot have a mass, because
facets are always
non-dynamic bodies.

Without an example script is difficult to say, why you have velocity==NaN!
Anton

On Sun, Dec 4, 2011 at 5:20 PM, Alvin
<email address hidden> wrote:
> New question #180889 on Yade:
> https://answers.launchpad.net/yade/+question/180889
>
>
> Hi, all
> I make a facetbox with dynamic = true (fixed =False), and a error occured: velocity==NaN!
> How can I fix this problem.
> the mass of the box was already assigned
>
> best regards
>
> --
> You received this question notification because you are a member of
> yade-users, which is an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : <email address hidden>
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp

Revision history for this message
Alvin (lyj5300625) said :
#2

O.bodies.append(utils.geom.facetBox( center=(5,5,5), extents=(2.0,2.0,2.0) ,fixed=False,wire=False,wallMask=31,material=-1))

and
O.bodies[-1].mass=20000
O.bodies[-2].mass=20000
 ....
 to assign mass to them

and an error occured like " bodies 2230 has a velocity==NaN! " the body 2230 was part of the facetbox

but instead of creating a Box, no such error

Revision history for this message
Anton Gladky (gladky-anton) said :
#3

> O.bodies[-1]
> O.bodies[-2]

As far as I know, indexes cannot be negative.

idx = O.bodies.append(utils.geom.facetBox( center=(5,5,5),
extents=(2.0,2.0,2.0)
,fixed=False,wire=False,wallMask=31,material=-1))

in this case idx will have indexes of newly created facets.
Anyway, giving a mass to facets will not have an effect.
Facets will not move, for example, from gravity or interactions with
another bodies.

Anton

Revision history for this message
Alvin (lyj5300625) said :
#4

Thanks Anton
but the faccet can be move by force with the instruction in the Imposing condition of the manual, which write these
"Facets are case in the point: utils.facet makes them non-dynamic by default, as they have zero
volume and zero mass (this can be changed, by passing dynamic=True to utils.facet or setting
Body.dynamic; setting State.mass to a non-zero value must be done as well). The same is true for
utils.wall"

O.bodies[-1] really point to the last particle produced

And I try the above instruction and the facet move, but facets of a box did not interact with each other. So one can't apply some force on a single facet of the facetsbox.

Can you help with this problem?

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

To post a message you must log in.