Creating a point kinetics solver with thermal feedback involves solving the point reactor kinetics equations (PRKE) coupled with a thermal feedback model. This is a simplified model used in nuclear reactor dynamics to simulate how the neutron population and reactor power evolve over time, especially in response to changes in reactivity due to temperature.
Below is a basic Python implementation of a point kinetics solver with thermal feedback. This example uses the one-group delayed neutron approximation and a simple linear temperature feedback model.
🔧 Assumptions:
One delayed neutron group
Constant heat capacity
Linear reactivity feedback: ρ(T) = ρ₀ - α(T - T₀)
No external reactivity insertion after initial condition
Euler method for time integration (can be improved with more advanced solvers)
🧮 Equations:
Point Kinetics Equations:
dP/dt = [(ρ(t) - β)/Λ] * P + λ * C
dC/dt = (β/Λ) * P - λ * C
Thermal Feedback:
dT/dt = (P - P₀) / (m * Cp)
ρ(t) = ρ₀ - α * (T - T₀)
🧪 Python Code:
python
import numpy as np
import matplotlib.pyplot as plt
# Constants
beta = 0.0065 # Delayed neutron fraction
Lambda = 1e-5 # Neutron generation time (s)
lambda_d = 0.08 # Decay constant of delayed neutron precursors (1/s)
alpha = 1e-5 # Reactivity temperature coefficient (delta_rho / K)
Cp = 500.0 # Heat capacity (J/kg-K)
mass = 1000.0 # Mass of core (kg)
T0 = 300.0 # Initial temperature (K)
rho0 = 0.002 # Initial reactivity (step insertion)
P0 = 100.0 # Initial power (arbitrary units)
# Time settings
t_end = 10.0 # seconds
dt = 0.01 # time step
n_steps = int(t_end / dt)
# Arrays to store results
time = np.linspace(0, t_end, n_steps)
P = np.zeros(n_steps)
C = np.zeros(n_steps)
T = np.zeros(n_steps)
rho = np.zeros(n_steps)
# Initial conditions
P[0] = P0
C[0] = (beta / (lambda_d * Lambda)) * P0
T[0] = T0
rho[0] = rho0
# Time integration loop
for i in range(1, n_steps):
# Update reactivity with thermal feedback
rho[i] = rho0 - alpha * (T[i-1] - T0)
# Point kinetics equations (Euler method)
dP = ((rho[i] - beta) / Lambda) * P[i-1] + lambda_d * C[i-1]
dC = (beta / Lambda) * P[i-1] - lambda_d * C[i-1]
dT = (P[i-1] - P0) / (mass * Cp)
P[i] = P[i-1] + dP * dt
C[i] = C[i-1] + dC * dt
T[i] = T[i-1] + dT * dt
# Plot results
plt.figure(figsize=(12, 8))
plt.subplot(3, 1, 1)
plt.plot(time, P)
plt.ylabel('Power (a.u.)')
plt.title('Point Kinetics with Thermal Feedback')
plt.subplot(3, 1, 2)
plt.plot(time, T)
plt.ylabel('Temperature (K)')
plt.subplot(3, 1, 3)
plt.plot(time, rho)
plt.ylabel('Reactivity (Δk/k)')
plt.xlabel('Time (s)')
plt.tight_layout()
plt.show()
📈 Output:
This script will generate three plots:
Reactor power over time
Core temperature over time
Reactivity over time
You should see that the power initially increases due to the positive reactivity insertion, but then stabilizes or decreases as the temperature rises and introduces negative feedback.
🧠 Notes:
This is a simplified model. Real reactors use multiple delayed neutron groups and more complex thermal-hydraulic feedback.
For better accuracy, consider using higher-order integration methods (e.g., Runge-Kutta).
You can extend this model to include fuel and coolant temperature separately, Doppler feedback, or control rod movement.
Let me know if you'd like a version with multiple delayed neutron groups or more advanced feedback!
User
Add a control rod gradual insertion
Assistant
To add a gradual control rod insertion to the point kinetics solver with thermal feedback, we need to modify the reactivity term to include a time-dependent control rod insertion function.