PFC3D建模流程和代码解释.docxVIP

  1. 1、本文档共7页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  5. 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  6. 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  7. 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  8. 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
本示例表示生成球体在一定的空间内进行运动的部分代码以及代码表示意义。 新建一个PFC3D模型必要部分生成的整体日志。PFC3D建模需要的部分和代码 解释 ********************************************** Logging started at 周三 八月 30 16:50:55 2017 By pfc3d Versio n 5.00 Release 025 * * * Job Title: Pan dect example ********************************************** pfc3d pfc3d; 3-设置模型名称,可有可无。 pfc3dtitle Pa ndect example pfc3d pfc3d; 4-设定计算区域(必要条件) pfc3d; Set the doma in exte nt pfc3ddomain extent -10.0 10.0 -20 20 ; domain 当中有两个关键词是 condition 和 extent, condition 指的是边界条件 periodic ;destroy ;stop ;reflect ; condition 默认值是 stop。 extent指的是模型区域 pfc3d pfc3d; 5-指定随机种子(若不指定,种子随机) pfc3dset random 10001;默认值是一万,且数量级是相同的数量级, 也就是该随机数值 10000 不能过大,不能过小。设置随机种子以后,生成的颗粒的半径和位置都在范围内随机。 pfc3d pfc3d; 6-生成及修改模型组件(必要条件),有三种命令是来生成颗粒的, gen erate,create, distribute。 pfc3d; Gen erate 30 balls in a box,wall 就是一个生成颗粒的容器。 pfc3dwall gen erate box -5.0 5.0 ---The wall boxWallBottom1 with id 1 and 2 facets has been created ---The wall boxWallTop2 with id 2 and 2 facets has bee n created ---The wall boxWallLeft3 with id 3 and 2 facets has bee n created ---The wall boxWallRight4 with id 4 and 2 facets has been created ---The wall boxWallFront5 with id 5 and 2 facets has been created ---The wall boxWallBack6 with id 6 and 2 facets has been created pfc3d;ball create pfc3dball gen erate radius 1.0 1.4 box -5.0 5.0 number 1000 +++ Fewer balls were gen erated tha n specified! 34 balls out of 1000 gen erated in 20000 tries. pfc3d;ball distribute pfc3d pfc3d; 7-组件分组,颗粒分组,墙体分组。 pfc3d pfc3dball group small_balls range radius 1.0 1.2 ---Group small_balls assig ned to 14 Balls in slot 1. pfc3dball group big_balls range radius 1.2 1.4 ---Group big_balls assig ned to 20 Balls in slot 1. pfc3d pfc3d; 8-施加实体属性(必要条件),实体属性的意思是这些属性是作用在颗粒的中心的。 pfc3d; Assign ball density,颗粒的实体属性一般都是由 attribute这个属性来添加。fix是来限 制颗粒的移动方向和位移。 pfc3dball attribute den sity 100.0 ---Attribute den sity in itialized in 34 ball(s). pfc3dball fix zvelocity range group big_balls ---Fixity con diti ons cha nged in 20 balls. pfc3d pfc3dpa

文档评论(0)

laugh + 关注
实名认证
文档贡献者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档