首页 > 其他分享 >clump与ball混合(4)

clump与ball混合(4)

时间:2023-12-25 10:37:30浏览次数:23  
标签:wly ball wall stop 混合 wexx weyy clump define

;define ball and wall friction property

ball property fric @ballFriction

wall property fric @wallFriction


[ly0 = wly]

[lx0 = wlx]

[wexx = 0.0]

[weyy = 0.0]

[wevol = 0.0]


define wexx

 wexx  = (wlx - lx0) / lx0  

end


define weyy

 weyy = (wly - ly0) / ly0

end


define wevol

 wevol = wexx + weyy

end


history id 51 @wexx

history id 52 @weyy

history id 53 @wevol

history purge


[rate = 0.2]

wall servo activate off range set name 'vesselTop' set name 'vesselBottom' union  

wall attribute yvelocity [-rate*wly] range set name 'vesselTop'

wall attribute yvelocity [ rate*wly] range set name 'vesselBottom'

[stop_me = 0]

[target = 0.075]

define stop_me

 if weyy <= -target then

   stop_me = 1

 endif

end


ball attribute displacement multiply 0.0

calm


solve fishhalt @stop_me


return



;define ball and wall friction property

ball property fric @ballFriction

wall property fric @wallFriction


[rate = 0.01]

wall attribute yvelocity [-rate*wly] range set name 'vesselTop'

wall attribute yvelocity [ rate*wly] range set name 'vesselBottom'

wall servo activate off range set name 'vesselTop' set name 'vesselBottom' union  

calm


[ly0 = wly]

[lx0 = wlx]

[wsyy0 = wsyy]


[wexx = 0.0]

[weyy = 0.0]

[wevol = 0.0]

define wexx

 wexx  = 2.0*(wlx - lx0) / (wlx+lx0)  

end


define weyy

 weyy = 2.0*(wly - ly0) / (wly+ly0)

end


define wevol

 wevol = wexx + weyy

end


history id 51 @weyy

history id 52 @wexx

history id 53 @wevol

history purge


[stop_load = 0]

[target = 5e-4]

define stop_load

 if -weyy >= target then

   stop_load = 1

 endif

end

solve fishhalt @stop_load


[young_modulus = (wsyy-wsyy0)/weyy]

[poisson_ratio = -wexx/weyy]

[shear_modulus = 0.5*young_modulus/(1+poisson_ratio)]


save biaxial-load


wall attribute yvelocity [ rate*wly] range set name 'vesselTop'

wall attribute yvelocity [-rate*wly] range set name 'vesselBottom'


[stop_unload = 0]

define stop_unload

 if weyy >= 0.0 then

   stop_unload = 1

 endif

end

solve fishhalt @stop_unload


标签:wly,ball,wall,stop,混合,wexx,weyy,clump,define
From: https://blog.51cto.com/u_15867247/8963801

相关文章

  • C和汇编混合编译
    有时候在写C语言项目的时候会需要用到汇编代码直接操作寄存器、栈之类更加底层的东西,所以在这里写一下C和汇编混合编程的几种方法(Windows和Linux需要分开讨论)WindowsVisualStudioWindows下常用的开发环境是VisualStudio,对于x86来说vs默认支持内联汇编,直接通过__asm关键词即可......
  • clump与ball的混合情况
    ;fname:make_specimen.p2dat;;Generateadensegranularassemblywithinabox;;=============================================================================;Loadutility|FISH|functionsforlaterusesetechooff callStrainUtilities.p2fis ca......
  • ABC332G Not Too Many Balls 题解
    第\(i\)种球有\(a_i\)个,共\(n\)种。第\(i\)种箱子最多共装\(b_i\)个球。共\(m\)种。第\(i\)种球在第\(j\)种箱子里至多放\(ij\)个。问所有箱子放的球数最多是多少。\(1\leqn\leq500,1\leqm\leq5e5,0\leqa_i,b_i\leq1e12\)。很容易建出网络流模型。......
  • 知识|基于混合模式的多余度飞控全数字仿真系统研究
    *余度(Redundancy):一种确保安全的设计手段,使得出现两个及以上故障时,才会引起既定不希望发生的工作状态。飞行控制软件主要完成飞行传感器数据处理、飞行姿态控制和余度管理任务,对保证飞机安全性和可靠性起着关键作用,但是现实中与飞行控制软件相关的研发测试过程依旧举步维艰。其主......
  • C++和QML混合编程
    一、QML访问C++方法Qt元对象系统中注册C++类,在QML中实例化、访问。C++中实例化并设置为QML上下文属性,在QML中直接使用。      比较:方法1可以使C++类在QML中作为一个数据类型,例如函数参数类型或属性类型,也可以使用其枚举类型、单例等,功能更强大。二、QML访......
  • python——小游戏(ball,bird)
      ball #-*-coding:utf-8-*-"""CreatedonWedDec1309:19:382023@author:kabuqinuo"""importsys#导入sys模块importpygame#导入pygame模块pygame.init()#初始化pygamesize=width,height=640,480#设置窗......
  • C++基础 -4- C/C++混合编程
    ———————C/C++混合编程———————......
  • 论文精读:基于具有时空感知的稀疏多图卷积混合网络的大数据驱动船舶轨迹预测(Big data d
    论文精读:基于具有时空感知的稀疏多图卷积混合网络的大数据驱动船舶轨迹预测《Bigdatadrivenvesseltrajectorypredictionbasedonsparsemulti-graphconvolutionalhybridnetworkwithspatio-temporalawareness》论文链接:https://doi.org/10.1016/j.oceaneng.2023.115......
  • 【题解】AtCoder abc332_g Not Too Many Balls
    传送门:https://atcoder.jp/contests/abc332/tasks/abc332_g看完题,第一眼反应为最大流。建模方式为:以颜色为左部点,盒子为右部点,源点$S$向颜色$i$连一条容量为$A_i$的边,盒子$j$向汇点$T$连一条容量为$B_j$的边,颜色$i$向盒子$j$连一条容量为$ij$的边;在这张图......
  • SAP集成技术(十一)SAP混合集成平台
    愿景SAP产品之间实现无缝集成还需要一些时间,目前可能还存在一些技术挑战或者需要进一步的开发工作,以便在未来能够轻松地把所有SAP产品整合在一起。让SAP产品能够顺利地与非SAP的解决方案连接也是目前尚未完全解决的问题。实现产品和服务之间的协调一致(即“harmonization”)需要承......