Change wall's size in the middle of simulation

Asked by Hien Nguyen

Hello,

I have a specimen and the walls are generated by utils.aabbWall(overSize=1.5) I have run several simulations on this specimen and save it into other files. Now I want to change the overSizeFactor of those saved file, is there the possibilities to do so: changing the wall dimension of the saved model? I want to change the overSizeFactor from 1.5 to 5 for example.

Another story, during a simullation, how can I change the wall size while I'm pausing it via iPython, I tried utils.aabbWall(overSize=5) but it didn't work :)

Thanks in advance.

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Hien Nguyen
Solved:
Last query:
Last reply:
Revision history for this message
Jan Stránský (honzik) said :
#1

Hello Nguyen,
what version of Yade do you use? I tried to find the function in the
documentation, but it seems not to be there..

there is utils.aabbWalls function with oversizeFactor parameter, I would
guess you meant that one or it was renamed. In that case, It is not
possible to the parameter directly, as the function returns 6 new wall
objects. You can chage position of that walls manually.

cheers
Jan

2013/11/28 Nguyen N.G. Hien <email address hidden>

> New question #239989 on Yade:
> https://answers.launchpad.net/yade/+question/239989
>
> Hello,
>
> I have a specimen and the walls are generated by
> utils.aabbWall(overSize=1.5) I have run several simulations on this
> specimen and save it into other files. Now I want to change the
> overSizeFactor of those saved file, is there the possibilities to do so:
> changing the wall dimension of the saved model? I want to change the
> overSizeFactor from 1.5 to 5 for example.
>
> Another story, during a simullation, how can I change the wall size while
> I'm pausing it via iPython, I tried utils.aabbWall(overSize=5) but it
> didn't work :)
>
> Thanks in advance.
>
> --
> 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
Hien Nguyen (giahien) said :
#2

Thanks Jan Stránský,
I use yade 1.00.
And yes it's utils.aabbWalls, my fault.
By mentioning "manually", I assume you meant modifying the XML file (the saved model)?

Revision history for this message
Jan Stránský (honzik) said :
#3

Hello Nguyen,

I meant either modify the XML file, or you can load the file into Yade and
modify it there, something like:

wall1 = O.bodies[someIndex]
wall1.shape.pos = Vector3(x,y,z)
# also for other 5 walls returned by aabbWalls function

cheers
Jan

2013/12/2 Nguyen N.G. Hien <email address hidden>

> Question #239989 on Yade changed:
> https://answers.launchpad.net/yade/+question/239989
>
> Status: Answered => Open
>
> Nguyen N.G. Hien is still having a problem:
> Thanks Jan Stránský,
> I use yade 1.00.
> And yes it's utils.aabbWalls, my fault.
> By mentioning "manually", I assume you meant modifying the XML file (the
> saved model)?
>
> --
> 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
Hien Nguyen (giahien) said :
#4

Thank you it's clearer now, but for shape.pos, it's the position, what I wish to change is the size fo the wall.

I figured out I can change the overSize via Graphic Interface (yay!) by:
Inspect --> Bodies --> Shapes --> Extents.
So python code would be (according to your naming)
wall1.shape.extents=Vector3(x,y,z)
Great thanks Mr Jan Stránský.

Revision history for this message
Jan Stránský (honzik) said :
#5

Hello Nguyen,
sorry, I misunderstand the documentation, the function does not return
walls (as I assumed) but boxes, and for them you can do exactly what you
wrote in your last email :-)
cheers
Jan

2013/12/2 Nguyen N.G. Hien <email address hidden>

> Question #239989 on Yade changed:
> https://answers.launchpad.net/yade/+question/239989
>
> Status: Answered => Solved
>
> Nguyen N.G. Hien confirmed that the question is solved:
> Thank you it's clearer now, but for shape.pos, it's the position, what I
> wish to change is the size fo the wall.
>
> I figured out I can change the overSize via Graphic Interface (yay!) by:
> Inspect --> Bodies --> Shapes --> Extents.
> So python code would be (according to your naming)
> wall1.shape.extents=Vector3(x,y,z)
> Great thanks Mr Jan Stránský.
>
> --
> 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
>