Project

General

Profile

Download (2.99 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:02:08
5
(*
6
Original block name: DSS/DiscreteState_minus_Space
7
*)
8
node  DiscreteState_minus_Space_5_002(U_1 : real;
9
	__time_step : real;
10
	__nb_step : int;)
11
returns(Y_1 : real;);
12
var A_1 : real;
13
	A_2 : real;
14
	A_3 : real;
15
	A_4 : real;
16
	B_1 : real;
17
	B_2 : real;
18
	C_1 : real;
19
	C_2 : real;
20
	D_1 : real;
21
	Product_1 : real;
22
	Product1_1 : real;
23
	Product2_1 : real;
24
	Product2_2 : real;
25
	Product3_1 : real;
26
	Product3_2 : real;
27
	Sum_1 : real;
28
	Sum1_1 : real;
29
	Sum1_2 : real;
30
	X0_1 : real;
31
	X0_2 : real;
32
let
33
	A_1 = 1.303430790495574;
34
	A_2 = 0.581204540824034;
35
	A_3 = 0.435903405618026;
36
	A_4 = 1.739334196113600;
37
	B_1 = 0.510647680364470;
38
	B_2 = 0.500046006035811;
39
	C_1 = 1.000000000000000;
40
	C_2 = 5.000000000000000;
41
	D_1 = 2.000000000000000;
42
	Product_1 = 0.0 + (C_1 * X0_1) + (C_2 * X0_2);
43
	Product1_1 = 0.0 + (D_1 * U_1);
44
	Product2_1 = 0.0 + (B_1 * U_1);
45
	Product2_2 = 0.0 + (B_2 * U_1);
46
	Product3_1 = 0.0 + (A_1 * X0_1) + (A_3 * X0_2);
47
	Product3_2 = 0.0 + (A_2 * X0_1) + (A_4 * X0_2);
48
	Sum_1 = 0.0 + Product1_1 + Product_1;
49
	Sum1_1 = 0.0 + Product3_1 + Product2_1;
50
	Sum1_2 = 0.0 + Product3_2 + Product2_2;
51
	X0_1 = (0.000000000000000 -> (pre Sum1_1));
52
	X0_2 = (0.000000000000000 -> (pre Sum1_2));
53
	Y_1 = Sum_1;
54
tel
55

    
56
(*
57
Original block name: DSS/State_minus_Space
58
*)
59
node  State_minus_Space_37_004(U_1 : real;
60
	__time_step : real;
61
	__nb_step : int;)
62
returns(Y_1 : real;);
63
var A_1 : real;
64
	A_2 : real;
65
	A_3 : real;
66
	A_4 : real;
67
	B_1 : real;
68
	B_2 : real;
69
	C_1 : real;
70
	C_2 : real;
71
	D_1 : real;
72
	Product_1 : real;
73
	Product1_1 : real;
74
	Product2_1 : real;
75
	Product2_2 : real;
76
	Product3_1 : real;
77
	Product3_2 : real;
78
	Sum_1 : real;
79
	Sum1_1 : real;
80
	Sum1_2 : real;
81
	X0_1 : real;
82
	X0_2 : real;
83
let
84
	A_1 = 1.303430790495574;
85
	A_2 = 0.581204540824034;
86
	A_3 = 0.435903405618026;
87
	A_4 = 1.739334196113600;
88
	B_1 = 0.510647680364470;
89
	B_2 = 0.500046006035811;
90
	C_1 = 1.000000000000000;
91
	C_2 = 5.000000000000000;
92
	D_1 = 2.000000000000000;
93
	Product_1 = 0.0 + (C_1 * X0_1) + (C_2 * X0_2);
94
	Product1_1 = 0.0 + (D_1 * U_1);
95
	Product2_1 = 0.0 + (B_1 * U_1);
96
	Product2_2 = 0.0 + (B_2 * U_1);
97
	Product3_1 = 0.0 + (A_1 * X0_1) + (A_3 * X0_2);
98
	Product3_2 = 0.0 + (A_2 * X0_1) + (A_4 * X0_2);
99
	Sum_1 = 0.0 + Product1_1 + Product_1;
100
	Sum1_1 = 0.0 + Product3_1 + Product2_1;
101
	Sum1_2 = 0.0 + Product3_2 + Product2_2;
102
	X0_1 = (0.000000000000000 -> (pre Sum1_1));
103
	X0_2 = (0.000000000000000 -> (pre Sum1_2));
104
	Y_1 = Sum_1;
105
tel
106

    
107
(*
108
Original block name: DSS
109
*)
110
node  DSS(In1_1 : real;)
111
returns(Out1_1 : real;
112
	Out2_1 : real;);
113
var DiscreteState_minus_Space_1 : real;
114
	State_minus_Space_1 : real;
115
	__time_step : real;
116
	__nb_step : int;
117
let
118
	DiscreteState_minus_Space_1 = DiscreteState_minus_Space_5_002(In1_1, __time_step, __nb_step);
119
	State_minus_Space_1 = State_minus_Space_37_004(In1_1, __time_step, __nb_step);
120
	Out1_1 = DiscreteState_minus_Space_1;
121
	Out2_1 = State_minus_Space_1;
122
	__time_step = (0.0 -> ((pre __time_step) + 0.100000000000000));
123
	__nb_step = (0 -> ((pre __nb_step) + 1));
124
tel
125

    
(367-367/1153)