Fill out the DRC mode set with ctrl_shutdown (u = -5*beta), ctrl_scram (u = -8*beta), and ctrl_heatup (feedback-linearizing P on ramped T_avg reference, saturated u, no integrator). Add ctrl_operation_lqr as a full-state-feedback counterpart to ctrl_operation — K cached, closed-loop essentially perfect under the 100%->80% Q_sg step where plain P has ~5F overshoot. Add pke_linearize for numerical (A, B, B_w) Jacobians at any operating point; test_linearize confirms ~4e-4 rel err vs nonlinear sim for a 5% Q_sg step. Extend pke_solver with an optional x0 argument so each mode can start from a plausible IC. main_mode_sweep.m exercises all five modes back-to-back and saves the 4-panel plots. CLAUDE.md updated with model-validity-range note (trust region is ~+/-50C around operating point; true cold shutdown is out of scope for the linear feedback coefficients). Hacker-Split: build out control layer end-to-end for reachability. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
21 lines
746 B
Matlab
21 lines
746 B
Matlab
function u = ctrl_scram(t, x, plant, ref)
|
|
% CTRL_SCRAM Emergency shutdown: max negative rod worth inserted.
|
|
%
|
|
% Applies the full scram rod worth instantaneously. In a real plant the
|
|
% rods free-fall in ~2-3 seconds; this idealized version steps to the
|
|
% final worth at t = t_scram. Good enough for first-pass reachability,
|
|
% conservative for safety arguments (faster insertion => less excursion).
|
|
%
|
|
% u = -8 * beta (~8 $, in the typical 8-10 $ regulatory band)
|
|
%
|
|
% Same feedback-linearization comment as ctrl_shutdown: this dominates
|
|
% any plausible feedback the reactor can produce en route from any
|
|
% power/temperature state.
|
|
%
|
|
% Inputs:
|
|
% t, x, plant, ref - standard signature; all unused here.
|
|
|
|
u = -8 * plant.beta;
|
|
|
|
end
|