yadeusers team mailing list archive

yadeusers team

Mailing list archive

Message #29267
[Question #706302]: How to move O.bodies.append(facet()) to a circle or complex trajectory
New question #706302 on Yade:
https://answers.launchpad.net/yade/+question/706302
Thanks to Jean, I was able to come this far. First of all, thank you Jean.
I am doing an analysis on a direct(simple) shear test.
I have created a program like below.
Previously (https://answers.launchpad.net/yade/+question/706234), I used TranslationEngine(translationAxis()) to make O.bodies.append(facet()) a rectangular trajectory.
This time, I want to use TranslationEngine(translationAxis()) to make O.bodies.append(facet()) become a "circular" or "complex trajectory".
So far, for rectangles, TranslationEngine(translationAxis())'s translationAxis is done at a constant value and only stops when it reaches the specified displacement.
However, with a circular shape, the "translationAxis()" is no longer constant because the "translationAxis()" is made to be a circular trajectory. Also, the (X,Y) coordinates change for each step of the circular shape, so we have to think very hard about it.
So, is there any way to move O.bodies.append(facet()) circularly?
By #circular locus, I mean a locus with respect to a (constant) radius.
Concrete circular trajectory:
(1.00,0.00)→(0.98,0.17)→(0.76,0.64)→・・・・(radius*cosθ,radius*sinθ) 0≤θ≤360
Programmatically expressed as ....
for i in range(0,365,1):
r = math.radians(i)
x = radius1 * math.cos(r)
y = radius1 * math.sin(r)
print(x,y)
I think x,y will be circular.
I would also like to input the seismic displacement trajectory.
In the future, I would like to control this cylinder model so that it is equal to the input seismic displacement.
Specifically, I would like to control the cylinder model so that it becomes the same displacement by inputting the XY coordinate displacement for each earthquake time.
We would like to make the cylinder model oscillate in the XY direction by inputting the XY displacement waveform, the XY velocity waveform, or the XY displacement waveform of the earthquake.
To summarize
Is there any way/idea to move O.bodies.append(facet()) circularly?
Is there any idea how to make the cylinder shake in XY direction (like an earthquake)?
I apologize for my poor English.
Please ask questions if you do not understand.

You received this question notification because your team yadeusers is
an answer contact for Yade.