pyfeyn2.feynmandiagram

Module Contents

Classes

PDG

Identifiable

Labeled

Point

Styled

Bending

Targeting

Sourcing

Line

Vertex

Leg

Propagator

FeynmanDiagram

Attributes

id

class pyfeyn2.feynmandiagram.PDG[source]
pdgid :Optional[int][source]
type :Optional[str][source]
latexname :Optional[str][source]
_sync_latexname()[source]

Sync the latexname with the pdgid

__post_init__()[source]
set_pdgid(pdgid)[source]
set_type(type)[source]
pyfeyn2.feynmandiagram.id = 0[source]
class pyfeyn2.feynmandiagram.Identifiable[source]
id :Optional[str][source]
__post_init__()[source]
class pyfeyn2.feynmandiagram.Labeled[source]
label :Optional[str][source]
set_label(label)[source]
class pyfeyn2.feynmandiagram.Point[source]
x :Optional[decimal.Decimal][source]
y :Optional[decimal.Decimal][source]
z :Optional[decimal.Decimal][source]
set_xy(x, y)[source]
set_xyz(x, y)[source]
class pyfeyn2.feynmandiagram.Styled[source]
style :Optional[str][source]
class pyfeyn2.feynmandiagram.Bending[source]
bend :Optional[str][source]
class pyfeyn2.feynmandiagram.Targeting[source]
target :Optional[str][source]
set_target(target)[source]
class pyfeyn2.feynmandiagram.Sourcing[source]
source :Optional[str][source]
set_source(source)[source]
class pyfeyn2.feynmandiagram.Line[source]

Bases: Targeting, Sourcing

connect(source, target)[source]
class pyfeyn2.feynmandiagram.Vertex[source]

Bases: Labeled, Styled, Point, Identifiable

class pyfeyn2.feynmandiagram.Leg[source]

Bases: Labeled, Styled, PDG, Bending, Point, Targeting, Identifiable

sense :str[source]
set_incoming()[source]
set_outgoing()[source]
class pyfeyn2.feynmandiagram.Propagator[source]

Bases: Labeled, Styled, PDG, Bending, Line, Identifiable

class pyfeyn2.feynmandiagram.FeynmanDiagram[source]
class Meta[source]
name = feynmandiagram[source]
propagators :List[Propagator][source]
vertices :List[Vertex][source]
legs :List[Leg][source]
get_point(id)[source]