I am looking forward to all the mortal gladness, including reunion, reconciliation and the bliss of lovers long parted. I wish everyone could obtain felicity at last. I wish love could fill every corner around the world.
I am not a negative person at all. The reason why I still choose to stay here is that I want to witness the end personally, whelther it is good or bad.
There is nothing wrong with love from beginning to end.
I am not a negative person at all. The reason why I still choose to stay here is that I want to witness the end personally, whelther it is good or bad.
There is nothing wrong with love from beginning to end.
小伙伴们晚安哦~
Life is like a sea of bitterness. Everyone will leave sooner or later. If you want to see the person you love, throw your loved things into the sea and fill the sea of bitterness.
人生就像一片苦海, 每个人迟早要离开, 如果想见你爱的人, 就把你心爱的东西丢进海里, 把苦海填满。
--《岁月神偷》
#策马翻译[超话]# #晚安[超话]# #每日一句英语# #岁月神偷[超话]#
Life is like a sea of bitterness. Everyone will leave sooner or later. If you want to see the person you love, throw your loved things into the sea and fill the sea of bitterness.
人生就像一片苦海, 每个人迟早要离开, 如果想见你爱的人, 就把你心爱的东西丢进海里, 把苦海填满。
--《岁月神偷》
#策马翻译[超话]# #晚安[超话]# #每日一句英语# #岁月神偷[超话]#
【支架压力热力图】有点意思。 # ----------------- 准备数据集 --------------------- ##横轴为时间,纵轴为支架编号
minY = min(Coordy)
maxY = max(Coordy)
stepY = 0.5
lenY = math.ceil((maxY-minY)/stepY)
minX = min(Coordx)
maxX = max(Coordx)
stepX = 0.5
lenX = math.ceil((maxX-minX)/stepX)
#plot画图只画深浅孔所在区域,要进行处理。处理方法,添加深度为0处的应力值,默认为0.首先找出测点位置,然后把depth为0的应力值设为0.
# using naive method to remove duplicated from list
res1 = []
for i in Coordx:
if i not in res1:
res1.append(i)
tempY = 0
tempZ = 0
Coordx.append(i)
Coordy.append(tempY)
Stress.append(tempZ)
res2 = []
for j in Coordx:
if j not in res2:
res2.append(j)
tempY = maxY
tempZ = 0
Coordx.append(j)
Coordy.append(tempY)
Stress.append(tempZ)
X = np.linspace(minX, maxX, lenX)
Y = np.linspace(minY, maxY, lenY)
#生成二维数据坐标点,可以想象成围棋棋盘上的一个个落子点
X1, Y1 = np.meshgrid(X, Y)
#print('X1, Y1 ==========>', [X1, Y1])
#通过griddata函数插值得到所有的(X1, Y1)处对应的值,原始数据为Coordx, Coordy, Stress
#Z = interpolate.griddata((Coordx, Coordy), Stress, (X1, Y1), method='cubic')
Z = interpolate.griddata((Coordx, Coordy), Stress, (X1, Y1), method='linear', fill_value = 0)
minY = min(Coordy)
maxY = max(Coordy)
stepY = 0.5
lenY = math.ceil((maxY-minY)/stepY)
minX = min(Coordx)
maxX = max(Coordx)
stepX = 0.5
lenX = math.ceil((maxX-minX)/stepX)
#plot画图只画深浅孔所在区域,要进行处理。处理方法,添加深度为0处的应力值,默认为0.首先找出测点位置,然后把depth为0的应力值设为0.
# using naive method to remove duplicated from list
res1 = []
for i in Coordx:
if i not in res1:
res1.append(i)
tempY = 0
tempZ = 0
Coordx.append(i)
Coordy.append(tempY)
Stress.append(tempZ)
res2 = []
for j in Coordx:
if j not in res2:
res2.append(j)
tempY = maxY
tempZ = 0
Coordx.append(j)
Coordy.append(tempY)
Stress.append(tempZ)
X = np.linspace(minX, maxX, lenX)
Y = np.linspace(minY, maxY, lenY)
#生成二维数据坐标点,可以想象成围棋棋盘上的一个个落子点
X1, Y1 = np.meshgrid(X, Y)
#print('X1, Y1 ==========>', [X1, Y1])
#通过griddata函数插值得到所有的(X1, Y1)处对应的值,原始数据为Coordx, Coordy, Stress
#Z = interpolate.griddata((Coordx, Coordy), Stress, (X1, Y1), method='cubic')
Z = interpolate.griddata((Coordx, Coordy), Stress, (X1, Y1), method='linear', fill_value = 0)
✋热门推荐