Current Neutron Flux: 1e14
Current Core Temperature: 1000 K
Current Conversion Efficiency: 33%
Time Elapsed: 0 s
Total Energy Released: 0 Joules
Converted Power Output: 0
Reactor Status: Stopped
Isotope | Quantity (kg) | Cross-Section (barns) | Energy Released (MeV) | Decay Products |
---|
This web application simulates the process of converting nuclear radiation into usable energy through isotope reactions.
The interface is built using HTML5, Bootstrap, and Chart.js for dynamic graph plotting of energy, power output, and core temperature over time.
The simulation is structured into sections for adjusting parameters (e.g., isotope composition, neutron flux, core temperature), simulation control (start/stop), and displaying simulation results. Charts show real-time energy output, power, and temperature changes during the simulation.
JavaScript functions handle the dynamic updates of simulation parameters and control the real-time simulation. Data is collected, and charts are updated at every step of the simulation.
The HTML file starts with a <!DOCTYPE html>
declaration and uses Bootstrap for layout and form controls. Various sliders and buttons are provided for user interaction, including neutron flux, core temperature, and conversion efficiency. A table displays isotope data, and Chart.js is used to show energy conversion charts.
Users can define the isotope composition and adjust key parameters:
initializeIsotopes()
: Initializes the isotope composition inputs and sets default values for U-235 and U-238.addIsotopeInput()
: Dynamically adds isotope composition input fields for the user to modify.startSimulation()
: Starts the simulation by setting the time, energy data, and power data to 0 and updating charts at each step.runSimulationStep()
: Calculates the reaction rate, total energy released, power output, and updates the core temperature for each step of the simulation.updateCharts()
: Dynamically updates the energy, power, and temperature charts during the simulation using Chart.js.The simulation calculates the total energy released during the reactions, the reactor's power output based on conversion efficiency, and the temperature changes. The key formulae include:
reactionRate = crossSection * neutronFlux * numAtoms
The code below represents the backbone of the simulation, including isotope composition, simulation parameters, and chart updates.
To run the simulation: