Problem by plotting a force on a MESH plate

Asked by Borja Pedro Beltrán

Hi all! I'm new using YADE and I am having some problems trying to figure out how to do the following task:

-I created a simulation in which a plate (MESH or STL) goes through a clump cluster with a constant velocity, and I wanted to follow/plot the force that acts on the plate during the movement

The plate is made of many facets, but I want to plot the total force on the plate. I don't know how to approach this problem. Could someone please help me? Thank you very much in advance!

Borja

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

Hi Borja,

ForceRecorder should probably help you [1], there is
an example [2] (but commented out),

[1] https://www.yade-dem.org/doc/yade.wrapper.html?highlight=forcerecorder#yade.wrapper.ForceRecorder
[2] https://github.com/yade/trunk/blob/master/examples/rod-penetration/model.py#L62

Regards

Anton

2015-09-16 18:57 GMT+02:00 Borja Pedro Beltrán
<email address hidden>:
> New question #271463 on Yade:
> https://answers.launchpad.net/yade/+question/271463
>
> Hi all! I'm new using YADE and I am having some problems trying to figure out how to do the following task:
>
> -I created a simulation in which a plate (MESH or STL) goes through a clump cluster with a constant velocity, and I wanted to follow/plot the force that acts on the plate during the movement
>
> The plate is made of many facets, but I want to plot the total force on the plate. I don't know how to approach this problem. Could someone please help me? Thank you very much in advance!
>
> Borja
>
> --
> You received this question notification because your team yade-users 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
Borja Pedro Beltrán (borja--dsv1994) said :
#2

Yeah, exactly that is what i needed! I was able to create a text document that contains the force in x,y and z dirección at each given iteration. I tríed to call for the data from inside yade in order to plot it With the plot() function, but wasn't able to do it. Is it possible to do that, and if it is, how should it be done?

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

totalForce returns you the resulting force as Vector3, so you
can plot any of its components. So, if you have something like:

ForceRecorder(ids=rod,file='force-'+mesh+'.dat',iterPeriod=50,label='ForceRec')

ForceRec.totalForce will contain values of force. You can plot it of course.

Cheers

Anton

2015-09-17 12:57 GMT+02:00 Borja Pedro Beltrán
<email address hidden>:
> Question #271463 on Yade changed:
> https://answers.launchpad.net/yade/+question/271463
>
> Status: Answered => Open
>
> Borja Pedro Beltrán is still having a problem:
> Yeah, exactly that is what i needed! I was able to create a text
> document that contains the force in x,y and z dirección at each given
> iteration. I tríed to call for the data from inside yade in order to
> plot it With the plot() function, but wasn't able to do it. Is it
> possible to do that, and if it is, how should it be done?
>
> --
> You received this question notification because your team yade-users 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

Can you help with this problem?

Provide an answer of your own, or ask Borja Pedro Beltrán for more information if necessary.

To post a message you must log in.