&LOOP ENVIROMENT LOADCASES

Hi, 

I have a set of enviroment loadcase which variable are heading, Hs, Tp. The condition are such as

Load Case

Significant Wave Height, HS

Peak Period, TP

Gamma, ɤ

Angle of Incidence

m

s

deg

101

5.9

13.6

1.0

315

102

5.1

12.7

1.0

270

103

5.1

12.7

1.0

225

104

2.5

8.9

1.0

180

105

2.5

8.8

1.0

135

106

2.8

9.5

1.0

90

107

4.6

12.1

1.0

45

108

5.4

13.0

1.0

0

I have tried the loop command but moses loop all condition at once, appreciate if you can point out the mistake and correction. The code are shown below:

&set head_l  = 315 270 225 180 135 90 45

&set sptum = JONSWAP

&set hs_l = 5.9 5.1 5.1 2.5 2.5 2.8 4.6 5.4

&set tp_l = 13.6 12.7 12.7 8.9 8.8 9.5 12.1 13.0

&set sp_type = peak

&set gamma_l = 1.0

&data env

&set list_env =

&loop n 1 &token (%tp_l) l

&loop m 1 &token (%head_l) l

&loop h 1 &token (%head_l) l

env env_%m%_%n% -sea %sptum% &token(%m% %head_l%) &token(%n% %hs_l%) &token(%n% %tp_l%) &token(%n% %gamma_l%) -sp_peak

&endloop

&endloop

end_&data

Parents Reply Children
No Data