EOS_Polytrope

Ian Hawke

22/4/2002

Abstract

EOS_Polytrope

1 The equations

This equation provides a polytropic equation of state to thorns using the CactusEOS interface found in EOS_Base. As such it’s a fake, as EOS_Base assumes that, e.g., the pressure is a function of both density and specific internal energy. Here the pressure is just a function of the density, and is set appropriately (the specific internal energy is always ignored).

The two fluid constants are K (eos_k) and Ξ“ (eos_gamma), which default to 100 and 2 respectively. The formulas that are applied under the appropriate EOS_Base function calls are

P = KρΓ (1) πœ– = KΟΞ“βˆ’1 Ξ“ βˆ’ 1 (2) ρ = P (Ξ“ βˆ’ 1)πœ– (3) βˆ‚P βˆ‚Ο = KΞ“ΟΞ“βˆ’1 (4) βˆ‚P βˆ‚πœ– = 0. (5)

To calculate the units of the Cactus quantities and back, remember that G = c = MβŠ™ = 1 in Cactus.
Here is one example how to calculate densities:

ρCactus = G3M βŠ™2 c6 β‹… ρ β‰ˆ 1.6167 β‹… 10βˆ’21m3 kg β‹… ρ = 1.6167 β‹… 10βˆ’18cm3 g β‹… ρ (6)

and one example for calculating K (for Ξ“ = 2):

KCactus = c4 G3MβŠ™2 β‹… K β‰ˆ 6.8824 β‹… 10βˆ’11 m5 kg β‹…s2 β‹… K = 6.8824 β‹… 10βˆ’4 cm5 g β‹…s2 β‹… K (7)

2 Parameters




eos_gamma
Scope: restrictedΒ  REAL



Description: Adiabatic Index for Ideal Fluid



Range Β  Default: 2.0
:






eos_k
Scope: restrictedΒ  REAL



Description: Polytropic constant



Range Β  Default: 80.0
:






gamma_ini
Scope: restrictedΒ  REAL



Description: Polytropic Gamma used for the initial model (e.g., by RNSID)



Range Β  Default: 2.0
:






use_cgs
Scope: restrictedΒ  BOOLEAN



Description: Use the CGS units



Β  Default: no



3 Interfaces

General

Implements:

eos_2d_polytrope

Inherits:

eos_base

Uses header:

EOS_Base.h

EOS_Base.inc

4 Schedule

This section lists all the variables which are assigned storage by thorn EinsteinEOS/EOS_Polytrope. Storage can either last for the duration of the run (Always means that if this thorn is activated storage will be assigned, Conditional means that if this thorn is activated storage will be assigned for the duration of the run if some condition is met), or can be turned on for the duration of a schedule function.

Storage

NONE

Scheduled Functions

CCTK_STARTUP

Β  eos_polytrope_startup

Β  setup the polytropic eos

Β 

Β Language:fortran
Β  Type: function