当前位置: 首页 > news >正文

chrono学习(一)

我想用chrono进行沙土的仿真,首先学习demo_GPU_ballCosim.cpp,这个例子仿真了一些沙土的沉降过程。

首先,运行编辑完成的文件demo_GPU_ballCosim:

(base) eowyn@eowyn-MS-7D20:~/build_chrono/bin$ ./demo_GPU_ballCosim 

运行完得到一些数据,存放在DEMO_OUTPUT/GPU/ballCosim/checkpoint.dat中:

Reading parameters: ../data/gpu/ballCosim.json
--- Parsing JSON ---
params.sphere_radius 1.000000
params.sphere_density 1.000000
...
params.step_size 0.000050
--------------------
Now run_mode == FRICTIONLESS, this run is particle settling phase.
After it is done, you will have a settled bed of granular material.
A checkpoint file will be generated in the output directory to store this state.
Next, edit the JSON file, change 'run_mode' from 0 (FRICTIONLESS) to 1 (ONE_STEP),
then run this demo again to proceed with the ball drop part of this demo.622476 particles sampled!
Output frame 1 of 100
Output frame 2 of 100
Output frame 3 of 100
...
Output frame 101 of 100
Writing checkpoint data to file "DEMO_OUTPUT/GPU/ballCosim/checkpoint.dat"

然后,根据运行文件中的提示,将/build_chrono/data/gpu/ballCosim.json文件中的‘run_mode'变量从frictionless改成one_step. 然后,重新运行demo_GPU_ballCosim,将会展示沉降后的沙土。

(base) eowyn@eowyn-MS-7D20:~/build_chrono/bin$ ./demo_GPU_ballCosim 
Reading parameters: ../data/gpu/ballCosim.json
--- Parsing JSON ---
params.sphere_radius 1.000000
params.sphere_density 1.000000
...
params.step_size 0.000050
--------------------
Reading checkpoint data from file "DEMO_OUTPUT/GPU/ballCosim/checkpoint.dat"...
1 meshes
Version: 3.3.0
NVIDIA Corporation : NVIDIA GeForce RTX 3060/PCIe/SSE2 (3.3.0 NVIDIA 470.199.02)
GLSL: 3.30 NVIDIA via Cg compiler
Initialize Viewer : GL_INVALID_ENUM
Output at    50 FPS
Rendering at 2000 FPS
Output frame 1 of 100
Output frame 2 of 100
...
Output frame 10 of 100
Time: 67.6678 seconds

http://www.lryc.cn/news/149622.html

相关文章:

  • 后端面试话术集锦第 十 篇:springMVC面试话术
  • 基于Django 框架搭建的机器学习在线平台源代码+数据库,实现KNN、ID3、C4.5、SVM、朴素贝叶斯、BP神经网络等算法及流程管理
  • 大数据组件-Flume集群环境搭建
  • 想系列服务迁移专有云效实操
  • 2020 牛客多校第三场 C Operation Love (叉积判断顺逆时针)
  • 基于OFDM的水下图像传输通信系统matlab仿真
  • Docsify + Gitalk详细配置过程讲解
  • React中的setState的执行机制
  • 2023最新任务悬赏平台源码uniapp+Thinkphp新款悬赏任务地推拉新充场游戏试玩源码众人帮威客兼职任务帮任务发布分销机
  • 微服务事务管理(Dubbo)
  • Springboot整合ClickHouse
  • 【材料整理】-- Python、Matlab中常用调试代码,持续更新!
  • 什么是同源策略(same-origin policy)?它对AJAX有什么影响?
  • 视频汇聚/视频云存储/视频监控管理平台EasyCVR接入海康SDK协议后无法播放该如何解决?
  • CSC2121A
  • 高级进程编程-系统调用-创建守护进程
  • Redis之发布订阅
  • 交换机 路由器的常见指令
  • Matlab 基本教程
  • 现浇钢筋混泥土楼板施工岗前安全VR实训更安全高效
  • ARDUINO STM32 SSD1306
  • 临时抱佛脚
  • 城市内涝积水监测预警系统 yolov8
  • 数据库备份与恢复
  • ssm+vue高校实验室管理系统源码和论文
  • npm报错sass
  • [系统安全] 五十三.DataCon竞赛 (2)2022年DataCon涉网分析之恶意样本IOC自动化提取数据集详解
  • 【Cadence】Calculator计算sp的3dB带宽
  • 浅谈监听单选框radio改变事件(和layui中单选按钮改变事件)_javascript技巧
  • SourceTree安装教程