Instructions for running CORHEL-AMCG on AWS

All activities on the AWS GPU instance should be done as the "psi" user. To become "psi", use the command: sudo -u psi -s

The PSI CORHEL environment will automatically be loaded when becoming the "psi" user (through the script /data/psi/load_psi_gpu_env that is sourced in the "psi" user's .bashrc)

In the following instructions, [NEXT] = Click the "Next" button

  1. Load interface web site in browser:

    https://corhel-dev.ccmc.mysmce.com/thermo_webapps/thermo_designer

    Enter name, e-mail, and daily session number (use 1)

    [NEXT]

  2. On Step Overview page, click "Enter Step 1"

  3. In this guide, we are assuming there is no pre-existing MHD background run for the event under study, so on the "Map Selection" page, select "Create a new map..."

  4. Select/enter date and time of event, then select the map source (HMI is default)

    [NEXT]

  5. Select the event location (active region (AR)) by drawing a box around it

    [NEXT]

  6. ============= ZERO BETA FLUX ROPES =================================

  7. In "Step Overview", now click "Enter Step 2"
  8. Click "Active Region 1"
  9. After a brief calculation, the polarity inversion lines (PILs) for the AR should be shown
  10. Select a point at the desired start location of the PIL, then select a 2nd point at the desired end point. [NEXT]
  11. Use the tool tips as a guide to design/construct the RBSL flux rope (This is a long step) [NEXT]
  12. Now you are back to the page from step (7) but the "Active Region 1" should be green. [NEXT]
  13. The "Zero-Beta Simulation" page will automatically start generating the run tar file for download. Wait for it to complete (the "Download Zero-Beta Archive" button will appear).
  14. Once the run tar ball is on the AWS GPU instance,

    Processes:
    GPU GI ID CI ID PID Type Process name GPU Memory Usage
    0 N/A N/A 21795 C .../tools/ps_fortran/bin/mas 910MiB
    1 N/A N/A 21796 C .../tools/ps_fortran/bin/mas 910MiB
    2 N/A N/A 21797 C .../tools/ps_fortran/bin/mas 908MiB
    3 N/A N/A 21798 C .../tools/ps_fortran/bin/mas 908MiB
    4 N/A N/A 21799 C .../tools/ps_fortran/bin/mas 908MiB
    5 N/A N/A 21800 C .../tools/ps_fortran/bin/mas 908MiB
    6 N/A N/A 21801 C .../tools/ps_fortran/bin/mas 904MiB
    7 N/A N/A 21802 C .../tools/ps_fortran/bin/mas 904MiB
  15. When the run is done, the <ARCHIVE_NAME>_zb.log file should contain something like:
    CORHEL run completed!
    Submission directory:
    /data/psi/corhel/run/ut202201292332-custom/caplanr_at_predsci.com_20230208_10_zb_multi_launch
    
    Simulation run directory:
    /data/psi/corhel/run/ut202201292332-custom/caplanr_at_predsci.com_20230208_10_zb_multi
    One could use the line "CORHEL run completed!" as a way of detecting when the run is completed, or one can check the process "corunpy" is complete.
  16. The zero beta run report tar ball is located in the "Simulation run directory" listed in the log file. Copy the report tar ball to a location on the /share drive (possibly renaming it as needed). For example:
    cp /data/psi/corhel/run/ut202201292332-custom/caplanr_at_predsci.com_20230208_10_zb_multi/caplanr_at_predsci.com_20230208_10_zb_multi_zero_beta_report.tar.gz /share/psi/corhel_runs/
    This file needs to be unpacked and the html accessible for the user to view through the CCMC website.
  17. Pack up the full simulation run directory into a tar file, and transfer it to S3.
  18. Clean up the CORHEL run folder on /data (delete all folders in /data/psi/corhel/run/*)
  19. After viewing the report, the user (likely) may want to change the rope and try again.
  20. As before, at the end of step 2, download/store the new run tar ball, and download the new saveset tar ball (which the user should receive).
  21. As before, run the new zero-beta simulation on the AWS GPU instance, transfer the report tar file to /share, provide the report to the user, save the simulation run data to S3, and then clean up the CORHEL run folder.
  22. Repeat steps (18)-(22) as often as the user desires.
  23. ============= THERMODYNAMIC BACKGROUND =================================