Hydrodynamics ============= Introduction ------------ The hydrodynamics solver is the core fluid module of AthenaK. It integrates the equations of compressible gas dynamics on the block-based mesh using a high-order Godunov (finite-volume) scheme: primitive variables are reconstructed to cell faces, an approximate Riemann solver computes the interface fluxes, and the conserved variables are advanced with a Runge–Kutta integrator. The solver supports Newtonian, special relativistic, and general relativistic regimes; which one is used is determined by the coordinate system (see the ```` block) and the equation of state. Hydrodynamics is enabled simply by including a ```` block in the input file. For the magnetized case see :doc:`mhd`. .. note:: A single run may not contain both ```` and ```` unless it is a two-fluid ion–neutral calculation (see :doc:`ion_neutral`). Inputs ------ Core options in ````: - ``eos`` (**mandatory**): equation of state, ``ideal`` or ``isothermal`` (isothermal is Newtonian only). - ``gamma`` (**mandatory if** ``eos = ideal``): ratio of specific heats :math:`\gamma`. - ``iso_sound_speed`` (**mandatory if** ``eos = isothermal``): isothermal sound speed. - ``reconstruct`` (default ``plm``): spatial reconstruction. Options: ``dc`` (donor cell), ``plm`` (piecewise linear), ``ppm4`` and ``ppmx`` (piecewise parabolic), ``wenoz`` (WENO-Z). The higher-order methods require more ghost zones (set ``/nghost`` to at least 3, or 4 when combined with ``fofc``). - ``rsolver`` (**mandatory**): approximate Riemann solver. Valid choices depend on the regime: - Newtonian: ``llf``, ``hlle``, ``hllc`` (ideal only), ``roe`` - special/general relativistic: ``llf``, ``hlle``, ``hllc`` (SR only) - kinematic evolution (``