File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,28 @@ version_upgrade{'2024.12.12'} = define() {
122122 variable_name_change('h_tank_in', 'h_tank');
123123 value('is_h_tank_fixed', 1, 'Set default tank sizing to fixed height');
124124 }
125+
126+ if(oldvalue('T_shutdown') == null)
127+ {
128+ message('We added the ability to set the field startup and shutdown temperatures, which were previously set internally by SAM.'
129+ ' The startup and shutdown temperatures will be set to the previous SAM-calculated value. ', 'warning');
130+
131+ T_loop_out = oldvalue('T_loop_out');
132+ T_loop_in = oldvalue('T_loop_in_des');
133+
134+ T_startup_min = T_loop_in;
135+ if(T_loop_out > 600)
136+ {
137+ T_startup_min = T_loop_out - 70.0;
138+ }
139+ T_startup = max(T_startup_min, 0.67 * T_loop_in + 0.33 * T_loop_out);
140+ T_shutdown = T_startup;
141+ value('T_startup', T_startup, 'Field startup temperature set using the previous SAM version method.');
142+ value('T_shutdown', T_shutdown, 'Field shutdown temperature set equal to startup.');
143+ }
144+
145+
146+
125147 }
126148
127149 // Linear Fresnel Model Changes
You can’t perform that action at this time.
0 commit comments