Project

General

Profile

Download (32.6 KB) Statistics
| Branch: | Tag: | Revision:
1
-- This file has been generated by CoCoSim2.
2

    
3
-- Compiler: Lustre compiler 2 (ToLustre.m)
4
-- Time: 03-Dec-2018 22:48:12
5
node  _max_real(x : real;
6
	y : real;)
7
returns(z : real;);
8
let
9
	z = if (x > y) then
10
		x
11
	    else y;
12
tel
13

    
14
node  _min_real(x : real;
15
	y : real;)
16
returns(z : real;);
17
let
18
	z = if (x < y) then
19
		x
20
	    else y;
21
tel
22

    
23
node  abs_real(x : real;)
24
returns(y : real;);
25
let
26
	y = if (x >= 0.0) then
27
		x
28
	    else (- x);
29
tel
30

    
31
(*
32
Original block name: LookupTableND_5D_nearest_PP/Saturation
33
*)
34
node  Saturation_55_729(In_1 : real;
35
	__time_step : real;
36
	__nb_step : int;)
37
returns(Out_1 : real;);
38
var lower_1 : real;
39
	lower_limit_1 : real;
40
	upper_1 : real;
41
	upper_limit_1 : real;
42
let
43
	lower_1 = _max_real(upper_1, lower_limit_1);
44
	lower_limit_1 = 1.000000000000000;
45
	upper_1 = _min_real(upper_limit_1, In_1);
46
	upper_limit_1 = 7.000000000000000;
47
	Out_1 = lower_1;
48
tel
49

    
50
(*
51
Original block name: LookupTableND_5D_nearest_PP/Saturation1
52
*)
53
node  Saturation1_57_239(In_1 : real;
54
	__time_step : real;
55
	__nb_step : int;)
56
returns(Out_1 : real;);
57
var lower_1 : real;
58
	lower_limit_1 : real;
59
	upper_1 : real;
60
	upper_limit_1 : real;
61
let
62
	lower_1 = _max_real(upper_1, lower_limit_1);
63
	lower_limit_1 = 2.000000000000000;
64
	upper_1 = _min_real(upper_limit_1, In_1);
65
	upper_limit_1 = 5.000000000000000;
66
	Out_1 = lower_1;
67
tel
68

    
69
(*
70
Original block name: LookupTableND_5D_nearest_PP/Saturation2
71
*)
72
node  Saturation2_59_461(In_1 : real;
73
	__time_step : real;
74
	__nb_step : int;)
75
returns(Out_1 : real;);
76
var lower_1 : real;
77
	lower_limit_1 : real;
78
	upper_1 : real;
79
	upper_limit_1 : real;
80
let
81
	lower_1 = _max_real(upper_1, lower_limit_1);
82
	lower_limit_1 = 1.000000000000000;
83
	upper_1 = _min_real(upper_limit_1, In_1);
84
	upper_limit_1 = 4.000000000000000;
85
	Out_1 = lower_1;
86
tel
87

    
88
(*
89
Original block name: LookupTableND_5D_nearest_PP/Saturation3
90
*)
91
node  Saturation3_61_507(In_1 : real;
92
	__time_step : real;
93
	__nb_step : int;)
94
returns(Out_1 : real;);
95
var lower_1 : real;
96
	lower_limit_1 : real;
97
	upper_1 : real;
98
	upper_limit_1 : real;
99
let
100
	lower_1 = _max_real(upper_1, lower_limit_1);
101
	lower_limit_1 = 1.000000000000000;
102
	upper_1 = _min_real(upper_limit_1, In_1);
103
	upper_limit_1 = 5.000000000000000;
104
	Out_1 = lower_1;
105
tel
106

    
107
(*
108
Original block name: LookupTableND_5D_nearest_PP/Saturation4
109
*)
110
node  Saturation4_62_514(In_1 : real;
111
	__time_step : real;
112
	__nb_step : int;)
113
returns(Out_1 : real;);
114
var lower_1 : real;
115
	lower_limit_1 : real;
116
	upper_1 : real;
117
	upper_limit_1 : real;
118
let
119
	lower_1 = _max_real(upper_1, lower_limit_1);
120
	lower_limit_1 = 1.000000000000000;
121
	upper_1 = _min_real(upper_limit_1, In_1);
122
	upper_limit_1 = 3.000000000000000;
123
	Out_1 = lower_1;
124
tel
125

    
126
(*
127
external node code for doing Lookup_nD
128
*)
129
node  n_minus_DLookupTable_63_112_ext_node(Saturation_1 : real;
130
	Saturation1_1 : real;
131
	Saturation2_1 : real;
132
	Saturation3_1 : real;
133
	Saturation4_1 : real;)
134
returns(n_minus_DLookupTable_1 : real;);
135
var n_minus_DLookupTable_63_112_table_elem_1 : real;
136
	n_minus_DLookupTable_63_112_table_elem_2 : real;
137
	n_minus_DLookupTable_63_112_table_elem_3 : real;
138
	n_minus_DLookupTable_63_112_table_elem_4 : real;
139
	n_minus_DLookupTable_63_112_table_elem_5 : real;
140
	n_minus_DLookupTable_63_112_table_elem_6 : real;
141
	n_minus_DLookupTable_63_112_table_elem_7 : real;
142
	n_minus_DLookupTable_63_112_table_elem_8 : real;
143
	n_minus_DLookupTable_63_112_table_elem_9 : real;
144
	n_minus_DLookupTable_63_112_table_elem_10 : real;
145
	n_minus_DLookupTable_63_112_table_elem_11 : real;
146
	n_minus_DLookupTable_63_112_table_elem_12 : real;
147
	n_minus_DLookupTable_63_112_table_elem_13 : real;
148
	n_minus_DLookupTable_63_112_table_elem_14 : real;
149
	n_minus_DLookupTable_63_112_table_elem_15 : real;
150
	n_minus_DLookupTable_63_112_table_elem_16 : real;
151
	n_minus_DLookupTable_63_112_table_elem_17 : real;
152
	n_minus_DLookupTable_63_112_table_elem_18 : real;
153
	n_minus_DLookupTable_63_112_table_elem_19 : real;
154
	n_minus_DLookupTable_63_112_table_elem_20 : real;
155
	n_minus_DLookupTable_63_112_table_elem_21 : real;
156
	n_minus_DLookupTable_63_112_table_elem_22 : real;
157
	n_minus_DLookupTable_63_112_table_elem_23 : real;
158
	n_minus_DLookupTable_63_112_table_elem_24 : real;
159
	n_minus_DLookupTable_63_112_table_elem_25 : real;
160
	n_minus_DLookupTable_63_112_table_elem_26 : real;
161
	n_minus_DLookupTable_63_112_table_elem_27 : real;
162
	n_minus_DLookupTable_63_112_table_elem_28 : real;
163
	n_minus_DLookupTable_63_112_table_elem_29 : real;
164
	n_minus_DLookupTable_63_112_table_elem_30 : real;
165
	n_minus_DLookupTable_63_112_table_elem_31 : real;
166
	n_minus_DLookupTable_63_112_table_elem_32 : real;
167
	n_minus_DLookupTable_63_112_table_elem_33 : real;
168
	n_minus_DLookupTable_63_112_table_elem_34 : real;
169
	n_minus_DLookupTable_63_112_table_elem_35 : real;
170
	n_minus_DLookupTable_63_112_table_elem_36 : real;
171
	n_minus_DLookupTable_63_112_table_elem_37 : real;
172
	n_minus_DLookupTable_63_112_table_elem_38 : real;
173
	n_minus_DLookupTable_63_112_table_elem_39 : real;
174
	n_minus_DLookupTable_63_112_table_elem_40 : real;
175
	n_minus_DLookupTable_63_112_table_elem_41 : real;
176
	n_minus_DLookupTable_63_112_table_elem_42 : real;
177
	n_minus_DLookupTable_63_112_table_elem_43 : real;
178
	n_minus_DLookupTable_63_112_table_elem_44 : real;
179
	n_minus_DLookupTable_63_112_table_elem_45 : real;
180
	n_minus_DLookupTable_63_112_table_elem_46 : real;
181
	n_minus_DLookupTable_63_112_table_elem_47 : real;
182
	n_minus_DLookupTable_63_112_table_elem_48 : real;
183
	n_minus_DLookupTable_63_112_Breakpoints_dim1_1 : real;
184
	n_minus_DLookupTable_63_112_Breakpoints_dim1_2 : real;
185
	n_minus_DLookupTable_63_112_Breakpoints_dim2_1 : real;
186
	n_minus_DLookupTable_63_112_Breakpoints_dim2_2 : real;
187
	n_minus_DLookupTable_63_112_Breakpoints_dim3_1 : real;
188
	n_minus_DLookupTable_63_112_Breakpoints_dim3_2 : real;
189
	n_minus_DLookupTable_63_112_Breakpoints_dim4_1 : real;
190
	n_minus_DLookupTable_63_112_Breakpoints_dim4_2 : real;
191
	n_minus_DLookupTable_63_112_Breakpoints_dim4_3 : real;
192
	n_minus_DLookupTable_63_112_Breakpoints_dim5_1 : real;
193
	n_minus_DLookupTable_63_112_Breakpoints_dim5_2 : real;
194
	n_minus_DLookupTable_63_112_dimJump_1 : int;
195
	n_minus_DLookupTable_63_112_dimJump_2 : int;
196
	n_minus_DLookupTable_63_112_dimJump_3 : int;
197
	n_minus_DLookupTable_63_112_dimJump_4 : int;
198
	n_minus_DLookupTable_63_112_dimJump_5 : int;
199
	n_minus_DLookupTable_63_112_index_dim_1_1 : int;
200
	n_minus_DLookupTable_63_112_index_dim_1_2 : int;
201
	n_minus_DLookupTable_63_112_coords_dim_1_1 : real;
202
	n_minus_DLookupTable_63_112_coords_dim_1_2 : real;
203
	n_minus_DLookupTable_63_112_index_dim_2_1 : int;
204
	n_minus_DLookupTable_63_112_index_dim_2_2 : int;
205
	n_minus_DLookupTable_63_112_coords_dim_2_1 : real;
206
	n_minus_DLookupTable_63_112_coords_dim_2_2 : real;
207
	n_minus_DLookupTable_63_112_index_dim_3_1 : int;
208
	n_minus_DLookupTable_63_112_index_dim_3_2 : int;
209
	n_minus_DLookupTable_63_112_coords_dim_3_1 : real;
210
	n_minus_DLookupTable_63_112_coords_dim_3_2 : real;
211
	n_minus_DLookupTable_63_112_index_dim_4_1 : int;
212
	n_minus_DLookupTable_63_112_index_dim_4_2 : int;
213
	n_minus_DLookupTable_63_112_coords_dim_4_1 : real;
214
	n_minus_DLookupTable_63_112_coords_dim_4_2 : real;
215
	n_minus_DLookupTable_63_112_index_dim_5_1 : int;
216
	n_minus_DLookupTable_63_112_index_dim_5_2 : int;
217
	n_minus_DLookupTable_63_112_coords_dim_5_1 : real;
218
	n_minus_DLookupTable_63_112_coords_dim_5_2 : real;
219
	n_minus_DLookupTable_63_112_retTableInd_1 : int;
220
	n_minus_DLookupTable_63_112_disFromTableNode_dim_1_1 : real;
221
	n_minus_DLookupTable_63_112_disFromTableNode_dim_1_2 : real;
222
	n_minus_DLookupTable_63_112_nearestIndex_dim_1 : int;
223
	n_minus_DLookupTable_63_112_disFromTableNode_dim_2_1 : real;
224
	n_minus_DLookupTable_63_112_disFromTableNode_dim_2_2 : real;
225
	n_minus_DLookupTable_63_112_nearestIndex_dim_2 : int;
226
	n_minus_DLookupTable_63_112_disFromTableNode_dim_3_1 : real;
227
	n_minus_DLookupTable_63_112_disFromTableNode_dim_3_2 : real;
228
	n_minus_DLookupTable_63_112_nearestIndex_dim_3 : int;
229
	n_minus_DLookupTable_63_112_disFromTableNode_dim_4_1 : real;
230
	n_minus_DLookupTable_63_112_disFromTableNode_dim_4_2 : real;
231
	n_minus_DLookupTable_63_112_nearestIndex_dim_4 : int;
232
	n_minus_DLookupTable_63_112_disFromTableNode_dim_5_1 : real;
233
	n_minus_DLookupTable_63_112_disFromTableNode_dim_5_2 : real;
234
	n_minus_DLookupTable_63_112_nearestIndex_dim_5 : int;
235
let
236
	n_minus_DLookupTable_63_112_table_elem_1 = 9.000000000000000;
237
	n_minus_DLookupTable_63_112_table_elem_2 = 6.000000000000000;
238
	n_minus_DLookupTable_63_112_table_elem_3 = 2.000000000000000;
239
	n_minus_DLookupTable_63_112_table_elem_4 = 5.000000000000000;
240
	n_minus_DLookupTable_63_112_table_elem_5 = 7.000000000000000;
241
	n_minus_DLookupTable_63_112_table_elem_6 = 8.000000000000000;
242
	n_minus_DLookupTable_63_112_table_elem_7 = 1.000000000000000;
243
	n_minus_DLookupTable_63_112_table_elem_8 = 4.000000000000000;
244
	n_minus_DLookupTable_63_112_table_elem_9 = 3.000000000000000;
245
	n_minus_DLookupTable_63_112_table_elem_10 = 0.000000000000000;
246
	n_minus_DLookupTable_63_112_table_elem_11 = 5.000000000000000;
247
	n_minus_DLookupTable_63_112_table_elem_12 = 1.000000000000000;
248
	n_minus_DLookupTable_63_112_table_elem_13 = 5.000000000000000;
249
	n_minus_DLookupTable_63_112_table_elem_14 = 2.000000000000000;
250
	n_minus_DLookupTable_63_112_table_elem_15 = 6.000000000000000;
251
	n_minus_DLookupTable_63_112_table_elem_16 = 1.000000000000000;
252
	n_minus_DLookupTable_63_112_table_elem_17 = 1.000000000000000;
253
	n_minus_DLookupTable_63_112_table_elem_18 = 3.000000000000000;
254
	n_minus_DLookupTable_63_112_table_elem_19 = 2.000000000000000;
255
	n_minus_DLookupTable_63_112_table_elem_20 = 4.000000000000000;
256
	n_minus_DLookupTable_63_112_table_elem_21 = 4.000000000000000;
257
	n_minus_DLookupTable_63_112_table_elem_22 = 2.000000000000000;
258
	n_minus_DLookupTable_63_112_table_elem_23 = 3.000000000000000;
259
	n_minus_DLookupTable_63_112_table_elem_24 = 1.000000000000000;
260
	n_minus_DLookupTable_63_112_table_elem_25 = 27.000000000000000;
261
	n_minus_DLookupTable_63_112_table_elem_26 = 18.000000000000000;
262
	n_minus_DLookupTable_63_112_table_elem_27 = 6.000000000000000;
263
	n_minus_DLookupTable_63_112_table_elem_28 = 15.000000000000000;
264
	n_minus_DLookupTable_63_112_table_elem_29 = 21.000000000000000;
265
	n_minus_DLookupTable_63_112_table_elem_30 = 24.000000000000000;
266
	n_minus_DLookupTable_63_112_table_elem_31 = 3.000000000000000;
267
	n_minus_DLookupTable_63_112_table_elem_32 = 12.000000000000000;
268
	n_minus_DLookupTable_63_112_table_elem_33 = 9.000000000000000;
269
	n_minus_DLookupTable_63_112_table_elem_34 = 0.000000000000000;
270
	n_minus_DLookupTable_63_112_table_elem_35 = 15.000000000000000;
271
	n_minus_DLookupTable_63_112_table_elem_36 = 3.000000000000000;
272
	n_minus_DLookupTable_63_112_table_elem_37 = 15.000000000000000;
273
	n_minus_DLookupTable_63_112_table_elem_38 = 6.000000000000000;
274
	n_minus_DLookupTable_63_112_table_elem_39 = 18.000000000000000;
275
	n_minus_DLookupTable_63_112_table_elem_40 = 3.000000000000000;
276
	n_minus_DLookupTable_63_112_table_elem_41 = 3.000000000000000;
277
	n_minus_DLookupTable_63_112_table_elem_42 = 9.000000000000000;
278
	n_minus_DLookupTable_63_112_table_elem_43 = 6.000000000000000;
279
	n_minus_DLookupTable_63_112_table_elem_44 = 12.000000000000000;
280
	n_minus_DLookupTable_63_112_table_elem_45 = 12.000000000000000;
281
	n_minus_DLookupTable_63_112_table_elem_46 = 6.000000000000000;
282
	n_minus_DLookupTable_63_112_table_elem_47 = 9.000000000000000;
283
	n_minus_DLookupTable_63_112_table_elem_48 = 3.000000000000000;
284
	n_minus_DLookupTable_63_112_Breakpoints_dim1_1 = 1.000000000000000;
285
	n_minus_DLookupTable_63_112_Breakpoints_dim1_2 = 7.000000000000000;
286
	n_minus_DLookupTable_63_112_Breakpoints_dim2_1 = 2.000000000000000;
287
	n_minus_DLookupTable_63_112_Breakpoints_dim2_2 = 5.000000000000000;
288
	n_minus_DLookupTable_63_112_Breakpoints_dim3_1 = 1.000000000000000;
289
	n_minus_DLookupTable_63_112_Breakpoints_dim3_2 = 4.000000000000000;
290
	n_minus_DLookupTable_63_112_Breakpoints_dim4_1 = 1.000000000000000;
291
	n_minus_DLookupTable_63_112_Breakpoints_dim4_2 = 2.000000000000000;
292
	n_minus_DLookupTable_63_112_Breakpoints_dim4_3 = 5.000000000000000;
293
	n_minus_DLookupTable_63_112_Breakpoints_dim5_1 = 1.000000000000000;
294
	n_minus_DLookupTable_63_112_Breakpoints_dim5_2 = 3.000000000000000;
295
	n_minus_DLookupTable_63_112_dimJump_1 = 1;
296
	n_minus_DLookupTable_63_112_dimJump_2 = 2;
297
	n_minus_DLookupTable_63_112_dimJump_3 = 4;
298
	n_minus_DLookupTable_63_112_dimJump_4 = 8;
299
	n_minus_DLookupTable_63_112_dimJump_5 = 24;
300
	n_minus_DLookupTable_63_112_index_dim_1_1 = if ((Saturation_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim1_2) or abs_real(Saturation_1 - n_minus_DLookupTable_63_112_Breakpoints_dim1_2) <= 0.000000000000000888178419700125) then
301
		2
302
	    else if ((Saturation_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim1_1) or abs_real(Saturation_1 - n_minus_DLookupTable_63_112_Breakpoints_dim1_1) <= 0.000000000000000222044604925031) then
303
		1
304
	    else 1;
305
	n_minus_DLookupTable_63_112_coords_dim_1_1 = if ((Saturation_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim1_2) or abs_real(Saturation_1 - n_minus_DLookupTable_63_112_Breakpoints_dim1_2) <= 0.000000000000000888178419700125) then
306
		n_minus_DLookupTable_63_112_Breakpoints_dim1_1
307
	    else if ((Saturation_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim1_1) or abs_real(Saturation_1 - n_minus_DLookupTable_63_112_Breakpoints_dim1_1) <= 0.000000000000000222044604925031) then
308
		n_minus_DLookupTable_63_112_Breakpoints_dim1_1
309
	    else n_minus_DLookupTable_63_112_Breakpoints_dim1_1;
310
	n_minus_DLookupTable_63_112_index_dim_1_2 = if ((Saturation_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim1_2) or abs_real(Saturation_1 - n_minus_DLookupTable_63_112_Breakpoints_dim1_2) <= 0.000000000000000888178419700125) then
311
		2
312
	    else if ((Saturation_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim1_1) or abs_real(Saturation_1 - n_minus_DLookupTable_63_112_Breakpoints_dim1_1) <= 0.000000000000000222044604925031) then
313
		2
314
	    else 2;
315
	n_minus_DLookupTable_63_112_coords_dim_1_2 = if ((Saturation_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim1_2) or abs_real(Saturation_1 - n_minus_DLookupTable_63_112_Breakpoints_dim1_2) <= 0.000000000000000888178419700125) then
316
		n_minus_DLookupTable_63_112_Breakpoints_dim1_2
317
	    else if ((Saturation_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim1_1) or abs_real(Saturation_1 - n_minus_DLookupTable_63_112_Breakpoints_dim1_1) <= 0.000000000000000222044604925031) then
318
		n_minus_DLookupTable_63_112_Breakpoints_dim1_2
319
	    else n_minus_DLookupTable_63_112_Breakpoints_dim1_2;
320
	n_minus_DLookupTable_63_112_index_dim_2_1 = if ((Saturation1_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim2_2) or abs_real(Saturation1_1 - n_minus_DLookupTable_63_112_Breakpoints_dim2_2) <= 0.000000000000000888178419700125) then
321
		2
322
	    else if ((Saturation1_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim2_1) or abs_real(Saturation1_1 - n_minus_DLookupTable_63_112_Breakpoints_dim2_1) <= 0.000000000000000444089209850063) then
323
		1
324
	    else 1;
325
	n_minus_DLookupTable_63_112_coords_dim_2_1 = if ((Saturation1_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim2_2) or abs_real(Saturation1_1 - n_minus_DLookupTable_63_112_Breakpoints_dim2_2) <= 0.000000000000000888178419700125) then
326
		n_minus_DLookupTable_63_112_Breakpoints_dim2_1
327
	    else if ((Saturation1_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim2_1) or abs_real(Saturation1_1 - n_minus_DLookupTable_63_112_Breakpoints_dim2_1) <= 0.000000000000000444089209850063) then
328
		n_minus_DLookupTable_63_112_Breakpoints_dim2_1
329
	    else n_minus_DLookupTable_63_112_Breakpoints_dim2_1;
330
	n_minus_DLookupTable_63_112_index_dim_2_2 = if ((Saturation1_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim2_2) or abs_real(Saturation1_1 - n_minus_DLookupTable_63_112_Breakpoints_dim2_2) <= 0.000000000000000888178419700125) then
331
		2
332
	    else if ((Saturation1_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim2_1) or abs_real(Saturation1_1 - n_minus_DLookupTable_63_112_Breakpoints_dim2_1) <= 0.000000000000000444089209850063) then
333
		2
334
	    else 2;
335
	n_minus_DLookupTable_63_112_coords_dim_2_2 = if ((Saturation1_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim2_2) or abs_real(Saturation1_1 - n_minus_DLookupTable_63_112_Breakpoints_dim2_2) <= 0.000000000000000888178419700125) then
336
		n_minus_DLookupTable_63_112_Breakpoints_dim2_2
337
	    else if ((Saturation1_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim2_1) or abs_real(Saturation1_1 - n_minus_DLookupTable_63_112_Breakpoints_dim2_1) <= 0.000000000000000444089209850063) then
338
		n_minus_DLookupTable_63_112_Breakpoints_dim2_2
339
	    else n_minus_DLookupTable_63_112_Breakpoints_dim2_2;
340
	n_minus_DLookupTable_63_112_index_dim_3_1 = if ((Saturation2_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim3_2) or abs_real(Saturation2_1 - n_minus_DLookupTable_63_112_Breakpoints_dim3_2) <= 0.000000000000000888178419700125) then
341
		2
342
	    else if ((Saturation2_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim3_1) or abs_real(Saturation2_1 - n_minus_DLookupTable_63_112_Breakpoints_dim3_1) <= 0.000000000000000222044604925031) then
343
		1
344
	    else 1;
345
	n_minus_DLookupTable_63_112_coords_dim_3_1 = if ((Saturation2_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim3_2) or abs_real(Saturation2_1 - n_minus_DLookupTable_63_112_Breakpoints_dim3_2) <= 0.000000000000000888178419700125) then
346
		n_minus_DLookupTable_63_112_Breakpoints_dim3_1
347
	    else if ((Saturation2_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim3_1) or abs_real(Saturation2_1 - n_minus_DLookupTable_63_112_Breakpoints_dim3_1) <= 0.000000000000000222044604925031) then
348
		n_minus_DLookupTable_63_112_Breakpoints_dim3_1
349
	    else n_minus_DLookupTable_63_112_Breakpoints_dim3_1;
350
	n_minus_DLookupTable_63_112_index_dim_3_2 = if ((Saturation2_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim3_2) or abs_real(Saturation2_1 - n_minus_DLookupTable_63_112_Breakpoints_dim3_2) <= 0.000000000000000888178419700125) then
351
		2
352
	    else if ((Saturation2_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim3_1) or abs_real(Saturation2_1 - n_minus_DLookupTable_63_112_Breakpoints_dim3_1) <= 0.000000000000000222044604925031) then
353
		2
354
	    else 2;
355
	n_minus_DLookupTable_63_112_coords_dim_3_2 = if ((Saturation2_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim3_2) or abs_real(Saturation2_1 - n_minus_DLookupTable_63_112_Breakpoints_dim3_2) <= 0.000000000000000888178419700125) then
356
		n_minus_DLookupTable_63_112_Breakpoints_dim3_2
357
	    else if ((Saturation2_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim3_1) or abs_real(Saturation2_1 - n_minus_DLookupTable_63_112_Breakpoints_dim3_1) <= 0.000000000000000222044604925031) then
358
		n_minus_DLookupTable_63_112_Breakpoints_dim3_2
359
	    else n_minus_DLookupTable_63_112_Breakpoints_dim3_2;
360
	n_minus_DLookupTable_63_112_index_dim_4_1 = if ((Saturation3_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim4_3) or abs_real(Saturation3_1 - n_minus_DLookupTable_63_112_Breakpoints_dim4_3) <= 0.000000000000000888178419700125) then
361
		3
362
	    else if ((Saturation3_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim4_2) or abs_real(Saturation3_1 - n_minus_DLookupTable_63_112_Breakpoints_dim4_2) <= 0.000000000000000444089209850063) then
363
		2
364
	    else if ((Saturation3_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim4_1) or abs_real(Saturation3_1 - n_minus_DLookupTable_63_112_Breakpoints_dim4_1) <= 0.000000000000000222044604925031) then
365
		1
366
	    else 1;
367
	n_minus_DLookupTable_63_112_coords_dim_4_1 = if ((Saturation3_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim4_3) or abs_real(Saturation3_1 - n_minus_DLookupTable_63_112_Breakpoints_dim4_3) <= 0.000000000000000888178419700125) then
368
		n_minus_DLookupTable_63_112_Breakpoints_dim4_2
369
	    else if ((Saturation3_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim4_2) or abs_real(Saturation3_1 - n_minus_DLookupTable_63_112_Breakpoints_dim4_2) <= 0.000000000000000444089209850063) then
370
		n_minus_DLookupTable_63_112_Breakpoints_dim4_2
371
	    else if ((Saturation3_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim4_1) or abs_real(Saturation3_1 - n_minus_DLookupTable_63_112_Breakpoints_dim4_1) <= 0.000000000000000222044604925031) then
372
		n_minus_DLookupTable_63_112_Breakpoints_dim4_1
373
	    else n_minus_DLookupTable_63_112_Breakpoints_dim4_1;
374
	n_minus_DLookupTable_63_112_index_dim_4_2 = if ((Saturation3_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim4_3) or abs_real(Saturation3_1 - n_minus_DLookupTable_63_112_Breakpoints_dim4_3) <= 0.000000000000000888178419700125) then
375
		3
376
	    else if ((Saturation3_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim4_2) or abs_real(Saturation3_1 - n_minus_DLookupTable_63_112_Breakpoints_dim4_2) <= 0.000000000000000444089209850063) then
377
		3
378
	    else if ((Saturation3_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim4_1) or abs_real(Saturation3_1 - n_minus_DLookupTable_63_112_Breakpoints_dim4_1) <= 0.000000000000000222044604925031) then
379
		2
380
	    else 2;
381
	n_minus_DLookupTable_63_112_coords_dim_4_2 = if ((Saturation3_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim4_3) or abs_real(Saturation3_1 - n_minus_DLookupTable_63_112_Breakpoints_dim4_3) <= 0.000000000000000888178419700125) then
382
		n_minus_DLookupTable_63_112_Breakpoints_dim4_3
383
	    else if ((Saturation3_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim4_2) or abs_real(Saturation3_1 - n_minus_DLookupTable_63_112_Breakpoints_dim4_2) <= 0.000000000000000444089209850063) then
384
		n_minus_DLookupTable_63_112_Breakpoints_dim4_3
385
	    else if ((Saturation3_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim4_1) or abs_real(Saturation3_1 - n_minus_DLookupTable_63_112_Breakpoints_dim4_1) <= 0.000000000000000222044604925031) then
386
		n_minus_DLookupTable_63_112_Breakpoints_dim4_2
387
	    else n_minus_DLookupTable_63_112_Breakpoints_dim4_2;
388
	n_minus_DLookupTable_63_112_index_dim_5_1 = if ((Saturation4_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim5_2) or abs_real(Saturation4_1 - n_minus_DLookupTable_63_112_Breakpoints_dim5_2) <= 0.000000000000000444089209850063) then
389
		2
390
	    else if ((Saturation4_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim5_1) or abs_real(Saturation4_1 - n_minus_DLookupTable_63_112_Breakpoints_dim5_1) <= 0.000000000000000222044604925031) then
391
		1
392
	    else 1;
393
	n_minus_DLookupTable_63_112_coords_dim_5_1 = if ((Saturation4_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim5_2) or abs_real(Saturation4_1 - n_minus_DLookupTable_63_112_Breakpoints_dim5_2) <= 0.000000000000000444089209850063) then
394
		n_minus_DLookupTable_63_112_Breakpoints_dim5_1
395
	    else if ((Saturation4_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim5_1) or abs_real(Saturation4_1 - n_minus_DLookupTable_63_112_Breakpoints_dim5_1) <= 0.000000000000000222044604925031) then
396
		n_minus_DLookupTable_63_112_Breakpoints_dim5_1
397
	    else n_minus_DLookupTable_63_112_Breakpoints_dim5_1;
398
	n_minus_DLookupTable_63_112_index_dim_5_2 = if ((Saturation4_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim5_2) or abs_real(Saturation4_1 - n_minus_DLookupTable_63_112_Breakpoints_dim5_2) <= 0.000000000000000444089209850063) then
399
		2
400
	    else if ((Saturation4_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim5_1) or abs_real(Saturation4_1 - n_minus_DLookupTable_63_112_Breakpoints_dim5_1) <= 0.000000000000000222044604925031) then
401
		2
402
	    else 2;
403
	n_minus_DLookupTable_63_112_coords_dim_5_2 = if ((Saturation4_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim5_2) or abs_real(Saturation4_1 - n_minus_DLookupTable_63_112_Breakpoints_dim5_2) <= 0.000000000000000444089209850063) then
404
		n_minus_DLookupTable_63_112_Breakpoints_dim5_2
405
	    else if ((Saturation4_1 >= n_minus_DLookupTable_63_112_Breakpoints_dim5_1) or abs_real(Saturation4_1 - n_minus_DLookupTable_63_112_Breakpoints_dim5_1) <= 0.000000000000000222044604925031) then
406
		n_minus_DLookupTable_63_112_Breakpoints_dim5_2
407
	    else n_minus_DLookupTable_63_112_Breakpoints_dim5_2;
408
	n_minus_DLookupTable_63_112_disFromTableNode_dim_1_1 = (Saturation_1 - n_minus_DLookupTable_63_112_coords_dim_1_1);
409
	n_minus_DLookupTable_63_112_disFromTableNode_dim_1_2 = (n_minus_DLookupTable_63_112_coords_dim_1_2 - Saturation_1);
410
	n_minus_DLookupTable_63_112_nearestIndex_dim_1 = if ((n_minus_DLookupTable_63_112_disFromTableNode_dim_1_2 <= n_minus_DLookupTable_63_112_disFromTableNode_dim_1_1) or abs_real(n_minus_DLookupTable_63_112_disFromTableNode_dim_1_2 - n_minus_DLookupTable_63_112_disFromTableNode_dim_1_1) <= 0.000000000000000888178419700125) then
411
		n_minus_DLookupTable_63_112_index_dim_1_2
412
	    else n_minus_DLookupTable_63_112_index_dim_1_1;
413
	n_minus_DLookupTable_63_112_disFromTableNode_dim_2_1 = (Saturation1_1 - n_minus_DLookupTable_63_112_coords_dim_2_1);
414
	n_minus_DLookupTable_63_112_disFromTableNode_dim_2_2 = (n_minus_DLookupTable_63_112_coords_dim_2_2 - Saturation1_1);
415
	n_minus_DLookupTable_63_112_nearestIndex_dim_2 = if ((n_minus_DLookupTable_63_112_disFromTableNode_dim_2_2 <= n_minus_DLookupTable_63_112_disFromTableNode_dim_2_1) or abs_real(n_minus_DLookupTable_63_112_disFromTableNode_dim_2_2 - n_minus_DLookupTable_63_112_disFromTableNode_dim_2_1) <= 0.000000000000000888178419700125) then
416
		n_minus_DLookupTable_63_112_index_dim_2_2
417
	    else n_minus_DLookupTable_63_112_index_dim_2_1;
418
	n_minus_DLookupTable_63_112_disFromTableNode_dim_3_1 = (Saturation2_1 - n_minus_DLookupTable_63_112_coords_dim_3_1);
419
	n_minus_DLookupTable_63_112_disFromTableNode_dim_3_2 = (n_minus_DLookupTable_63_112_coords_dim_3_2 - Saturation2_1);
420
	n_minus_DLookupTable_63_112_nearestIndex_dim_3 = if ((n_minus_DLookupTable_63_112_disFromTableNode_dim_3_2 <= n_minus_DLookupTable_63_112_disFromTableNode_dim_3_1) or abs_real(n_minus_DLookupTable_63_112_disFromTableNode_dim_3_2 - n_minus_DLookupTable_63_112_disFromTableNode_dim_3_1) <= 0.000000000000000888178419700125) then
421
		n_minus_DLookupTable_63_112_index_dim_3_2
422
	    else n_minus_DLookupTable_63_112_index_dim_3_1;
423
	n_minus_DLookupTable_63_112_disFromTableNode_dim_4_1 = (Saturation3_1 - n_minus_DLookupTable_63_112_coords_dim_4_1);
424
	n_minus_DLookupTable_63_112_disFromTableNode_dim_4_2 = (n_minus_DLookupTable_63_112_coords_dim_4_2 - Saturation3_1);
425
	n_minus_DLookupTable_63_112_nearestIndex_dim_4 = if ((n_minus_DLookupTable_63_112_disFromTableNode_dim_4_2 <= n_minus_DLookupTable_63_112_disFromTableNode_dim_4_1) or abs_real(n_minus_DLookupTable_63_112_disFromTableNode_dim_4_2 - n_minus_DLookupTable_63_112_disFromTableNode_dim_4_1) <= 0.000000000000000444089209850063) then
426
		n_minus_DLookupTable_63_112_index_dim_4_2
427
	    else n_minus_DLookupTable_63_112_index_dim_4_1;
428
	n_minus_DLookupTable_63_112_disFromTableNode_dim_5_1 = (Saturation4_1 - n_minus_DLookupTable_63_112_coords_dim_5_1);
429
	n_minus_DLookupTable_63_112_disFromTableNode_dim_5_2 = (n_minus_DLookupTable_63_112_coords_dim_5_2 - Saturation4_1);
430
	n_minus_DLookupTable_63_112_nearestIndex_dim_5 = if ((n_minus_DLookupTable_63_112_disFromTableNode_dim_5_2 <= n_minus_DLookupTable_63_112_disFromTableNode_dim_5_1) or abs_real(n_minus_DLookupTable_63_112_disFromTableNode_dim_5_2 - n_minus_DLookupTable_63_112_disFromTableNode_dim_5_1) <= 0.000000000000000444089209850063) then
431
		n_minus_DLookupTable_63_112_index_dim_5_2
432
	    else n_minus_DLookupTable_63_112_index_dim_5_1;
433
	n_minus_DLookupTable_63_112_retTableInd_1 = ( (n_minus_DLookupTable_63_112_nearestIndex_dim_1 * 1) + ((n_minus_DLookupTable_63_112_nearestIndex_dim_2 - 1) * 2) + ((n_minus_DLookupTable_63_112_nearestIndex_dim_3 - 1) * 4) + ((n_minus_DLookupTable_63_112_nearestIndex_dim_4 - 1) * 8) + ((n_minus_DLookupTable_63_112_nearestIndex_dim_5 - 1) * 24) );
434
	n_minus_DLookupTable_1 = if (n_minus_DLookupTable_63_112_retTableInd_1 = 1) then
435
		n_minus_DLookupTable_63_112_table_elem_1
436
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 2) then
437
		n_minus_DLookupTable_63_112_table_elem_2
438
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 3) then
439
		n_minus_DLookupTable_63_112_table_elem_3
440
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 4) then
441
		n_minus_DLookupTable_63_112_table_elem_4
442
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 5) then
443
		n_minus_DLookupTable_63_112_table_elem_5
444
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 6) then
445
		n_minus_DLookupTable_63_112_table_elem_6
446
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 7) then
447
		n_minus_DLookupTable_63_112_table_elem_7
448
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 8) then
449
		n_minus_DLookupTable_63_112_table_elem_8
450
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 9) then
451
		n_minus_DLookupTable_63_112_table_elem_9
452
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 10) then
453
		n_minus_DLookupTable_63_112_table_elem_10
454
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 11) then
455
		n_minus_DLookupTable_63_112_table_elem_11
456
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 12) then
457
		n_minus_DLookupTable_63_112_table_elem_12
458
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 13) then
459
		n_minus_DLookupTable_63_112_table_elem_13
460
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 14) then
461
		n_minus_DLookupTable_63_112_table_elem_14
462
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 15) then
463
		n_minus_DLookupTable_63_112_table_elem_15
464
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 16) then
465
		n_minus_DLookupTable_63_112_table_elem_16
466
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 17) then
467
		n_minus_DLookupTable_63_112_table_elem_17
468
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 18) then
469
		n_minus_DLookupTable_63_112_table_elem_18
470
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 19) then
471
		n_minus_DLookupTable_63_112_table_elem_19
472
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 20) then
473
		n_minus_DLookupTable_63_112_table_elem_20
474
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 21) then
475
		n_minus_DLookupTable_63_112_table_elem_21
476
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 22) then
477
		n_minus_DLookupTable_63_112_table_elem_22
478
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 23) then
479
		n_minus_DLookupTable_63_112_table_elem_23
480
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 24) then
481
		n_minus_DLookupTable_63_112_table_elem_24
482
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 25) then
483
		n_minus_DLookupTable_63_112_table_elem_25
484
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 26) then
485
		n_minus_DLookupTable_63_112_table_elem_26
486
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 27) then
487
		n_minus_DLookupTable_63_112_table_elem_27
488
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 28) then
489
		n_minus_DLookupTable_63_112_table_elem_28
490
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 29) then
491
		n_minus_DLookupTable_63_112_table_elem_29
492
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 30) then
493
		n_minus_DLookupTable_63_112_table_elem_30
494
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 31) then
495
		n_minus_DLookupTable_63_112_table_elem_31
496
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 32) then
497
		n_minus_DLookupTable_63_112_table_elem_32
498
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 33) then
499
		n_minus_DLookupTable_63_112_table_elem_33
500
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 34) then
501
		n_minus_DLookupTable_63_112_table_elem_34
502
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 35) then
503
		n_minus_DLookupTable_63_112_table_elem_35
504
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 36) then
505
		n_minus_DLookupTable_63_112_table_elem_36
506
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 37) then
507
		n_minus_DLookupTable_63_112_table_elem_37
508
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 38) then
509
		n_minus_DLookupTable_63_112_table_elem_38
510
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 39) then
511
		n_minus_DLookupTable_63_112_table_elem_39
512
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 40) then
513
		n_minus_DLookupTable_63_112_table_elem_40
514
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 41) then
515
		n_minus_DLookupTable_63_112_table_elem_41
516
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 42) then
517
		n_minus_DLookupTable_63_112_table_elem_42
518
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 43) then
519
		n_minus_DLookupTable_63_112_table_elem_43
520
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 44) then
521
		n_minus_DLookupTable_63_112_table_elem_44
522
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 45) then
523
		n_minus_DLookupTable_63_112_table_elem_45
524
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 46) then
525
		n_minus_DLookupTable_63_112_table_elem_46
526
	    else if (n_minus_DLookupTable_63_112_retTableInd_1 = 47) then
527
		n_minus_DLookupTable_63_112_table_elem_47
528
	    else n_minus_DLookupTable_63_112_table_elem_48;
529
tel
530

    
531
(*
532
Original block name: LookupTableND_5D_nearest_PP
533
*)
534
node  LookupTableND_5D_nearest_PP(In1_1 : real;
535
	In2_1 : real;
536
	In3_1 : real;
537
	In4_1 : real;
538
	In5_1 : real;)
539
returns(Out1_1 : real;);
540
var Saturation_1 : real;
541
	Saturation1_1 : real;
542
	Saturation2_1 : real;
543
	Saturation3_1 : real;
544
	Saturation4_1 : real;
545
	n_minus_DLookupTable_1 : real;
546
	__time_step : real;
547
	__nb_step : int;
548
let
549
	Saturation_1 = Saturation_55_729(In1_1, __time_step, __nb_step);
550
	Saturation1_1 = Saturation1_57_239(In2_1, __time_step, __nb_step);
551
	Saturation2_1 = Saturation2_59_461(In3_1, __time_step, __nb_step);
552
	Saturation3_1 = Saturation3_61_507(In4_1, __time_step, __nb_step);
553
	Saturation4_1 = Saturation4_62_514(In5_1, __time_step, __nb_step);
554
	n_minus_DLookupTable_1 = n_minus_DLookupTable_63_112_ext_node(Saturation_1, Saturation1_1, Saturation2_1, Saturation3_1, Saturation4_1);
555
	Out1_1 = n_minus_DLookupTable_1;
556
	__time_step = (0.0 -> ((pre __time_step) + 0.200000000000000));
557
	__nb_step = (0 -> ((pre __nb_step) + 1));
558
tel
559

    
(938-938/1153)