chemart / chameleon
View on GitHubColored chameleon chemistry — A puzzle in chemical clothing, and the smallest useful test case in the catalog. Three colours; when two chameleons of different colours meet, both take the third colour. The total count never changes, so the system just…
{"species": [{"id": "r", "structure": null}, {"id": "g", "structure": null}, {"id": "b", "structure": null}], "reactions": [{"reactants": {"r": 1, "g": 1}, "products": {"b": 2}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"r": 1, "b": 1}, "products": {"g": 2}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}, {"reactants": {"g": 1, "b": 1}, "products": {"r": 2}, "rate": {"law": "mass-action", "k": 1.0}, "count": null}], "status": "complete", "initial_state": {"r": 2700, "g": 0, "b": 2700}, "inflow": null, "outflow": null, "extras": {"conservation": [{"vector": {"r": 1, "g": 1, "b": 1}}, {"vector": {"r": 1, "g": -1}, "modulus": 3}, {"vector": {"g": 1, "b": -1}, "modulus": 3}]}, "chemistry": "chameleon", "params": {"M": 5400, "x0": [0.5, 0.0, 0.5]}, "seed": 1}