Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F110358910
pycool_get_cooling_from_hdf5
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Apr 25, 23:19
Size
476 B
Mime Type
text/x-python
Expires
Sun, Apr 27, 23:19 (2 d)
Engine
blob
Format
Raw Data
Handle
25812217
Attached To
rGEAR Gear
pycool_get_cooling_from_hdf5
View Options
#!/usr/bin/env python
from numpy import *
import PyCool.compute_lambda_interface as cl
import sys
import Ptools as pt
# firest init
cl.updateCoolingTable();
nHe = 0.16
rho_H = 0.2
z = 8 # redsift
metalicity = 0.01; #
T_s = 10**arange(1,8,0.01)
Lambda_n_s = zeros(len(T_s),float32)
T = 3e4
# set redshift
cl.SetRedshift(z)
cl.checkRedshiftForUpdate();
Lambda_n =cl.computeLambda(rho_H, T, nHe, metalicity)
print " ",T,Lambda_n
Event Timeline
Log In to Comment