I need help please for Simulation of Xenon Oscillations in a Nuclear Reactor

  • Thread starter Thread starter TOULA
  • Start date Start date
  • Tags Tags
    Oscillation Xenon
Click For Summary

Discussion Overview

The discussion revolves around a numerical simulation project aimed at studying the oscillations of Xenon in a nuclear reactor, focusing on the time and spatial evolution of Xenon and Iodine concentrations, as well as neutron flux. The approach involves a diffusion model and seeks feedback on issues related to code stability and consistency of results.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested

Main Points Raised

  • The original poster describes their simulation approach, which includes a uniform grid for spatial modeling, initial concentration calculations, and the introduction of perturbations to the neutron flux.
  • They employ an implicit Newton-Raphson method for solving the time evolution of concentrations and neutron flux, with a focus on improving efficiency through a sparse solver.
  • A Jacobian matrix is constructed at each iteration to linearize the system of nonlinear equations governing the reactor's behavior.
  • The calculation of effective reactivity (Keff) is performed at each time step, taking into account the macroscopic cross section and neutron absorption by Xenon and Iodine.
  • Results are visualized through 3D plots that depict the evolution of concentrations and neutron flux over time and position within the reactor.
  • One participant questions the overall goal of the code and raises specific inquiries about the spatial modeling dimensions, Doppler effect considerations, core maturity assumptions, and neutron energy groupings.
  • Another participant mentions technical issues with Python libraries and expresses skepticism about a specific mathematical expression used in the code.

Areas of Agreement / Disagreement

Participants express varying levels of understanding and concern regarding the mathematical and technical aspects of the simulation. There is no consensus on the correctness of the mathematical expressions or the assumptions made in the modeling approach.

Contextual Notes

Participants highlight potential limitations related to compatibility issues with Python libraries, as well as the need for clarity on assumptions regarding the reactor core and the modeling approach.

TOULA
Messages
1
Reaction score
0
TL;DR
(TL;DR) : Simulation of Xenon oscillations in a nuclear reactor, studying iodine and xenon concentration evolution and neutron flux using a diffusion model. Seeking advice on issues with time step stability and inconsistent results in my code.
Hello everyone,

I am currently working on a numerical simulation project to study the oscillations of Xenon in a nuclear reactor as a function of time and space. My approach is based on a diffusion model coupled with the evolution of the concentrations of these fission products, and I am seeking feedback or advice. My code is currently not working as expected, my results are not consistent, and I quickly encounter errors when I increase my time step. I won't go into too much detail; I'd prefer to let you see it for yourselves.

Here are the main points of my code:

Reactor Modeling:
  • I divide the space into a uniform grid with a certain number of points (Nx = 500).
  • The initial concentrations of Iodine and Xenon are calculated based on their equilibrium state before any dynamic imbalance.
  • An initial perturbation is applied to the neutron flux to introduce a slight imbalance, and then I simulate its evolution over time.

Residues and Calculations:
  • I use an implicit Newton-Raphson method to solve the time evolution of the concentrations of Iodine and Xenon, as well as the neutron flux. Residues are calculated at each iteration and solved using a sparse solver to improve efficiency.

Jacobian Matrix:
  • A Jacobian matrix is constructed at each iteration to linearize the system of nonlinear equations that describe the reactor’s behavior.

Keff Calculation:
  • At each time step, I calculate the effective reactivity (Keff) considering the total macroscopic cross section and the absorption of neutrons by Xenon and Iodine. This reactivity is then used to adjust the neutron flux in the simulation.

Results Visualization:
  • At the end of each simulation, I generate 3D plots to observe the evolution of the concentrations of Iodine, Xenon, and the neutron flux over time and as a function of position in the reactor.
  • Additional visualizations allow me to track the temporal evolution of concentrations at the center of the reactor (x=L/2).

Please, I would really appreciate your help. I am open to any discussions. I am attaching my code for you to have a look at.

Thank you in advance for your feedback and suggestions!
 

Attachments

Last edited by a moderator:
Engineering news on Phys.org
Hi @TOULA,

Welcome to PhysicsForums. What is the goal for this code?
 
TOULA said:
TL;DR Summary: (TL;DR) : Simulation of Xenon oscillations in a nuclear reactor, studying iodine and xenon concentration evolution and neutron flux using a diffusion model. Seeking advice on issues with time step stability and inconsistent results in my code.

a numerical simulation project to study the oscillations of Xenon in a nuclear reactor as a function of time and space. My approach is based on a diffusion model coupled with the evolution of the concentrations of these fission products
Modeling Xe oscillations is a challenging problem - especially spatially in detail.

When one mentions spatially, is this 2D or 3D?

Is one accounting for Doppler effect in the fuel?

Does one assume a fresh core, or a mature (equilibrium) core?

Is one using two group, four group, or multi-group (> 4) neutron energy groups?
 
  • Like
Likes   Reactions: Alex A
I haven't been able to run it yet because my install of scipy and numpy appear to be not compatible with each other. I don't really do python.

It looks like a cool attempt to get an answer but some of the maths is...
Code:
Phi = Phi / keff
...a bit suspect.
 
  • Like
Likes   Reactions: berkeman
Alex A said:
It looks like a cool attempt to get an answer but some of the maths is...
Code:
Phi = Phi / keff
...a bit suspect.
Yeah, how does the compiler handle that? The behavior of a C compiler for example is well defined for that statement...
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
Replies
5
Views
957
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 43 ·
2
Replies
43
Views
10K
Replies
6
Views
7K
  • · Replies 26 ·
Replies
26
Views
6K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
800
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K