ce-demo

Computational Exploratory demo

In this web page there are some exercises proposed to check the first draw of the Computational Exploratory. In order to ease this demo and avoid excessive configuration the Computational Exploratory is distributed in an Ubuntu Virtual Machine.
The user is ce and its password also ce.

Exercise 0. Starting virtual machine

  1. Run Virtual Box and launch Computational Exploratory (CE)
  2. Once the Opertive system has started launch Simflowny system by clicking on the desktop Simflowny icon. It will start all applications of the platform.
  3. Remember not to close the terminal, it can be minimized for convenience. When the exercises are finished, the platform should be stopped writing stop 0 in the terminal.
  4. Setting the keyboard layout to your language.
    1. In the upper bar you will find a keyboard icon the word “en” (english) on its side. The default layout is english, you can change it by pressing on the icon and selecting one of theĀ  other layouts.
    2. Due to OS limitations there can only be 4 layouts simultaneously set. If your layout is not present you can add it with the following instructions:
      1. Press keyboard icon and select Keyboard Layaout Settings…
      2. Select one of the present layouts and remove it with the button.
      3. Press + button to add a new layout.
      4. Write you language in english to search it and double-click on it to select it.
      5. Close the window.
      6. Now it is available to be selected in the keyboard icon.

Exercise 1. Brusselator

In this exercise a first superficial approximation to Simflowny is proposed. During the exercise, you will review the brusselator model, discretize it and generate a C++ code ready to simulate. The following step will be to run the simulation using an example parameters file and check its state. At the end of the simulation, one way to review the results is proposed.

  1. Launch CE interface
    1. Open a terminal
    2. Move to CE: cd CE
    3. Execute it: python ce.py
  2. Choose Brusselator, option 1. (Remember to have completed Exercise 0 in order to have simflowny system running)
  3. A web browser will be opened with Simflowny graphical interface. Log in the system.
  4. Visualization of the model.
    1. Go to System Definitions/List Model/Canonical from the upper menu, select Brusselator and click on edit button to view/modify the model. A summary of the model will be shown.
  5. Visualization of the problem.
    1. Go to System Definitions/List Problems, select Brusselator problem and click on edit button to view/modify the problem. A summary of the problem will be shown.
  6. Discretization of the problem.
    1. Go to Discrete problems/New discrete problem. The discretization menu will be opened.
    2. Select Brusselator problem and click continue.
    3. The discretization has to be set up.
      1. Click Domain segment.
      2. Browse to Basic schemas, select RK3 + CD 4th (PT) schema and press ok.
      3. This schema does not have any parameter, then press ok.
      4. Press Edit button on the Coordinate Discretization Rule section located under Segments. Browse to Coordinate discretization, select Cartesian and press ok.
      5. Click continue to end the set up.
    4. A summary of the discretization is shown before starting the process. Press discretize button to proceed.
    5. When the discretization has ended, a summary of the new discretized problem is opened.
      1. You could change the name, author, version and date.
      2. Save the new discretized problem pressing the green icon under the authorship information.
  7. Code generation.
    1. Once the discretized problem is saved go to Code/Generate code, select the discretized problem and press continue.
    2. In the Code generation section choose Samrai as the platform and write any author and version.
    3. Launch the generation process.
  8. Compilation
    1. When the generation ends the files created are shown in the Generated files box.
    2. Click compile to start the compilation.
    3. Wait until it finishes with the message All Done!
  9. Launch the simulation
    1. To launch the simulation go to Code Simulation tab.
    2. Open file brusselator-params.input from /home/ce/CE/parameters and copy the content to Parameter file section in Simflowny.
    3. Press simulate to start the simulation.
  10. Check simulation status
    1. After launching the simulation, the simulations manager is shown. There you can check the status of all the simulations.
  11. Visualization of the results
    1. Open Visit, whose icon is on the left gnome-power-statistics.
    2. Now you should open the results from the simulation and configure all the quantities to be ploted. The purpose of this exercise is not to teach how to use Visit, for this reason a configured session has been stored with the results of a previous simulation. To restore the session go to File/Restore session, browse to /home/ce/CE/parameters andĀ  select brusselator.session.
    3. You can navigate through the time steps with the Time command
      buttons.

Exercise 2. Collective motion

In this exercise you will launch some metrics for a collective motion problem. The computational exploratory will generate code, compile, run and apply entropy and correlation metrics.

  1. Launch CE interface
    1. Open a terminal
    2. Move to CE: cd CE
    3. Execute it: python ce.py
  2. Choose Collective motion, option 2. (Remember to have completed Exercise 0 in order to have simflowny system running)
    1. It will generate and compile the problem from the XML in /home/ce/CE/problem_models.
  3. Choose to perform some metrics, option 2.
    1. It will open an example parameter file with the configuration for this exercise. You could change the problem parameters and metrics. For the purpose of this exercise the file will be left as is.
  4. Press any button to perform the simulation and metrics after closing the parameter file.
  5. Once the metrics are finished the CE show a message.
  6. The results can be found at /home/ce/CE as the file workflow_output.hdf5.
  7. To visualize the results you should use HDFviewer. Due to some bug in the viewer, double-clicking the file opens the program but does not load the result, you should open it manually.

Exercise 3. Ising on graph

In this exercise you will launch some metrics for ising on a graph. The computational exploratory will generate and compile the part of ising going forward, simulate it and taking the result as the input for the ising backward simulation. The generation, compilation and simulation for the ising backward is also performed, and the metrics are applied on the results of parallel simulations results.

  1. Launch CE interface
    1. Open a terminal
    2. Move to CE: cd CE
    3. Execute it: python ce.py
  2. Choose Ising graph, option 3.
    1. It will generate and compile the problem from the XML in /home/ce/CE/problem_models.
  3. Choose to perform some metrics, option 2.
    1. It will open an example parameter file with the configuration for this exercise. You could change the problem parameters and metrics. For the purpose of this exercise the file will be left as is.
  4. Press any button to perform the simulation and metrics after closing the parameter file.
  5. Once the metrics are finished the CE show a graphic with results.
  6. The results can be found at /home/ce/CE as the file workflow_output.hdf5.
  7. To visualize the results you should use HDFviewer. Due to some bug in the viewer, double-clicking the file opens the program but does not load the result, you should open it manually.

Exercise 4. Ising on lattice

In this exercise you will run a simulation for ising on lattice. The computational exploratory will generate, compile and simulate ising.

  1. Launch CE interface
    1. Open a terminal
    2. Move to CE: cd CE
    3. Execute it: python ce.py
  2. Choose Ising lattice, option 4.
    1. It will generate and compile the problem from the XML in /home/ce/CE/problem_models.
  3. Choose Running a simulation, option 1.
    1. It will open an example parameter file with the configuration for this exercise. You could change the problem parameters. For the purpose of this exercise the file will be left as is.
  4. Press any button to perform the simulation after closing the parameter file.
  5. The results can be found at /home/ce/CE/outputDir_ising_lattice.
  6. To visualize the results you should use Visit. You should open the dumps.visit file in the results folder and plot some variables.

Exercise 5. Cash and goods

In this exercise you will run a simulation for cash and goods problem. The computational exploratory will generate, compile and simulate cash and goods.

  1. Launch CE interface
    1. Open a terminal
    2. Move to CE: cd CE
    3. Execute it: python ce.py
  2. Choose Cash and goods, option 5.
    1. It will generate and compile the problem from the XML in /home/ce/CE/problem_models.
  3. Choose Running a simulation, option 1.
    1. It will open an example parameter file with the configuration for this exercise.
    2. Change the following lines:
      1. hdf5_output = false;
      2. dot_output = true;
      3. output_dump_interval = 50;
  4. Press any button to perform the simulation after closing the parameter file.
  5. The results can be found at /home/ce/CE/outputDir_cash_and_goods.
  6. The results are text files with dot format. To visualize the content launch Gephi.
    1. Press CTRL+O to open the dialog.
    2. Browse to the result folder and select any of the results. A summary of the graph is shown. Pres ok to continue. On the bar under the graph, press the right bottom with a tool icon.
    3. Then unselect Label, select cash and press OK.
    4. Press the black T button on the lower bar and the values of cash will be shown.