← Back to team overview

yade-users team mailing list archive

Re: [Question #675280]: Force in a facet

 

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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hello

> I am new to Yade

welcome :-)

> How can i plot the forces that acting on the facets?

In your current approach in addPlotData, you define Fn and dspl for all facets, but after the cycle, only the last Fn is saved to plot.data. To use total force, either sum it in the for cycle
#
Fn = 0.0
for facet in facets:
   Fn += O.forces.f(facet.id)[2]
#
or use python shorthand: Fn = sum(O.forces.f(facet.id)[2] for facet in facets)

you then plot is either in Yade or you can plot.saveDataTxt and plot it
externally (using excel, gnuplot,...)

Also note that you prescribe velocity of facets in x direction but
measure z force, is it ok?

cheers
Jan

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