Skip to content

Commit 17bc6d4

Browse files
committed
Re-sync fork with main repo updates.
2 parents a45d7c0 + ef51887 commit 17bc6d4

28 files changed

+224
-199
lines changed

Trunk/Install_TMATS.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ function Install_TMATS()
33

44
% TMATSver and date must remain in the listed form for the ver command to work
55
% properly.
6-
TMATSver = '1.1.3.34';
7-
TMATSdate = 'Jun-20-2017';
6+
TMATSver = '1.1.3.39';
7+
TMATSdate = 'Aug-28-2017';
88

99
error = 0;
1010
TMATSInstallmsg = 'Install T-MATS matlab toolbox? Note: Installation will add MATLAB paths and generate MEX files.';
-2.52 KB
Binary file not shown.

Trunk/TMATS_Examples/Example_GasTurbine_Dyn/Bus/setup_Bus.m

Lines changed: 0 additions & 11 deletions
This file was deleted.
Binary file not shown.

Trunk/TMATS_Examples/Example_GasTurbine_Dyn/GasTurbine_Dyn_Example_cleanup.m

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -25,26 +25,11 @@ function GasTurbine_Dyn_Example_cleanup(MWS)
2525

2626
% remove all of the directories that were added to the path
2727
Pth1 = strcat(top_level,pathOperator,'SimSetup');
28-
Pth2 = strcat(top_level,pathOperator,'External_Effectors');
29-
Pth3 = strcat(top_level,pathOperator,'Plants');
30-
Pth4 = strcat(top_level,pathOperator,'Bus');
28+
3129
perm1 = ~isempty(strfind(path,Pth1)); % determine if path is already defined
32-
perm2 = ~isempty(strfind(path,Pth2)); % determine if path is already defined
33-
perm3 = ~isempty(strfind(path,Pth3)); % determine if path is already defined
34-
perm4 = ~isempty(strfind(path,Pth4)); % determine if path is already defined
3530
if perm1
3631
eval(['rmpath ',Pth1])
3732
end
38-
if perm2
39-
eval(['rmpath ',Pth2])
40-
end
41-
if perm3
42-
eval(['rmpath ',Pth3])
43-
end
44-
if perm4
45-
eval(['rmpath ',Pth4])
46-
end
47-
4833
% end
4934
catch
5035
disp('Unable to remove T-MATS Dynamic Gas Turbine example directories from the path.')
Binary file not shown.

Trunk/TMATS_Examples/Example_GasTurbine_Dyn/GasTurbine_Dyn_setup_everything.m

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,6 @@
2525

2626
%--------- add necessary subdirectories to current MATLAB path
2727
eval(['addpath ',MWS.top_level,POp,'SimSetup'])
28-
eval(['addpath ',MWS.top_level,POp,'External_Effectors'])
29-
eval(['addpath ',MWS.top_level,POp,'Plants'])
30-
eval(['addpath ',MWS.top_level,POp,'Bus'])
3128

3229
%------ run various setup files to get tables & constants ---------
3330
MWS = setup_Solve_temp(MWS); % develops variables for the iterative solver
@@ -38,15 +35,13 @@
3835
MWS = setup_HPT(MWS); % develops variables for HPT
3936
MWS = setup_Burner(MWS); % develops variables for Burner
4037
MWS = setup_Duct(MWS); % develops variables for Duct
38+
MWS = setup_Inlet(MWS); % develops variables for Inlet
4139

4240
% if no output is specified, then just assign MWS to the workspace
4341
if(nargout == 0)
4442
assignin('base','MWS',MWS);
4543
end
4644

47-
%------ run setup files to define the bus ---------
48-
evalin('base','setup_Bus');
49-
5045
% open template
5146
open_system('GasTurbine_Dyn_Template.slx');
5247

Binary file not shown.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
TMATS.TDplot('GasTurbine_Dyn_Template');
2+
3+
% ---------------------------------------------------------------
4+
% plot remaining itemts that do not appear with the TDplot command
5+
6+
7+
fontname = 'Helvetica';
8+
set(0,'defaultaxesfontname',fontname);
9+
set(0,'defaulttextfontname',fontname);
10+
11+
% save figure settings
12+
Temp.set_old = get(0,'DefaultFigureWindowStyle');
13+
% set figure to place new figures into the same window
14+
set(0,'DefaultFigureWindowStyle','docked');
15+
16+
% plot stability margins
17+
Temp.f = figure;
18+
set(Temp.f,'name','StbMrgn','numbertitle','off');
19+
plot(C_Data.SMavail.Time,C_Data.SMavail.Data )
20+
ylabel('Stability Margin, %')
21+
xlabel('Time, s')
22+
23+
% plot additional engine items, thrust and control inputs
24+
Temp.f = figure;
25+
set(Temp.f,'name','Cntrl,Thrst','numbertitle','off');
26+
subplot(3,1,1)
27+
plot(Fnet.Time,Fnet.Data)
28+
ylabel('Fnet, lbf')
29+
subplot(3,1,2)
30+
plot(Wf.Time,Wf.Data)
31+
ylabel('Wf, pps')
32+
subplot(3,1,3)
33+
plot(SFC.Time,SFC.Data)
34+
ylabel('SFC, (lbm/hr)/lbf' )
35+
xlabel('Time, s')
36+
37+
%return settings
38+
set(0,'DefaultFigureWindowStyle',Temp.set_old);
39+
40+
clear Temp

Trunk/TMATS_Examples/Example_GasTurbine_Dyn/SimSetup/setup_HPC.m

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313
MWS.HPC.NcVec = [0.500 0.600 0.700 0.750 0.800 0.850 0.900 0.925...
14-
0.950 0.975 1.000 1.025 1.050 2];
14+
0.950 0.975 1.000 1.025 1.050];
1515

1616
MWS.HPC.RlineVec = [ 1.000 1.200 1.400 1.600 1.800 2.000...
1717
2.200 2.400 2.600 2.800 3.000 ];
@@ -43,8 +43,6 @@
4343
209.9986 210.5917 211.1029 211.5321 211.8825 212.1554...
4444
212.3516 212.4735 212.5220 212.5227 212.5227;
4545
216.6847 217.0279 217.3287 217.5860 217.8015 217.9767...
46-
218.1106 218.2041 218.2586 218.2739 218.2739 ;
47-
216.6847 217.0279 217.3287 217.5860 217.8015 217.9767...
4846
218.1106 218.2041 218.2586 218.2739 218.2739];
4947

5048
%========== eff = f(NcMap, RlineMap) ==================
@@ -73,8 +71,6 @@
7371
0.8350 0.8364 0.8371 0.8370 0.8362 0.8346 0.8318...
7472
0.8275 0.8217 0.8141 0.8049 ;
7573
0.8202 0.8203 0.8201 0.8195 0.8185 0.8171 0.8152...
76-
0.8124 0.8088 0.8045 0.7992 ;
77-
0.8202 0.8203 0.8201 0.8195 0.8185 0.8171 0.8152...
7874
0.8124 0.8088 0.8045 0.7992];
7975

8076
%========== PR = f(NcMap, RlineMap) ==================
@@ -103,27 +99,24 @@
10399
27.6439 27.0687 26.4522 25.7969 25.1052 24.3798...
104100
23.6033 22.7614 21.8600 20.9058 19.9057 ;
105101
28.4663 27.9667 27.4460 26.9054 26.3460 25.7690...
106-
25.1640 24.5225 23.8472 23.1399 22.4038 ;
107-
28.4663 27.9667 27.4460 26.9054 26.3460 25.7690...
108102
25.1640 24.5225 23.8472 23.1399 22.4038];
109103

110104
%------ scaler for corrected flow -------------
111-
MWS.HPC.s_Wc = 0.4953;
105+
MWS.HPC.s_Wc = 0.495342;
112106

113107
%--------- scaler for pressure ratio ----------
114-
MWS.HPC.s_PR = 0.8636;
108+
MWS.HPC.s_PR = 0.863640;
115109

116110
%--------- scaler for efficiency ----------
117-
MWS.HPC.s_eff = 0.9977;
111+
MWS.HPC.s_eff = 0.997653;
118112

119113
%--------- scaler for corrected HPC speed ----------
120-
MWS.HPC.s_Nc = 1/ 0.0001;
114+
MWS.HPC.s_Nc = 10000;
121115

122-
%--------- Define surge line ----------
116+
%--------- Define surge line ----------
123117
MWS.HPC.WcMapSurge = [22.7411 31.7548 46.1066 56.7268 70.1448 89.376...
124118
118.062 138.509 160.624 181.799 202.631 209.9986...
125119
216.684 218.2739];
126120
MWS.HPC.PRMapSurge =[2.4769 3.4633 5.0821 6.3490 8.0021...
127121
10.4899 14.4564 17.4426 20.7403 23.8298...
128-
26.6962 27.6439 28.4663 28.6619];
129-
122+
26.6962 27.6439 28.4663 28.6619];

0 commit comments

Comments
 (0)