-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWATEforcedMixer.int
More file actions
77 lines (62 loc) · 1.8 KB
/
WATEforcedMixer.int
File metadata and controls
77 lines (62 loc) · 1.8 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#ifndef WATEFORCEDMIXER
#define WATEFORCEDMIXER
class WATEforcedMixer extends WATEmixerBase
{
//DESVAL(1)
real LDratioEffective {
value = 1.0;
IOstatus = "input"; units = "none";
description = "Effective length to diameter ratio for a mechanical mixer. Equal zero for CoAnnular mixer";
}
//DESVAL(2)
int numPassages {
value = 0; // need default ???
IOstatus = "input"; units = "none";
description = "Number of passages or lobes for hot or cold stream";
}
//DESVAL(15)
real s_Wt {
value = 1.0; IOstatus = "input"; units = "none";
description = "Scalar on calculated weight. If zero, no scaling done";
}
//DESVAL(17)
real thickness {
value = 0.1; IOstatus = "input"; units = "in";
description = "Mixer material thickness. Default = 0.1";
}
real length_in {
value = 0.0; IOstatus = "input"; units="in";
description = "if nonzero, length value will be set to this value";
}
WATEmaterial material { type = "A_286"; }
/*
*
********************************************************************/
void calcLength() {
//
// length can be an input, so if it is, don't calculate it
//
if(length_in == 0.0) {
length=LDratioEffective*sqrt(2.0*(A_i+A_o)/PI);
}
else {
length = length_in;
}
}
/*
*
********************************************************************/
void calcWeight() {
real density;
density = material.rho(530);
if(numPassages == 0) {
weight=PI*length*thickness*density*(Roo+Rmo+Rmo);
}
else {
weight = (3.927*Rmo+1.25*numPassages*(Roo-Rmi))*
length*thickness*density;
}
weight *= s_Wt;
}
}
#endif