FeynMF

From:

Box

[1]:
from feynml import *
from feynml.topology import four as t2t
from pyfeyn2.auto import auto_default
from pyfeyn2.render.latex.tikzfeynman import TikzFeynmanRender
from pyfeyn2.render.all import AllRender
[2]:
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:
../../_images/gallery_feynmf_feynmf_3_17.png
root:
../../_images/gallery_feynmf_feynmf_3_19.png
Info in <TCanvas::SaveSource>: C++ Macro file: /tmp/tmpvr78t6t3.tex has been generated
Info in <TCanvas::Print>: TeX file /tmp/tmpei2rm9jo.tex has been created

2 to 4

[3]:
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:
../../_images/gallery_feynmf_feynmf_5_17.png
root:
../../_images/gallery_feynmf_feynmf_5_19.png
Info in <TCanvas::SaveSource>: C++ Macro file: /tmp/tmpha6i3skt.tex has been generated
Info in <TCanvas::Print>: TeX file /tmp/tmprn4a10hv.tex has been created
[4]:
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:
../../_images/gallery_feynmf_feynmf_6_17.png
root:
../../_images/gallery_feynmf_feynmf_6_19.png
Info in <TCanvas::SaveSource>: C++ Macro file: /tmp/tmpdfd34jt1.tex has been generated
Info in <TCanvas::Print>: TeX file /tmp/tmp6g7j28pe.tex has been created
[ ]:

[ ]: