The modeling of a tokamak plasma discharge, from first principles to a flight simulator. (1st April 2022)