What are the steps that lead to the bonding of two up quarks and one down quark into a proton? For instance, does an up quark "bind" with a down quark in quark-gluon plasma, which then binds with another lone up quark? I've been exploring the formation of protons from quarks, and I'm facing challenges in understanding the exact sequence and rules that govern this process.
Background: I've been working on simulations of quark interactions and seeking to understand how protons form from the quark-gluon plasma. I have tried modeling QCD-based interactions between individual quarks of varying types, but that usually just leads to mechanisms for how mesons are created or how annihilations occur. I feel confused about how a baryon forms as a result of color neutral formations of quarks, and how an odd number of quarks can form despite quarks being generated in pairs. Any insights or references would be greatly appreciated!
Edit: As a response to the first comment I received, I've decided to include some context in how I simulated quark interactions. I made a program to simulate the outcome of two quarks interacting according to my understanding of QCD rules. I defined each quark by three properties:
- The type of quark, which I call the type. e.g. up, down, charm, etc.
- Whether the quark is an anti particle or not. I call this the family. Anti-particles belong to one family, while normal particles belong to another.
- The color charge of the particle - red, green, or blue. If I have an anti up-quark with a red charge and a normal down-quark with a blue charge, they'd be defined by these properties. I then use a function to determine the outcome of their interaction:
/**
* Determines whether the color charge of this quark and another quark is neutral or not in a 1on1 interaction.
* @param q Another quark.
* @returns True if neutral, false if not.
*/
neut(q: Quark)
{
if (this.fdiff(q.f)) return this.csame(q.c); // Diff fam, same color in true case.
else return false; // Not neutral, for example due to having the same fam, e.g. anti and anti
}
I am open to, and welcome any corrections in my understanding.