SPARC is a web based GRRT code designed for simulating and visualizing accurate, physically-based simulations of gravitational lensing and other relativistic effects.
To install SPARC, follow these steps:
- Clone the repository:
git clone https://github.com/cadenmarinozzi/SPARC.git
cd SPARC- Install the dependencies:
npm install- Configure your simulation
Edit the configuration files in the src/config directory to set up your simulation parameters.
- Start the reload watcher and server:
npm run watch & npm run dev- After the simulation is finished, download the frames and convert the output images to a video if desired:
node scripts/imagesToVideo.js <path_to_downloaded_frames> <output_video_path> <framerate>