KORAL: GRRMHD Code & SSD Analysis
- KORAL is a dual-purpose system that encompasses a general relativistic radiation hydrodynamics and magnetohydrodynamics code for simulating black-hole accretion, as well as a knowledge-graph framework for SSD analysis.
- The astrophysical KORAL employs conservative finite-volume schemes with a covariant M1 closure, advanced electron-heating models, and two-temperature plasma evolution to capture complex accretion phenomena.
- The SSD KORAL integrates data and literature knowledge graphs with large language models, achieving high precision in full-spectrum analysis and offering actionable SSD operational insights.
KORAL denotes two distinct research systems in the cited literature. In relativistic astrophysics, KORAL is a conservative code for general relativistic radiation hydrodynamics and magnetohydrodynamics that has been used for super-critical accretion, low-luminosity black-hole flows, two-temperature plasmas, nonthermal electrons, tidal disruption events, horizon-scale imaging, and hybrid GRMHD–GRFFE jet simulations (Sadowski et al., 2012). In storage-systems research, “KORAL” also denotes a knowledge-driven reasoning framework that combines a Data Knowledge Graph, a Literature Knowledge Graph, and a LLM for full-spectrum SSD operational analysis (Akewar et al., 10 Feb 2026).
1. Historical development and research domains
The astrophysical KORAL first appeared as a multi-dimensional, conservative general relativistic radiation hydrodynamics code with a covariant M1 closure and semi-implicit treatment of radiative source terms, explicitly designed to handle optically thin, intermediate, and optically thick regimes in curved spacetime (Sadowski et al., 2012). It was then extended to general relativistic radiation magnetohydrodynamics and used for the first axisymmetric simulations of super-critical magnetized accretion in general relativity, with applications to Schwarzschild and Kerr black holes accreting at (Sadowski et al., 2013).
Subsequent papers turned KORAL into a broader GRRMHD platform. The cited literature describes additions including a sub-grid magnetic dynamo for long-duration axisymmetric radiative disks, thermal Comptonization, radiative viscosity for M1, photon-conserving Comptonization, relativistic two-temperature thermodynamics, nonthermal electron evolution, electron-heating closures calibrated to plasma microphysics, and a hybrid GRMHD+GRFFE method for highly magnetized funnels (Sadowski et al., 2014). The same code base has also been run in stripped-down modes: pure ideal-GRMHD with radiation and two-temperature physics disabled for code-comparison work, and special-relativistic non-resistive MHD for Orszag–Tang reconnection benchmarks (Porth et al., 2019).
A separate 2026 usage adopts the same name for a storage-systems framework: “KORAL: Knowledge Graph Guided LLM Reasoning for SSD Operational Analysis” (Akewar et al., 10 Feb 2026). This second KORAL is unrelated to the astrophysical code except for the shared acronym.
2. Core relativistic formulation of the astrophysical code
In its astrophysical usage, KORAL evolves fluid and radiation in a fixed spacetime metric, usually in horizon-penetrating Kerr–Schild or modified Kerr–Schild coordinates. The basic conservation laws are
together with the ideal-MHD induction equation advanced in conservative form and the discrete maintenance of by constrained transport (Chael et al., 2018). For ideal GRMHD, the matter-plus-field stress–energy tensor is written as
or in closely related notation with and for gas internal energy and pressure (Sadowski et al., 2014).
Radiation is represented by moment equations closed with the covariant M1 closure. In the formulation used across the cited papers, KORAL reconstructs the radiation tensor from a radiation rest-frame energy density and a timelike radiation four-velocity,
which yields the correct diffusion and free-streaming limits but inherits the standard M1 limitation for strongly multi-directional radiation fields, such as crossing beams (Sadowski et al., 2012). Gas–radiation coupling enters through a covariant four-force , with absorption, scattering, and, in later versions, Compton energy exchange.
Numerically, KORAL is described as a conservative Godunov finite-difference or finite-volume code. The recurring algorithmic pattern is explicit treatment of transport terms and semi-implicit treatment of stiff local source terms. In commonly used GRMHD configurations, the code uses piecewise parabolic reconstruction, local Lax–Friedrichs fluxes, second-order time integration, and Flux-CT constrained transport; in its original GRRHD presentation, the same framework was combined with local Newton iterations for the semi-implicit radiation solve (Porth et al., 2019).
3. Thermodynamics, radiation physics, and later extensions
A major extension was the introduction of relativistic two-temperature plasma evolution. In that formulation, electrons and ions share the same bulk four-velocity but carry separate entropies and temperatures, with source terms for viscous heating, Coulomb coupling, and radiative cooling: KORAL identifies the total dissipative heating 0 by comparing the evolved total internal energy with the energies implied by adiabatically evolved species entropies, and then partitions this dissipation using a sub-grid electron-heating prescription (Sadowski et al., 2016).
The electron-heating closure became a major scientific lever. Early two-temperature work used the strongly 1-dependent Landau-damped turbulent cascade model of Howes (2010). Later Sgr A* simulations contrasted that closure with a fit to trans-relativistic anti-parallel magnetic reconnection from particle-in-cell simulations by Rowan et al. (2017). In those runs, the turbulent model heated electrons preferentially in low-2 polar regions, while the reconnection model yielded a more uniform 3 that never exceeded 4 (Chael et al., 2018).
Radiative microphysics was progressively refined. Thermal Comptonization and a calibrated radiative-viscosity term were added to stabilize M1 transport near the axis in radiative disk simulations (Sadowski et al., 2014). Photon-conserving Comptonization then replaced the assumption that radiation is locally a perfect blackbody by evolving photon number density and treating the radiation field as a Bose–Einstein fluid; the cited simulations found that blackbody Comptonization underestimated gas and radiation temperatures by up to a factor of two and allowed color-correction factors as large as 5 in the funnel region (Sadowski et al., 2015).
KORAL was also extended beyond thermal electrons. A nonthermal module evolves an isotropic electron distribution 6 in Lorentz-factor space in parallel with thermal ions, thermal electrons, and radiation, with advection, adiabatic gains and losses, Coulomb coupling, synchrotron, bremsstrahlung, inverse Compton cooling, and a prescribed power-law injection tied to the local electron heating rate (Chael et al., 2017). More recently, a hybrid GRMHD+GRFFE scheme was implemented for regions with extreme magnetization. Above a transition 7, KORAL switches to force-free electrodynamics while passively evolving field-parallel velocity, plasma density, and plasma energy density, allowing jet-funnel magnetizations as large as 8 without mass floors (Chael, 2024).
4. Scientific applications in black-hole and transient astrophysics
KORAL’s early GRRMHD applications established the gross phenomenology of super-critical accretion. In axisymmetric simulations of magnetized flows accreting at 9, both the non-spinning and spinning black-hole models produced optically and geometrically thick disks with funnels through which relativistic gas, Poynting flux, and radiative flux escaped. The net energy outflow efficiencies were 0 for 1 and 2 for 3, while the radiative luminosities were only 4, implying radiative efficiencies of order 5 and strong photon trapping (Sadowski et al., 2013).
The 2D sub-grid dynamo study extended that picture to long-duration radiative disk evolution. With the dynamo active, KORAL sustained turbulence in axisymmetry and recovered 3D-like magnetic statistics, including 6, 7, and 8 outside the ISCO. For non-spinning super-Eddington disks, the total efficiency at infinity remained nearly constant at 9 over 0 and 1, while spinning models reached 2, 3, and 4, with 5 behavior characteristic of Blandford–Znajek-like extraction. The same study also found runaway cooling and disk collapse for 6, consistent with radiation-pressure thermal instability (Sadowski et al., 2014).
At low accretion rates, KORAL has been used to study horizon-scale sources. Two-temperature radiative simulations of low-luminosity accretion showed that radiation is dynamically negligible at 7 but materially alters the flow by 8, where the disk becomes cooler and geometrically less thick (Sadowski et al., 2016). In Sgr A* simulations with separate electron and ion thermodynamics, KORAL produced 230 GHz images with distinct black hole shadows consistent with the Event Horizon Telescope size measurement, but none of the thermal models reproduced the observed radio slope, the large near-infrared and X-ray flares, or the near-infrared spectral index; the paper therefore argued that non-thermal electrons are required for a full explanation of the emission (Chael et al., 2018). In a radiative MAD model for M87*, KORAL predicted that electron cooling lowers inner-disk 9 by more than an order of magnitude relative to non-radiative models and narrows the hot jet sheath, with direct implications for ngEHT morphology and variability studies (Chatterjee et al., 2022).
The code has also been used outside steady accretion problems. In tidal disruption event simulations, a novel interior stream-injection boundary allowed KORAL to capture the returning debris stream, disk formation, self-intersection shocks, and emergent radiation simultaneously. For 0 black holes, the resulting disks remained only mildly circularized over the simulated few days, emitted 1, and had radiative efficiencies 2, with highly asymmetric photospheres and possible soft X-ray visibility for favorable viewing angles (Curd, 2021). In a different axisymmetric optically thin setting, KORAL was modified to include the Cosmic Battery term in the induction equation; with that term active, a SANE flow evolved toward a MAD state, accumulating horizon-threading magnetic flux that was absent in the control run (Contopoulos et al., 2017).
5. Verification, inter-code comparisons, and numerical limitations
The original radiation module was validated against radiative shock tubes, a static radiation-pressure-supported atmosphere, shadows, beams of light in curved spacetime, and radiative Bondi accretion, explicitly demonstrating the advantages of M1 over Eddington closure and flux-limited diffusion in problems that require both diffusion and free streaming (Sadowski et al., 2012). The early GRRMHD version was further checked against radiation-modified MHD linear waves, magnetic shock tubes, and the Orszag–Tang vortex (Sadowski et al., 2013).
KORAL has also been benchmarked directly against other production codes. In the Event Horizon GRMHD Code Comparison Project, it was run as a pure ideal-GRMHD solver on a turbulent SANE accretion flow around a Kerr black hole with 3. At 4 resolution, KORAL yielded 5, 6, 7, and 8, placing it within the mature multi-code cluster for near-horizon SANE problems (Porth et al., 2019). In a later Orszag–Tang benchmark against PLUTO, KORAL was used in non-resistive special-relativistic and non-relativistic MHD. At sufficient resolution it reproduced fast, plasmoid-mediated reconnection with 9 in 2D Ideal-MHD, 0 in 2D Rel-MHD, and 1 in 3D, while retaining slightly more magnetic energy and resolving more substructures than PLUTO, albeit with larger total-energy residuals in the relativistic case (2 at 3, versus 4 for PLUTO) (Kayanikhoo et al., 2023).
The limitations emphasized in the cited literature are correspondingly specific. M1 cannot represent complex angular distributions such as genuinely crossing beams and may create axial artifacts unless regularized (Sadowski et al., 2012). Axisymmetric runs with a sub-grid dynamo remain approximations to 3D turbulence and cannot faithfully capture non-axisymmetric interchange instabilities or sustained MAD states (Sadowski et al., 2014). In low-density polar funnels, temperatures and emissivities can become floor-dominated, which is why several Sgr A* post-processing pipelines exclude the innermost polar zones (Chael et al., 2018). Standard GRMHD also becomes fragile above 5, a difficulty that motivated the hybrid GRMHD+GRFFE extension (Chael, 2024). A common misconception is therefore that KORAL is a single fixed solver; the cited record instead shows a modular framework whose physics content ranges from pure ideal-GRMHD to full two-temperature radiative and nonthermal models.
6. KORAL as a knowledge-graph framework for SSD operations
A distinct 2026 paper uses the name KORAL for a knowledge-driven reasoning framework for SSD operational analysis. This KORAL combines a Data Knowledge Graph built from fragmented telemetry with a Literature Knowledge Graph extracted from papers, reports, and traces, and then uses graph-guided prompting to constrain a LLM to domain vocabulary, units, and evidence-backed reasoning (Akewar et al., 10 Feb 2026).
Its ontology is formalized as
6
with classes such as EnvironmentalFactor, WorkloadAttribute, OperationType, and Metric, and the resulting graph as
7
Stage I constructs the Literature KG from unstructured SSD documents, storing typed claims in RDF/Turtle with provenance, confidence, and SPARQL access. Stage II transforms time-disjoint telemetry into an intermediate representation of typed frames — AttributeFrame, WorkloadFrame, EnvFrame, DataQuality, and Episode — and materializes these into a queryable Data KG. The framework defines “full-spectrum” analysis as descriptive, predictive, prescriptive, and what-if reasoning.
The evaluation reported in the paper is quantitative. On device-level SMART+Workload+Env analysis, KORAL achieved Precision 8, Recall 9, Accuracy 0, TTF-MSE 1 days, and Tail Latency MSE 2, with prescriptive FiP up to 3 and what-if CFV up to 4. On fleet-level SMART+Workload analysis, it achieved Precision 5, Recall 6, Accuracy 7, and TTF-MSE 8 days, with prescriptive FiP 9 and what-if CFV 0. The paper presents this system as the first end-to-end combination of LLMs and KGs for full-spectrum SSD reasoning and releases the SSD-specific knowledge graph for reproducible research (Akewar et al., 10 Feb 2026).
In encyclopedic terms, the two KORALs are best understood as unrelated systems that share a name but belong to different technical lineages. The astrophysical KORAL is a GRRHD/GRRMHD code centered on conservative relativistic fluid and radiation evolution, whereas the SSD KORAL is a knowledge-orchestrated reasoning system centered on ontology alignment, graph materialization, and grounded LLM inference.