Project

General

Profile

Download (2.1 KB) Statistics
| Branch: | Tag: | Revision:
1 4748b215 hbourbou
-- This file has been generated by CoCoSim2.
2
3
-- Compiler: Lustre compiler 2 (ToLustre.m)
4
-- Time: 03-Dec-2018 22:12:16
5
(*
6
Original block name: flattening_1_test_PP/Subsystem/SubSub1/TransferFcn_pp
7
*)
8
node  TransferFcn_pp_74_018(Inport1_1 : real;
9
	__time_step : real;
10
	__nb_step : int;)
11
returns(Outport1_1 : real;);
12
var D1_1 : real;
13
	GainAC1_1_1 : real;
14
	GainAC2_1_1 : real;
15
	GainBD1_1_1 : real;
16
	GainBD2_1_1 : real;
17
	Sum1_1 : real;
18
	Sum2_1 : real;
19
let
20
	D1_1 = (0.000000000000000 -> (pre Sum1_1));
21
	GainAC1_1_1 = (D1_1 * -1.000000000000000);
22
	GainAC2_1_1 = (D1_1 * 1.000000000000000);
23
	GainBD1_1_1 = (Inport1_1 * 1.000000000000000);
24
	GainBD2_1_1 = (Inport1_1 * 0.000000000000000);
25
	Sum1_1 = 0.0 + GainAC1_1_1 + GainBD1_1_1;
26
	Sum2_1 = 0.0 + GainAC2_1_1 + GainBD2_1_1;
27
	Outport1_1 = Sum2_1;
28
tel
29
30
(*
31
Original block name: flattening_1_test_PP/Subsystem/SubSub1
32
*)
33
node  SubSub1_68_019(In1_1 : real;
34
	In3_1 : real;
35
	__time_step : real;
36
	__nb_step : int;)
37
returns(Out1_1 : real;
38
	Out2_1 : real;);
39
var Sum_1 : real;
40
	Sum1_1 : real;
41
	TransferFcn_pp_1 : real;
42
let
43
	Sum_1 = 0.0 + In1_1 - TransferFcn_pp_1;
44
	Sum1_1 = 0.0 + In1_1;
45
	TransferFcn_pp_1 = TransferFcn_pp_74_018(In3_1, __time_step, __nb_step);
46
	Out1_1 = Sum_1;
47
	Out2_1 = Sum1_1;
48
tel
49
50
(*
51
Original block name: flattening_1_test_PP/Subsystem
52
*)
53
node  Subsystem_64_020(SubIn1_1 : real;
54
	SubIn3_1 : real;
55
	__time_step : real;
56
	__nb_step : int;)
57
returns(SubOut1_1 : real;
58
	SubOut2_1 : real;);
59
var Gain_1 : real;
60
	SubSub1_1 : real;
61
	SubSub1_2 : real;
62
let
63
	Gain_1 = (SubIn1_1 * 0.500000000000000);
64
	(SubSub1_1, SubSub1_2) = SubSub1_68_019(Gain_1, SubIn3_1, __time_step, __nb_step);
65
	SubOut1_1 = SubSub1_1;
66
	SubOut2_1 = SubSub1_2;
67
tel
68
69
(*
70
Original block name: flattening_1_test_PP
71
*)
72
node  flattening_1_test_PP(In1_1 : real;
73
	In3_1 : real;)
74
returns(Out1_1 : real;
75
	Out2_1 : real;);
76
var Subsystem_1 : real;
77
	Subsystem_2 : real;
78
	__time_step : real;
79
	__nb_step : int;
80
let
81
	(Subsystem_1, Subsystem_2) = Subsystem_64_020(In1_1, In3_1, __time_step, __nb_step);
82
	Out1_1 = Subsystem_1;
83
	Out2_1 = Subsystem_2;
84
	__time_step = (0.0 -> ((pre __time_step) + 0.200000000000000));
85
	__nb_step = (0 -> ((pre __nb_step) + 1));
86
tel