Optab
February 18, 2026 ยท View on GitHub
Public Fortran90 code package for generating ideal-gas opacity tables
To execute radiation hydrodynamics simulations, the equation of state and opacity are both critical components. Ideally, these elements should originate from the same set of chemical equilibrium abundances, yet this alignment is not always practiced. Optab is designed to calculate opacity based on the chemical equilibrium abundances provided by the user. It outputs both mean and monochromatic opacities, thus enabling the creation of opacity tables that are consistent with the user's equation of state.





Opacity sources currently implemented
- Line absorption
- Continuum absorption
- Bremsstrahlung
- van Hoof et al. (2014)
- John (1988): H-
- John (1975): H2-
- Photoionization
- Collision-induced absorption (EXPERIMENTAL)
- Bremsstrahlung
- Scattering
- Thomson scattering
- Rayleigh scattering
Author
Shigenobu Hirose (JAMSTEC, shirose@jamstec.go.jp)
Reference
Hirose, S., Hauschildt, P., Minoshima, T., Tomida, K., and Sano, T.
- Astronomy and Astrophysics 659, A87 (2022): https://doi.org/10.1051/0004-6361/202141076
- arXiv: https://arxiv.org/abs/2112.05689
Quick start guide for optab
-
Build
optabExecutables- Requirements:
- Source directories:
src/: Contains source codes ofoptabeos/src/: Contains source codes for creating HDF5 chemical abundance tablesdatabase/src/: Contains source codes for generating HDF5 opacity databases
- Build instructions:
Navigate to each source directory and execute make. If necessary, adjust the Makefile to set the paths for Open MPI and HDF5, as well as the Fortran compiler flags. Example Makefile adjustments:OPENMPI = /opt/local HDF5 = /opt/local FFLAGS = -Wall #-fbounds-check
-
Build the
optabDatabase
Seedatabase/README.md. -
Run
optabSample
Seesample/README.md.
EOF