feynlag.export.ufo.writer

UFO model directory writer.

v1 scope (see plan): unitary-gauge tree-level UFO with the closed vertex catalog; no form factors, NLO, ghosts or propagators.py. Colored (SU(3)) vertices emit real color-tensor strings (T/f) — see add_vvv_vertex / add_vvvv_vertex / add_fermion_vertex; the SSS/SSSS/VSS/VVS/VVSS catalog (add_bosonic_vertex) remains color-singlet only. Coupling orders use a simple heuristic (QED power = #legs − 2) — refine per-model if a generator needs the exact hierarchy.

The bosonic vertices come straight from Model.vertices(). Fermion vertices must be flavor-resolved by the caller (each entry names concrete particles) since UFO particles are per flavor eigenstate.

Functions

write_ufo(path, model_name, parameters, ...)

Write a UFO model directory.

Classes

UFOParticle(symbol, pdg, name[, antiname, ...])

Specification of one UFO particle.