https://github.com/bendudson/tokamak-draw
Draws figures of tokamak surfaces and field-lines using OpenGL / GLUT
https://github.com/bendudson/tokamak-draw
Last synced: about 2 months ago
JSON representation
Draws figures of tokamak surfaces and field-lines using OpenGL / GLUT
- Host: GitHub
- URL: https://github.com/bendudson/tokamak-draw
- Owner: bendudson
- License: gpl-2.0
- Created: 2012-05-23T09:49:19.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2012-05-23T09:50:15.000Z (about 14 years ago)
- Last Synced: 2025-02-27T18:31:07.738Z (over 1 year ago)
- Language: C
- Size: 215 KB
- Stars: 3
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: ChangeLog
- License: COPYING
Awesome Lists containing this project
README
Tokamak draw
============
A fairly simple OpenGL code for drawing toroidal surfaces, field-lines etc.
Useful mainly for producing diagrams for talks
Copyright (C) 2012 Ben Dudson University of York
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License or (at your option) any later version.
This program is distributed in the hope that it will be useful
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not write to the Free Software
Foundation Inc. 51 Franklin Street Fifth Floor Boston MA 02110-1301 USA.
Bundled code
============
Uses GL2PS by Christophe Geuzaine to produce PostScript output
Example
=======
To generate an example input file, run
$ tokamak_draw example
This will produce a file 'example.def', which defines a model to draw.
The syntax of this file is quite simple, and by changing this you
can specify different models to draw.
Just running without any arguments
$ tokamak_draw
will try to read from 'example.def', but you can specify a different file
to read as the first argument e.g:
$ tokamak_draw my_model.def
When viewing a model, pressing 'h' or '?' gives a list of commands.
Pressing 'q' or ESC exits.