GithubHelp home page GithubHelp logo

cohsh / feynman-diagram-generator Goto Github PK

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

A Generator for Self-Energy Feynman Diagrams

License: Boost Software License 1.0

CMake 2.49% Makefile 1.28% Shell 2.05% C++ 89.38% Python 4.80%
electron-phonon feynman-diagrams boost graphviz cpp

feynman-diagram-generator's Introduction

Feynman Diagram Generator

  • This project is a simple Feynman diagram generator written in C++ using the Boost Graph Library.
  • At the moment, only undirected diagrams corresponding to the one-electron self-energy with electron-phonon interactions can be output.

Prerequisites

Ensure you have the following installed on your system:

  • CMake (version 3.13 or higher)
  • A C++ compiler (e.g., g++, clang)
  • Boost library
  • Graphviz (for generating graphical output)

Install dependencies

Debian-based systems:

sudo apt update
sudo apt install cmake g++ libboost-all-dev graphviz

Arch Linux:

sudo pacman -S cmake boost graphviz

macOS (with Homebrew):

brew install cmake boost graphviz

Usage

  1. Clone the repository:
git clone [email protected]:cohsh/feynman-diagram-generator.git
cd feynman-diagram-generator
  1. Create a build directory and run CMake:
cmake -S . -B build
  1. Build the project:
make
  1. Run the executable ($n=1,2$ is the order of diagrams):
./generate_graph.sh n

This will generate dot/graph_*.dot and png/graph_*.png files.

feynman-diagram-generator's People

Contributors

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