In this project, we develop a code to calculate the critical length
The following code is written in JULIA.
In this code it is possible to see how we develop the study of
Starting from the PDE:
we can postulate a solution of the form:
In this way we have to solve two ODEs:
and the solutions are:
having imposed the boundary conditions at
In the code it is possible to see how we develop the study of
In this code we discretize the spatial components and differential operator as:
allowing us to rewrite the PDE as
In the code it is possible to see how we develop the study of
We just adapt the the I method, with the calculation of the ODE, generalizing it to 3D. Starting from the PDE:
we can postulate a solution of the form:
In this way we have to solve four ODEs:
with
Moreover, since the
These libraries are required to run the code correctly:
- Plots
- DifferentialEquations:ODEProblem,solve
- ForwardDiff:derivative
- DiffEqOperators: CentereDifference, Dirichlet0BC
- NumericalIntegration: integrate
- Einsum
- LinearAlgebra:eigen
- Statistics: mean
Graham Griffiths. Neutron diffusion. 02 2018. URL: (https://www.researchgate.net/publication/323035158_Neutron_diffusion).