FeynMF

From:

Box

[5]:
from feynml import *
from feynml.topology import two_to_two as t2t
from pyfeyn2.auto import auto_default
from pyfeyn2.render.all import AllRender
[6]:
fd = t2t.v_channel("b","c_bar","b_bar","c")
fd.insert_vertex_loop(fd.vertices[0],"W+","t_bar","W-","t")
# Fix top arrow orientation in box
for t in filter(lambda t : t.name == "t", fd.propagators):
    t.conjugate()
ar = AllRender(auto_default(fd))
ar.render()
tikz:
../../_images/gallery_feynmf_feynmf_3_1.png
pyx:
../../_images/gallery_feynmf_feynmf_3_3.png
feynmp:
../../_images/gallery_feynmf_feynmf_3_5.png
feynman:
../../_images/gallery_feynmf_feynmf_3_7.png
dot:
../../_images/gallery_feynmf_feynmf_3_9.png
mermaid:
../../_images/gallery_feynmf_feynmf_3_11.svg
asciipdf:
../../_images/gallery_feynmf_feynmf_3_13.png
unicodepdf:
../../_images/gallery_feynmf_feynmf_3_15.png
madgraph:
madgraph failed:
Traceback (most recent call last):
  File "/home/apn/git/pyfeyn2/pyfeyn2/render/all.py", line 113, in render
    render(fd).render(dirpath + "/" + name + ".pdf", **dynarg)
    ~~~~~~^^^^
  File "/home/apn/git/pyfeyn2/pyfeyn2/render/ps/madgraph.py", line 77, in __init__
    self.set_feynman_diagram(fd)
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^
  File "/home/apn/git/pyfeyn2/pyfeyn2/render/ps/madgraph.py", line 131, in set_feynman_diagram
    self.set_src(feynman_to_ps(fd))
                 ~~~~~~~~~~~~~^^^^
  File "/home/apn/git/pyfeyn2/pyfeyn2/render/ps/madgraph.py", line 47, in feynman_to_ps
    line = type_map[style.getProperty("line").value]
           ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'boson'

2 to 4

[7]:
fd = t2t.s_channel("e-","e+","gamma","W+","W-")
l1 = fd.legs[2]
l2 = fd.legs[3]
fd.emission(l1,"c_bar",end="s")
ar = AllRender(auto_default(fd))
ar.render()
tikz:
../../_images/gallery_feynmf_feynmf_5_1.png
pyx:
../../_images/gallery_feynmf_feynmf_5_3.png
feynmp:
../../_images/gallery_feynmf_feynmf_5_5.png
feynman:
../../_images/gallery_feynmf_feynmf_5_7.png
dot:
../../_images/gallery_feynmf_feynmf_5_9.png
mermaid:
../../_images/gallery_feynmf_feynmf_5_11.svg
asciipdf:
../../_images/gallery_feynmf_feynmf_5_13.png
unicodepdf:
../../_images/gallery_feynmf_feynmf_5_15.png
madgraph:
madgraph failed:
Traceback (most recent call last):
  File "/home/apn/git/pyfeyn2/pyfeyn2/render/all.py", line 113, in render
    render(fd).render(dirpath + "/" + name + ".pdf", **dynarg)
    ~~~~~~^^^^
  File "/home/apn/git/pyfeyn2/pyfeyn2/render/ps/madgraph.py", line 77, in __init__
    self.set_feynman_diagram(fd)
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^
  File "/home/apn/git/pyfeyn2/pyfeyn2/render/ps/madgraph.py", line 131, in set_feynman_diagram
    self.set_src(feynman_to_ps(fd))
                 ~~~~~~~~~~~~~^^^^
  File "/home/apn/git/pyfeyn2/pyfeyn2/render/ps/madgraph.py", line 47, in feynman_to_ps
    line = type_map[style.getProperty("line").value]
           ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'boson'

[8]:
fd = t2t.s_channel("e-","e+","gamma","W-","W+")
l1 = fd.legs[2]
l2 = fd.legs[3]
fd.decay(l1,"c_bar","s")
fd.decay(l2,"nu_mu","mu+")
ar = AllRender(auto_default(fd))
ar.render()
tikz:
../../_images/gallery_feynmf_feynmf_6_1.png
pyx:
../../_images/gallery_feynmf_feynmf_6_3.png
feynmp:
../../_images/gallery_feynmf_feynmf_6_5.png
feynman:
../../_images/gallery_feynmf_feynmf_6_7.png
dot:
../../_images/gallery_feynmf_feynmf_6_9.png
mermaid:
../../_images/gallery_feynmf_feynmf_6_11.svg
asciipdf:
../../_images/gallery_feynmf_feynmf_6_13.png
unicodepdf:
../../_images/gallery_feynmf_feynmf_6_15.png
madgraph:
madgraph failed:
Traceback (most recent call last):
  File "/home/apn/git/pyfeyn2/pyfeyn2/render/all.py", line 113, in render
    render(fd).render(dirpath + "/" + name + ".pdf", **dynarg)
    ~~~~~~^^^^
  File "/home/apn/git/pyfeyn2/pyfeyn2/render/ps/madgraph.py", line 77, in __init__
    self.set_feynman_diagram(fd)
    ~~~~~~~~~~~~~~~~~~~~~~~~^^^^
  File "/home/apn/git/pyfeyn2/pyfeyn2/render/ps/madgraph.py", line 131, in set_feynman_diagram
    self.set_src(feynman_to_ps(fd))
                 ~~~~~~~~~~~~~^^^^
  File "/home/apn/git/pyfeyn2/pyfeyn2/render/ps/madgraph.py", line 47, in feynman_to_ps
    line = type_map[style.getProperty("line").value]
           ~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyError: 'boson'

[ ]: