How to take the displacement of O.bodies.append(geom.facetCylinder())
I'm in a lot of trouble
I am doing an analysis on a direct(simple) shear test.
I have created a program like below.
I have one question.
Does YADE have a program to determine the displacement of the created cylinder in the XY direction?
The cylinder whose displacement I want to know is line 40.
””idsCyl2 = O.bodies.
#######
from __future__ import print_function
from yade import pack,plot,
from yade import export,qt
from yade.gridpfacet import *
import math
import numpy as np
import os
frictangle = np.radians(25)#45do
density = 3400.0
young = 3e8
gravity = (0.0, 0.0, 0)
velocity_cyl=1
velocity_
velocity_cyl_Box=1
# create cloud of spheres and insert them into the simulation
# we give corners, mean radius, radius variation
#######
#Create sphere
#######
mat_sp = CohFrictMat(
O.materials.
pred=pack.
sp0=pack.
O.bodies.
#######
#Boundary creation
#######
idsCyl1 = O.bodies.
#I would like to know the displacement this idsCyl2
idsCyl2 = O.bodies.
#idsCyl3 = O.bodies.
radius1 = .06
radius2 = .15
fixBoxIds=[]
moveBoxIds=[]
i=0
for i in range(0,365,5):
r = math.radians(i)
x1 = radius1 * math.cos(r)
y1 = radius1 * math.sin(r)
x2 = radius2 * math.cos(
y2 = radius2 * math.sin(
x3 = radius2 * math.cos(
y3 = radius2 * math.sin(
x4 = radius1 * math.cos(
y4 = radius1 * math.sin(
x5 = radius1 * math.cos(
y5 = radius1 * math.sin(
x6 = radius2 * math.cos(r)
y6 = radius2 * math.sin(r)
fixBoxIds.
fixBoxIds.
moveBoxIds.
moveBoxIds.
upper_plate=
upper_plateID=
O.bodies[
O.forces.
#O.forces.
#######
#engines
#######
O.engines = [
# interaction loop
),
]
#######
#output
#######
sp_num = len([b for b in O.bodies if isinstance(b.shape, Sphere)]) # 粒子の総数をカウント
print("number of spheres = ",sp_num)
O.dt=0.
def plotPlotData():
pipe_force_x = sum([O.
pipe_force_y = sum([O.
Dz=upper_
plot.addData(
i=O.iter,
disp=O.
force_
force_
Dz=Dz
)
plot.saveDataT
plot.plots={
'disp'
'i':('Dz')
}
plot.plot()
#######
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Yade Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Jan Stránský
- Solved:
- Last query:
- Last reply: