Hi all,
I’m having some issues with performing time step analysis with prepared beforehand values for speeds - only the ressonaince speeds.
Here is a graphic from my excel sheet:
And below my code (work in progress phase):
+prog dyna urs:8
head Obliczenia taboru
$CTRL RLC 10001
MASS 0
MASS LC 201
CTRL MCON 3
LET#XLS.NAME "C:\SOFI\TESTY\DYNAMIKA\E1_V3\DANE.xlsx"
LET#XLS.SHEET "VRE"
GRP -
GRP 10 RADA #A RADB #B
sto#lb 28
sto#lt 300
sto#STEP 0.0051
STO#NODE 505
STO#BEAM 10046
LOOP#K 10
LET#N XLS.READ(31,3+1*#K)
LET#LC1 XLS.READ(26,3+1*#K)
LOOP#S #N
LET#ROW 28+1*#S
LET#V XLS.READ(#ROW,3+1*#K)
LET#V #V/3.6 $ SPEED in m/sec from km/h
LET#TT 1.5*(#lb+#lt)/#V
LC 100+#LC1
STEP N #TT/#STEP DT #STEP A #A B #B
CONT nr 11000 V #V tmin 0/#V
$ EXTR U max 1000+10*#K+1*#N+2 min 1000+10*#K+1*#N+1
EXTR A max 1000+10*#K+1*#S+2 min 1000+10*#K+1*#S+1
$ EXTR MY max 1000+10*#K+1*#N+2 min 1000+10*#K+1*#N+1
ENDLOOP
ENDLOOP
END
I don’t know what is wrong but in other modules this kind of looping worked for me. I observed that I get values only for the speeds as #N=3 and not: 1st: N=0, N=1, N=2 .. (rows 28 - 30 in Excel).
If I manually put #N=1 i get values for speeds from row nr 28, #N=2, row nr 29 etc.
However I’m not able to get all 3 speeds for LC 101, all 3 speeds for LC 102 etc..
Is it possible?
Thanks,
Szymon

