-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdiamondsetup.m
190 lines (141 loc) · 4.24 KB
/
diamondsetup.m
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
function diamondsetup
%
% diamondsetup
%
% Sets up the diamond splash screen and runs other setup routines
%
%
% Version SWD971030
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This matlab source code was originally %
% developed as part of "DIAMOND" at %
% Los Alamos National Laboratory. It may %
% be copied, modified, and distributed in %
% any form, provided: %
% a) This notice accompanies the files and %
% appears near the top of all source %
% code files. %
% b) No payment or commercial services are %
% received in exchange for the code. %
% %
% Original copyright is reserved by the %
% Regents of the University of California, %
% in addition to Scott W. Doebling, Phillip %
% J. Cornwell, Erik G. Straser, and Charles %
% R. Farrar. %
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%===================================
%% For the SPLASH SCREEN
%%===================================
global HANDLES pathname
HANDLES.hfspl = figure('numbertitle','off','name','DIAMOND: STARTUP',...
'menubar','none','resize','on','units','pixels','position',[150 20 700 500]);
haspl = axes('visible','off');
hspl(1) = text(0.5,0.8,'DIAMOND');
set(hspl(1),'fontname','times','fontsize',72,'Color','r','HorizontalAlignment','Center','Fontangle','italic','fontweight','bold')
hspl(7) = text(0.5,0.65,'Damage Identification and Modal Analysis of Data');
set(hspl(7),'horiz','center','fontsize',12,'fontname','times','fontangle','italic')
hspl(6) = text(0.5,0.575,'VERSION: SWDFINAL');
set(hspl(6),'HorizontalAlignment','Center','fontsize',10)
hspl(2) = text(0.5,0.45,'Created by Scott Doebling, Phil Cornwell, Erik Straser, Matt Bement, and Chuck Farrar');
set(hspl(2),'fontname','times','fontsize',12,'HorizontalAlignment','Center')
hspl(3) = text(0.5,0.35,'Created at Los Alamos National Laboratory');
set(hspl(3),'HorizontalAlignment','Center')
hspl(4) = text(0.5,0.30,'Under the Auspices of the US Department of Energy');
set(hspl(4),'HorizontalAlignment','Center')
hspl(5) = text(0.5,0.25,'Source code may be copied, modified and distributed subject to stated conditions');
set(hspl(5),'HorizontalAlignment','Center')
hspl(8) = text(0.5, 0.10, 'DIAMOND IS STARTING UP...');
set(hspl(8),'HorizontalAlignment','Center')
drawnow
hdmspl = uicontrol('style','pushbutton','string','START','visible','off',...
'units','normal',...
'position',[0.4 0.07 0.2 0.05],...
'callback',['delete(HANDLES.hfspl),',...
'set(HANDLES.hfigdmnd,''visible'',''on''),']);
HANDLES.hfigdmnd=figure( ...
'Name','Diamond - Modal Analysis', ...
'NumberTitle','off', ...
'Resize','on', ...
'units','normal',...
'visible','off',...
'Position',[0.05 0.05 0.9 0.9],...
'menubar','none',...
'closerequestfcn','errordlg(''Do not attempt to close DIAMOND windows improperly'')');
axes
set(gca,'Position',[0 0 1 1]);
axis off
%
% Define global variables
%
if isunix,
pathname='~';
else
pathname='C:';
end
%=======================================
% Set up initial menus
%=======================================
filemenu
modmenu
htmenu
%=======================================
% Set up DIAMOND buttons
%=======================================
% Modal Analysis
plotbtns
opshapebtns
ratpbtns
erabtns
eraconvsetup
figure(HANDLES.hfigdmnd)
set(HANDLES.hfigdmnd,'visible','off')
cebtns
anmodbtns
pdffbtns
% Damage ID
sembbtns
flexbtns
macbtns
% Model Updating
msebtns
mrptbtns
% Test simulation
simsysdefbtns
siminpdefbtns
simwindefbtns
simrundefbtns
simoutdefbtns
%
% Set up the plottools
%
plottool
%
% Set up the mode selection window
%
mdselwin
%
% Set up the monte carlo tool palette
%
mctool
%
% Set up the viewport figure and info figure
%
vpsetup
vpinfosetup
%
% Set up viewmodes
%
viewmodesetup
%
% Set up editgeom and editdof
%
editgeomsetup
makedofsetup
%
% SETUP IS COMPLETE -- READY TO START DIAMOND
%
set(hspl(8),'string','Diamond is Ready. Push the Button.')
set(hdmspl,'visible','on')
return