FLAC3D 6.0——history常见问题解答
======怎么改变history数据点的间隔======
在FLAC3D中,软件默认每十步记录一个数据点,如果需要更改history的采样间隔,则使用以下命令:
history interval f
; f为用户自定义的采样间隔,如history interval 5则表示每五步进行一次记录。
======怎么快速查看history数据点======在Console快速查看history数据点,可以采用
history list series 'f' ;f是history的id号,或者名字。见下图。

======怎么解决fish history无结果======使用history监测自定义变量a时,一般需要函数名与变量名一致,见方法1。若fish函数的名字与监测变量不一致,则需要在fish hist @a的基础上再加上fish hist @函数名,见方法2。
model new
zone create brick size 6 6 6 group 'rock'
zone split
zone group 'cut' range position-x 1 5 position-z 1 5
zone cmodel assign m-c
zone prop bulk 5e8 shear 3e8 coh 3e6 fric 30
zone ini dens 2800
zone face skin
zone face apply v-n 0 range group 'West' or 'East'
zone face apply v-n 0 range group 'North' or 'South'
zone face apply v-n 0 range group 'Bottom'
model gravity 9.81
; 方法1
fish def fhist1
zp = zone.near(3,3,3)
fhist1 = zone.stress.xx(zp) ; 监测(3,3,3)点处的stress-xx
end
fish hist @fhist1
model solve elastic
; 方法2
fish def fhist2
zp = zone.near(3,3,3)
sxx = zone.stress.xx(zp)
end
fish hist @fhist2
fish hist @sxx
model solve elastic
======怎么改变history的x轴内容======
FLAC3D默认history chart的X轴为计算步数step,想要改变x轴的内容可以采用鼠标操作和命令流操作。
鼠标操作时,首先在history的attributes里点击添加Y轴变量,然后在VS里输入X轴变量的id号或者名称。图2表示在history chart中的Y轴为(3,3,3)点的stress-zz,而X轴为(3,3,3)点Z向位移。
图2 鼠标操作切换X轴
plot item create chart-history active on history '1' vs '2'
======怎么改变数据点的正负号======
改变X/Y轴的正负号可以通过鼠标操作以及命令流操作。鼠标操作如下:首先在history的attributes里点击添加显示的history项目,然后点开series,在子菜单中有X Recerse和Y reverse,分别表示将X轴、Y轴反号。
图3 鼠标操作改变坐标轴正负
命令流如下:
plot item create chart-history active on history '1' reversed-x on reversed-y on
;读者可根据自己需要将'1'替换成实际的history id或者history name
;不需要反号时,将on改为off即可,或者直接删除reversed-x/y on/off