Follow the steps below to set up and run EMSES on Kyoto University’s supercomputer camphor.
Goal: Connect to the supercomputer remotely from VSCode.
Launch VSCode and install the Remote-SSH extension

Log in to Kyoto University’s supercomputer camphor

Open a TERMINAL

Goal: Secure storage space, install dependencies, and set up EMSES.
# Secure storage space
mkdir /LARGE0/gr20001/$USER
ln -s /LARGE0/gr20001/$USER ~/large0
# Add environment variables to .bashrc
grep -qxF 'module load intel-python' ~/.bashrc || echo 'module load intel-python' >> ~/.bashrc
grep -qxF 'export PATH="$PATH:$HOME/.local/bin"' ~/.bashrc || echo 'export PATH="$PATH:$HOME/.local/bin"' >> ~/.bashrc
exec $SHELL -l
# Install tutorial repository
mkdir ~/large0/Github
cd ~/large0/Github
git clone https://github.com/CS12-Laboratory/EMSES-tutorials.git
cd EMSES-tutorials
pip install -r requirements.txt # includes: git+https://github.com/CS12-Laboratory/MPIEMSES3D.git
# Open in VSCode
code --reuse-window ~/large0/Github/EMSES-tutorials
Goal: Set up executable files and submit jobs.
emses-cp dshield0/ # = cpem dshield0/
emses-cp dshield1/
emses-cp dshield2/
dshield0 directory:cd ~/large0/Github/EMSES-tutorials/dshield0
mysbatch job.sh
※ mysbatch: A custom command (from camptools) that reads nodes(:) from plasma.inp, sets the process count in job.sh, and then runs sbatch.
Check job status:
qs # job status
squeue # job list
qgroup # available resources
latestjob # tail the latest job log
Cancel job: scancel <job-id>
Standard output: stdout.****.log
Standard error: stderr.****.log
squeue, the job is finished.stdout/stderr logs.Method 1: Generate PNG/GIF with .mypython/plot.py
Example: phisp_2d_xy.png

Method 2: Use Jupyter Notebook (dshield0/plot_example.ipynb)
Python interpreter setup
Example using venv:
cd ~/large0
/usr/bin/python3.11 -m venv .venv
# reinstall
~/large0/.venv/bin/python -m pip install -r ~/large0/Github/EMSES-tutorials/requirements.txt
~/large0/.venv/bin/python -m pip install -U emout
Then select ~/large0/.venv/bin/python in VSCode.
Or specify camphor’s Intel-Python:
/opt/system/app/intelpython/2024.2.0/bin/python

References
Extend runtime:
Change nstep=100 in dshield0/plasma.inp to a larger value.
Run other setups:
Check plasma.inp in dshield1 / dshield2 and compare results.
Visualization and discussion:
Analyze outputs as with dshield0.
Q1. What does the potential distribution look like in ds0? Q2. What changes occur in ds1? Q3. How do electrons and ions behave in ds1? Q4. How does ds2 differ? Q5. What is the effect of changing temperature?
dshield0–2.ds0, emout does not work if wp=0.0d0. Set wp=1.0d0 (or similar) in plasma.inp.If execution fails, consult M1 seniors first.
When asking your professor, include:
Minimum outputs to check: electron density (nd1p), ion density (nd2p), potential distribution (phisp).
Discuss results among B4 members and share insights in the next tutorial.
Do you want me to also polish this into a shorter “quick start” handout (like one page with only the essential steps), or keep it as a full manual style?