Skip to content

This app is for visualization GTC simulation code result on server.

License

Notifications You must be signed in to change notification settings

YangChun-Liu/GTC-Visualization

 
 

Repository files navigation

GTC-Visualization

This node app provides a simple way to inspect GTC(Gyrokinetic Toroidal Code) output data. Once deployed on the server, you can examine various plot generated from raw output data, without downloading any files.

Requirement

  • Node.js (>=v12.16.1)
  • npm (>=v6.13.4)

Quick start

  1. Clone from repository.
  2. mv .env_example .env and modifies it as you wish.
    • PORT is the port to which this app listening. Set a larger number to avoid conflicts.
    • HOST_DIR is the folder where this app will search gtc output files in.
  3. Set NODE_ENV to production (for example, EXPORT NODE_ENV=production in Linux).
  4. run
    npm install --production
    npm start

You can also, and I suggest to, use process manager or init system to keep app ALWAYS running. Note: npm install needs access to a npm repository. If your server do not have Internet access, you can run this command on your own computer, then upload the whole folder to server.

What's behind the scene

This app use express.js as server framework, and plot figures with the help of Plotly.js, which relies on MathJax to render expressions. Most, if not all figure types are from Huasheng Xie's Matlab program.

About

This app is for visualization GTC simulation code result on server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.3%
  • CSS 2.3%
  • Other 1.4%