919 B
919 B
Architecture
MOCCA keeps a small public surface:
mocca::SimulationConfigdescribes one cascade run as typed JSON-backed data.mocca::run_simulation()validates the config, runs the kernel, and returns a structured result artifact.moccais the command-line wrapper around that library API.
Internally, the code is split into a few focused layers:
api.cpp: JSON parsing and artifact serializationconfig_bridge.cpp: conversion from the public schema into the internal kernel statephysics_engine.cpp: matrix elements, transition rates, and atomic-model preparationkernel.cpp: cascade propagation and state/line collectionline_codec.cpp: packed line bookkeeping and decodingembedded_tables.cpp: compiled-in coefficient tables
The modern public interface deliberately avoids the historical card vocabulary. The old deck format survives only in the optional translator helper.