Unfortunately I know very very few python, so I do not know how to do
this in this framework. With C++ instructions, (inside the code) it is
dynamic_cast<Force*>(*Metabody-*>physicalActions->find(*id_facet*,actionForce->getClassIndex())
. get() )->force;
o.engines. This will store the force you want in an output file you can
later analyse with the software you want.
Post by Anton GladkyHow can I get forces affected on 1 facet from spheres: I need it for plot?
Thank you
PS I promise, that I will place all answers to instructions or FAQ.
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÃŒÃen
[RUS] С МаОлÑÑÑОЌО пПжелаМОÑЌО
[UKR] РМайкÑаÑОЌО пПбажаММÑЌО
Anton Gladkyy
Amazing, but it works!
Thank you!
______________________________
[ENG] Best Regards
[GER] Mit freundlichen GrÃŒÃen
[RUS] С МаОлÑÑÑОЌО пПжелаМОÑЌО
[UKR] РМайкÑаÑОЌО пПбажаММÑЌО
Anton Gladkyy
pp={'se3':[center[0],center[1],center[2],1,0,0,0],'refSe3':[center[0],center[1],center[2],1,0,0,0],'young':young,'poisson':poisson,'frictionAngle':frictionAngle,'inertia':[0,0,0],
'velocity':[velocity[0],velocity[1],velocity[2]]}
You have to use TranslationEngine and subscribe facets to it.
That's what I do. See e.g. scripts/test/Dem3DofGeom.py for an
example. The sphere is moved that way. Facet ids are returned
by O.bodies.append.
ids=O.bodies.append([utils.facet(...),utils.facet(...)])
print ids ## [0,1,2,3,4]
O.engines=[...,TranslationEngine(subscribedBodies=ids,translationAxis=[0,0,1],velocity=1),...]
HTH, Vaclav
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
<https://launchpad.net/%7Eyade-users>
Unsubscribe : https://launchpad.net/~yade-users
<https://launchpad.net/%7Eyade-users>
More help : https://help.launchpad.net/ListHelp
------------------------------------------------------------------------
_______________________________________________
Mailing list: https://launchpad.net/~yade-users
Unsubscribe : https://launchpad.net/~yade-users
More help : https://help.launchpad.net/ListHelp