Skip to content
/ optab Public

Public Fortran90 code package for generating ideal-gas opacity tables

License

Notifications You must be signed in to change notification settings

nombac/optab

Repository files navigation

Optab

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

Author

Shigenobu Hirose (JAMSTEC, [email protected])

Reference

Hirose, S., Hauschildt, P., Minoshima, T., Tomida, K., and Sano, T.


Quick start guide for optab

  1. Build optab Executables

    • Requirements:
    • Source directories:
      • src/: Contains source codes of optab
      • eos/src/: Contains source codes for creating HDF5 chemical abundance tables
      • database/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
  2. Build the optab Database
    See database/README.md.

  3. Run optab Sample
    See sample/README.md.


EOF