An open API service indexing awesome lists of open source software.

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

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.