110 likes | 288 Views
Visualisation of Plasma in Fusion Devices Interactive European Grid 30 th May 2007. Visualization of Plasma in Fusion Devices Antecedents. Stellerator TJ-II (Madrid) Magnetic Confinement Investigate Plasma prop. National infrastructure Research CIEMAT. Schema of the TJ-II design.
E N D
Visualisation of Plasma in Fusion DevicesInteractive European Grid30th May 2007
1st year Review Interactive European Grid, Brussels 30th May 2007 Visualization of Plasma in Fusion DevicesAntecedents • Stellerator TJ-II (Madrid) • Magnetic Confinement • Investigate Plasma prop. • National infrastructure • Research CIEMAT Schema of the TJ-II design Visualization using Computational tools (OpenGL, Fox toolkit) Computing Visualization of TJ-II
1st year Review Interactive European Grid, Brussels 30th May 2007 Visualization of Plasma in Fusion DevicesComputational details • The application visualizes the behaviour of plasma inside a Fusion device • Runs are foreseen as a part of a so called Fusion Virtual Session • The plasma is analyzed as a many body system consisting of N particles • Inputs • Geometry of the vacuum chamber • Magnetic field in the environment • Initial number, position, direction, velocity of particles • Possibility of collisions between particles • Density of particles inside the device • Solves a set of Stochastic Differential Equations with Runge-Kutta method • Outputs • Trajectories of the particles • Average of relevant magnitudes: densities, temperatures...
1st year Review Interactive European Grid, Brussels 30th May 2007 Porting the application to int.eu.grid • Spread the calculation over hundreds of Worker Nodes on the Grid to increase the number of particles in the plasma. • Design of a Grid collaborative environment for fusion device designing and analysis. N particles distributed among P processes: MPI Particle trajectories are displayed graphically Interactive simulation steering
1st year Review Interactive European Grid, Brussels 30th May 2007 Global Schema MPI + Interactivity + Visualization
1st year Review Interactive European Grid, Brussels 30th May 2007 Application startup Input: Number of particles, Simulation properties (file), Magnetic field background Master process uses mpi-start to distribute input to Child processes P1 N particles divided among P Processors: N / P P0 P2 P0 Master P3 P1 SE, http, … P2 Magnetic field background P3
1st year Review Interactive European Grid, Brussels 30th May 2007 Fusion Application MPI Schema MPI job distribution P1 P0 MPI synchronization Every Process does own i/o P2 P3 Independent Processes Master P0 does renderization
1st year Review Interactive European Grid, Brussels 30th May 2007 The User interacts with the Master process for Visualization and Steering Migrating Desktop Application Plugin P0 Master Event Reception Event Interception Keyboard Mouse Java Gvid Decoder Gvid Encoder P1 P2 User Screen P3
1st year Review Interactive European Grid, Brussels 30th May 2007 JDL RAS port, RAS host Simulation +visualisation MP4 Decoder TCP Transport Socket Transport Java Video Player File Transport Event Encoder Pipe Transport TCP Transport MP4 Encoder Socket Transport remoteGlut File Transport Event Decoder Pipe Transport How the whole system works Roaming Access Server CrossBroker Job Submission Services Migrating Desktop gLogin Gatekeeper LRMS Logging & Bookkeeping WorkerNode Computing Element WorkerNode 010011000 Application GVid vtk App SE Simul. Res. 30GB
1st year Review Interactive European Grid, Brussels 30th May 2007 Java plugin for the Migrating Desktop pn=new MyPanel(); pn.setBorder(new MyTitledBorder("Simulation profile")); GridBagConstraints gbc1=new GridBagConstraints(); gbc1.insets=new Insets(2,2,2,2); gbc1.gridy=0; gbc1.anchor=GridBagConstraints.WEST; GridBagLayout gbl1=new GridBagLayout(); pn.setLayout(gbl1); String[] profile_labels={ "Electronic Temperature", "Ionic Temperature", "Density", "Electric Field", "Whole Profile"}; for(i=0;i<profile_labels.length;i++) { JLabel label=new JLabel(profile_labels[i]); gbc1.gridy=i; gbl1.setConstraints(label,gbc1); pn.add(label); }
1st year Review Interactive European Grid, Brussels 30th May 2007 Simulation steering on the Migrating Desktop