-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWATEprimaryThrustReverser.int
More file actions
48 lines (36 loc) · 932 Bytes
/
WATEprimaryThrustReverser.int
File metadata and controls
48 lines (36 loc) · 932 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#ifndef _WATEPRIMARYTHRUSTREVERSER_
#define _WATEPRIMARYTHRUSTREVERSER_
extern string parent.parent.componentRef;
/**
*
*****************************************************/
class WATEprimaryThrustReverser extends WATEthrustReverserBase
{
string aeroCompRef {
ptrType = "ElementBase";
hide(2);
}
real des_Wc;
/**
*
*****************************************************/
void calculate() {
real pimax = max_PtIn.val;
real a1 = 1.0036*pimax/14.696 - .5054;
if (a1 <= 1.) { a1=1.; }
#ifdef WATE_LEGACY
real wc = aeroCompRef->Fl_I.Wc;
weight = (.52631*wc + 423.)*a1*0.852;
#else
weight = (.52631*des_Wc + 423.)*a1*0.852;
#endif
}
/**
*
*****************************************************/
void saveMechDesignData() {
aeroCompRef = parent.parent.parent.componentRef;
des_Wc = aeroCompRef->Fl_I.Wc;
}
}
#endif