找回密码
 注册
Simdroid-非首页
查看: 98|回复: 2

[命令/FISH] 关于HISTORY的一点疑问

[复制链接]
发表于 2015-12-23 16:51:08 | 显示全部楼层 |阅读模式 来自 湖北武汉
悬赏1仿真币未解决
define find_point_id
  ;---------------#1号洞k1+670断面左边墙测点---------------
  pnt_id_1=gp_near(37.24677,-13.5,238.97220) ;0m处
  pnt_id_2=gp_near(33.74677,-13.5,238.97220) ;3.5m处
  pnt_id_3=gp_near(30.74677,-13.5,238.97220) ;6.5m处
  ;---------------#2号洞k1+630断面左拱座测点---------------
  pnt_id_4=gp_near(-12.75323,-19.67,278.97220) ;0m处  
  pnt_id_5=gp_near(-16.25323,-19.67,278.97220) ;3.5m处
  pnt_id_6=gp_near(-19.25323,-19.67,278.97220) ;6.5m处  
  ;---------------#2号洞k1+630断面左边墙测点---------------
  pnt_id_7=gp_near(-12.75323,-13.5,278.97220)  ;0m处   
  pnt_id_8=gp_near(-16.25323,-13.5,278.97220)  ;3.5m处
  pnt_id_9=gp_near(-19.25323,-13.5,278.97220)  ;6.5m处   
end
@find_point_id
hist add unbal
hist add crtime  ;监测蠕变时间
hist add gp xdisp id @pnt_id_1    ;#1号洞k1+670断面左边墙测点0m处,监测编号3  
hist add gp xdisp id @pnt_id_2    ;#1号洞k1+670断面左边墙测点3.5m处,监测编号4  
hist add gp xdisp id @pnt_id_3    ;#1号洞k1+670断面左边墙测点6.5m处,监测编号5
hist add gp xdisp id @pnt_id_4    ;#2号洞k1+630断面左拱座测点0m处,监测编号6      
hist add gp xdisp id @pnt_id_5    ;#2号洞k1+630断面左拱座测点3.5m处,监测编号7
hist add gp xdisp id @pnt_id_6    ;#2号洞k1+630断面左拱座测点6.5m处,监测编号8  
hist add gp xdisp id @pnt_id_7    ;#2号洞k1+630断面左边墙测点0m处,监测编号9   
hist add gp xdisp id @pnt_id_8    ;#2号洞k1+630断面左边墙测点3.5m处,监测编号10  
hist add gp xdisp id @pnt_id_9    ;#2号洞k1+630断面左边墙测点6.5m处,监测编号11  


以上是我在FLAC3D V5.00中写的一段程序怎末运行都提示 @pnt_id_1这一系列参数有问题
若将其改为
define find_point_id
  ;---------------#1号洞k1+670断面左边墙测点---------------
  pnt_id_1=gp_near(37.24677,-13.5,238.97220) ;0m处
  pnt_id_2=gp_near(33.74677,-13.5,238.97220) ;3.5m处
  pnt_id_3=gp_near(30.74677,-13.5,238.97220) ;6.5m处
  ;---------------#2号洞k1+630断面左拱座测点---------------
  pnt_id_4=gp_near(-12.75323,-19.67,278.97220) ;0m处  
  pnt_id_5=gp_near(-16.25323,-19.67,278.97220) ;3.5m处
  pnt_id_6=gp_near(-19.25323,-19.67,278.97220) ;6.5m处  
  ;---------------#2号洞k1+630断面左边墙测点---------------
  pnt_id_7=gp_near(-12.75323,-13.5,278.97220)  ;0m处   
  pnt_id_8=gp_near(-16.25323,-13.5,278.97220)  ;3.5m处
  pnt_id_9=gp_near(-19.25323,-13.5,278.97220)  ;6.5m处   
end
@find_point_id
hist add unbal
hist add crtime  ;监测蠕变时间
hist add gp xdisp id 251158    ;#1号洞k1+670断面左边墙测点0m处,监测编号3  
hist add gp xdisp id 263575    ;#1号洞k1+670断面左边墙测点3.5m处,监测编号4  
hist add gp xdisp id 263579    ;#1号洞k1+670断面左边墙测点6.5m处,监测编号5
hist add gp xdisp id 108027    ;#2号洞k1+630断面左拱座测点0m处,监测编号6      
hist add gp xdisp id 150165    ;#2号洞k1+630断面左拱座测点3.5m处,监测编号7
hist add gp xdisp id 151926    ;#2号洞k1+630断面左拱座测点6.5m处,监测编号8  
hist add gp xdisp id 248273    ;#2号洞k1+630断面左边墙测点0m处,监测编号9   
hist add gp xdisp id 259312    ;#2号洞k1+630断面左边墙测点3.5m处,监测编号10  
hist add gp xdisp id 259316    ;#2号洞k1+630断面左边墙测点6.5m处,监测编号11  

其中的
pnt_id_1=251158
pnt_id_2=263575
pnt_id_3=263579
pnt_id_4=108027
pnt_id_5=150165
pnt_id_6=151926
pnt_id_7=248273
pnt_id_8=259312
pnt_id_9=259316
就能够正确的运行出结果,请问是什么原因?难道是 hist add gp xdis id ....   ,后面只能是准确的数字,而不能是一个数值变量吗?


发表于 2015-12-27 20:30:43 | 显示全部楼层 来自 上海
Simdroid开发平台
你以为传递的是数字,其实传递的是地址
回复

使用道具 举报

发表于 2016-1-4 15:38:29 | 显示全部楼层 来自 陕西西安
楼上说的没错,附议。另外这个问题不止hist里边遇到 在用数组赋值的时候也会有类似问题
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Simapps系列直播

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-9-23 20:18 , Processed in 0.029529 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表