首页 > 其他分享 >clump与ball的混合情况

clump与ball的混合情况

时间:2023-12-20 23:01:16浏览次数:27  
标签:ball floaters wall local 混合 wp clump find

; fname: make_specimen.p2dat

;

; Generate a dense granular assembly within a box

;

; =============================================================================


; Load utility |FISH| functions for later use

set echo off

 call StrainUtilities.p2fis

 call StressUtilities.p2fis

set echo on


; Define domain extent and default contact model and properties in the CMAT

; note that since friction is not set (and defaults to zero), shear forces

; won't develop

domain extent -5 10 -5 15

cmat default model linear method deformability emod 1.0e8 kratio 2.5


; Generate a box-wall comprised of 4 independant walls. Each wall is expanded  

; in preparation for upcoming motion, and global FISH variables that hold  

; pointers to the walls are created for convenience.  

wall generate name 'vessel' box 0 5  0 10.0 expand 1.5

[wp_left  = wall.find('vesselLeft')]

[wp_right = wall.find('vesselRight')]

[wp_bot   = wall.find('vesselBottom')]

[wp_top   = wall.find('vesselTop')]


; FISH functions to get vessel dimensions

define wlx

 wlx  = wall.pos.x(wp_right) - wall.pos.x(wp_left)

end

define wly

 wly  = wall.pos.y(wp_top)   - wall.pos.y(wp_bot)

end


; Generate a cloud of overlapping balls with a target porosity

; and assign density and local damping attributes

set random 10001

ball distribute porosity 0.2 radius 0.05 0.2 box 0 5 0.0 10.0


ball attribute density 2500.0 damp 0.7

;define ball and wall friction property

ball property fric @ballFriction

wall property fric @wallFriction

; solve to equilibrium

cycle 1000 calm 10

solve aratio 1e-5

calm


; identify floaters using FISH function defined in make_utilities.p2fis

define identify_floaters

 loop foreach local ball ball.list

   ball.group.remove(ball,'floaters')

   local contactmap = ball.contactmap(ball)

   local size = map.size(contactmap)

   if size <= 1 then

     ball.group(ball) = 'floaters'

   endif

 endloop

end

@identify_floaters

@ini_gstrain(@wly)


return

; =============================================================================

; eof: make_specimen.p2dat

标签:ball,floaters,wall,local,混合,wp,clump,find
From: https://blog.51cto.com/u_15867247/8911405

相关文章

  • 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”)需要承......
  • Bert-vits2新版本V2.1英文模型本地训练以及中英文混合推理(mix)
    中英文混合输出是文本转语音(TTS)项目中很常见的需求场景,尤其在技术文章或者技术视频领域里,其中文文本中一定会夹杂着海量的英文单词,我们当然不希望AI口播只会念中文,Bert-vits2老版本(2.0以下版本)并不支持英文训练和推理,但更新了底模之后,V2.0以上版本支持了中英文混合推理(mix)......
  • 静态HTTP和动态HTTP的混合使用:最佳实践
    在当今的互联网环境中,静态HTTP和动态HTTP各有其优势和局限。静态HTTP具有速度快、安全性高和易于维护的特点,而动态HTTP则能够实现动态交互和处理大量动态数据。为了充分利用两者的优势,越来越多的网站开始采用静态HTTP和动态HTTP混合使用的模式。本文将探讨这种混合模式的最佳实践。......