- Download source files from GIT
- Configure conda environment using:
conda env create -f CondaEnv.yml - Activate conda environment using:
conda activate ElectricField - Edit the server.config file if not using UoN clusters.
- Run script using:
python SphericalWebSRV.py
(If on mac, also open a browser window and type 127.0.0.1:8050) - Edit user variables
- Run Calculation
- Run Interpolation
- Run Visualisation
- Ensure single calculations are run on both systems to be compared
- Ensure the same charge points are used (ChargeP and ChargeN)
- Set DATASET1 as the folder with coordinates to be visualised and initial charge data
- Set DATASET2 as the folder with the comparison charge data
- Set SAVE LOCATION as the folder to save interpolation cache file. (Usually the parent directory)
- Run Visualisation (uses the same visualisation parameters from initial visualisation)
Install Jupyter Notebook if you havent already Code is dependant on conda packages: numpy, plotly, dash, os, subprocess, time, tqdm.
For cluster/server calculations, passwordless SSH is required so that python can communicate with the slurm submit node.
If on the University of Nottingham network, a version of the visualization may be running on duip76109.nottingham.ac.uk:8050 however this is not always true.
- Create a working directory on your local machine and your server
- Place your coordinate file (.xyz) in your working directory and decide on how it should be centered.
- Open the Jupyter Notebook called "Spherical.ipynb" and set all variables/parameters
- Run the full script using the run all command
- Load up the visualization using the links printed
Create a ssh tunnel to the port 8080 on the machine
{ssh -N -L 8080:localhost:8080 XXX@YYYY.nottingham.ac.uk}
In a new terminal, run jupyter notebook from the folder containing the notebook
{jupyter notebook --no-browser --port=8080}
On your browser on your local machine, connect to the notebook through the link:
{localhost:8080/notebooks}
To run the visualisation, you also need to tunnel to port 8050 on the machine:
{ssh -N -L 8080:localhost:8050 XXX@YYYY.nottingham.ac.uk}