Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91689049
test.py
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
Wed, Nov 13, 12:20
Size
460 B
Mime Type
text/x-python
Expires
Fri, Nov 15, 12:20 (2 d)
Engine
blob
Format
Raw Data
Handle
22308035
Attached To
rPNBODY pNbody
test.py
View Options
#!/usr/bin/env python
import
sys
import
coolinglib
from
numarray
import
*
Redshift
=
0.
Egyspec
=
array
([
0.4
,
0.4
,
0.4
],
Float
)
Density
=
array
([
0.4
,
0.4
,
0.4
],
Float
)
Mu
,
Lambda
=
coolinglib
.
cooling
(
Egyspec
,
Density
,
0.76
,
Redshift
)
print
Mu
print
Lambda
Temperature
=
array
([
10
,
100
,
1000
],
Float
)
HydrogenDensity
=
array
([
1
,
1
,
1
],
Float
)
Mu
,
Ne
,
Lambda
=
coolinglib
.
cooling_from_nH_and_T
(
Temperature
,
HydrogenDensity
,
0.76
,
Redshift
)
print
print
Mu
print
Ne
print
Lambda
Event Timeline
Log In to Comment