GithubHelp home page GithubHelp logo

martinfoell / colorflow-to-feynman Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 299 KB

A C++ program for converting color flows to Feynman diagrams

License: MIT License

C++ 94.52% Makefile 3.42% TeX 2.06%
color-flow feynman-diagrams particle-physics

colorflow-to-feynman's Introduction

colorflow-to-feyman: Convert from color flows to Feynman diagram in QCD

alt text|

Description

In Quantum Chromo Dynamics (QCD) in particle physics the color charges for the quark/anti-quarks and gluons can be put together in what is called color flows as shown to the left in the picture above. The purpose of this program is to convert these color flows to a Feynman diagram as shown to to right in the picture above. The details of the method used to convert between the color flows and the Feynman diagram can be found in chapter 6 here.

Setup

Here is a short guide for how to set up the program and run it with the color flows in the example in example.txt.

install

https://github.com/martinfoell/colorflow-to-feynman.git

build (in the same folder as Makefile)

make

run

cd bin
./main

Example

The input format for the color flows to the program are stored in a .txt file. The input example.txt is given below and corresponds to the example in the picture above.

in = q1, Q2
inter = g
out = q3, Q4
cf1 = q1, g, Q2
cf2 = Q4, g, q3
Input variable Description Value Figure 1
in incomming particles q1, Q2 $q_1$, $\overline{q}_2$
inter intermediate particles g $g$
out outgiong particles q3, Q4 $q_3$, $\overline{q}_4$
cf1 color flow 1 q1, g, Q2 $q_1 \rightarrow g \rightarrow \overline{q}_2$
cf2 color flow 2 Q4, g, q3 $\overline{q}_4 \rightarrow g \rightarrow q_3$
Input particle Description
q quark
Q anti-quark
g gluon

colorflow-to-feynman's People

Contributors

martinfoell 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.