关于填卡中CONST和DATA的转换
是这样的,原先我填卡的时候把一些量做成CONST(常数)的,常数在仿真中不允许再变。运行结果是可以的。后来由一些量我想变换,就直接把这些量挪到DATA里了,按理说这种是合理的,可是运行的而结果老是不正确,不知道怎么回事。所以发过来让各位给提一些建议,多谢多谢。
PS:以下是原填卡代码和更改后的,除了把原来CONST的几个变量挪到DATA,其他部分没有任何变化。
原先的:
--------------------------------------------
MODEL induced11 --lyn-pos rutine inne. Im, X0 og Y0 blir globale
CONST Tmax{VAL:500} --number of time steps
n {VAL:1} --number of phases
c {VAL:3.e8} --speed of light
I0 {VAL:1} --step current ampl.
eps0{val:8.85e-12} --permittivity
sigma {VAL:0.001} --ground conductivity
epsr{VAL:10} --relative permittivity
tc {VAL:2e-6} --current time to crest
th {VAL:5e-5} --current time to half value
v {VAL:1.5e8} --current velocity
INPUT UA,UB --terminal voltages
DATA XA0,YA0,XB0,YB0 --line position parameters
z {DFLT:10} --phase heights
Im {DFLT:3e4} --current amplitude
X0 {DFLT:0.0} --lightning x-pos
Y0 {DFLT:0.0} --lightning y-pos
更改后的:
--------------------------------------------
MODEL induced11 --lyn-pos rutine inne. Im, X0 og Y0 blir globale
CONST Tmax{VAL:500} --number of time steps
n {VAL:1} --number of phases
c {VAL:3.e8} --speed of light
I0 {VAL:1} --step current ampl.
eps0{val:8.85e-12} --permittivity
INPUT UA,UB --terminal voltages
DATA XA0,YA0,XB0,YB0 --line position parameters
z {DFLT:10} --phase heights
Im {DFLT:3e4} --current amplitude
X0 {DFLT:0.0} --lightning x-pos
Y0 {DFLT:0.0} --lightning y-pos
sigma {DFLT:0.001} --ground conductivity
epsr{DFLT:10} --relative permittivity
tc {DFLT:2e-6} --current time to crest
th {DFLT:5e-5} --current time to half value
v {DFLT:1.5e8} --current velocity 有没有什么错误显示呢 2# dongchch
没有哦,因为我觉得把CONST直接改成DATA应该是没有什么问题的,只不过一个是不可变的,另外是可以变的而已。。。
页:
[1]