Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for more Phantom equations of state #33

Open
dmentipl opened this issue Mar 12, 2021 · 0 comments
Open

Add support for more Phantom equations of state #33

dmentipl opened this issue Mar 12, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@dmentipl
Copy link
Owner

Phantom has integer codes ieos that determine the equation of state (eos). These codes are written to the snapshot file header. These are required to calculate the temperature or pressure as these variables are not written to file. The meaning of the ieos codes can be inferred from the source code eos.F90.

Currently, Plonk supports:

  • ieos=1: globally isothermal eos,
  • ieos=2: adiabatic eos,
  • ieos=3: vertically isothermal eos (appropriate for discs).

We should add support for more Phantom equations of state.

For reference, here is the list of values at the current version:

! This module contains stuff to do with the equation of state
!  Current options:
!     1 = isothermal eos
!     2 = adiabatic/polytropic eos
!     3 = eos for a locally isothermal disc as in Lodato & Pringle (2007)
!     4 = GR isothermal
!     6 = eos for a locally isothermal disc as in Lodato & Pringle (2007),
!         centered on a sink particle
!     7 = z-dependent locally isothermal eos
!     8 = Barotropic eos
!     9 = Piecewise polytrope
!    10 = MESA EoS
!    11 = isothermal eos with zero pressure
!    12 = ideal gas with radiation pressure
!    14 = locally isothermal prescription from Farris et al. (2014) for binary system
!    15 = Helmholtz free energy eos
!    16 = Shen eos
!    19 = Variable gamma (requires KROME)
@dmentipl dmentipl added the enhancement New feature or request label Mar 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant