Coder Social home page Coder Social logo

gustavlindberg99 / feynmandiagrameditor Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 341.63 MB

A program to easily draw Feynman diagrams

License: GNU General Public License v3.0

QMake 0.44% C++ 94.54% C 1.06% Inno Setup 3.96%
physics particle-physics feynman-diagrams

feynmandiagrameditor's Introduction

FeynmanDiagramEditor

FeynmanDiagramEditor is a program to easily draw Feynman diagrams.

Installation

Windows

On Windows, the recommended way of installing FeynmanDiagramEditor is to download and run this installation program. If you can't or don't want to use the installation program, you can also download this zip file containing the executable and its dependencies.

Linux

On Linux, you can download the binary file for FeynmanDiagramEditor here. Place it in whatever folder you want and run it.

Usage

Drawing particles

To draw a particle, use the button in the toolbar that looks like the line in a Feynman diagram for that particle. For example, to draw a fermion, use the button. Then once you've clicked the button, drag the cursor in the drawing area from where you want the line to start to where you want it to finish.

You can select a particle by clicking on it. You must click exactly on the line, close isn't enough. Once you've selected a particle, you can add a legend for it by filling out the text area in the toolbar. A very limited set of Latex commands are available:

  • All Greek letters
  • \pm
  • \ell
  • \bar
  • Subscript (_) and superscript (^) are supported as long as they're not nested
  • Escape sequences for spaces: \: and \;
  • Escape sequences for characters with a special meaning: \^, \_, \{, \} and \backslash

If you don't want the particle to have a label, leave the text area blank.

You can also add labels to vertices. To do so, you first need to draw the vertex explicitly by clicking on the button. Then add a label to the vertex just like you would for a particle.

You can delete the selected particle by pressing the Delete key.

Saving and exporting diagrams

You can save a Feynman diagram in the FDG format (a format specific for FeynmanDiagramEditor) by pressing CTRL+S. You open FDG files in FeynmanDiagramEditor by pressing CTRL+O.

If you want to use your Feynman diagram elsewhere, you can also export it in more common formats (SVG, PNG or PDF). To do this, press CTRL+E. FeynmanDiagramEditor can only create files in these formats, it can't open them. So if you think you might want to edit the Feynman diagram later, you should also save a copy of it in the FDG format.

feynmandiagrameditor's People

Contributors

gustavlindberg99 avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.