Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
NUNEZ Arturo
notebooks-wkbl
Commits
f9f8eb7a
Commit
f9f8eb7a
authored
Aug 14, 2018
by
NUNEZ Arturo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Automatic commit mardi 14 août 2018, 16:30:01 (UTC+0200)
parent
b7213edc
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
408 additions
and
2904 deletions
+408
-2904
LAM2LUPM/Mochima_2_2LUPM_HR.ipynb
LAM2LUPM/Mochima_2_2LUPM_HR.ipynb
+370
-2871
Simulations/ALLPLOTS/AllPlots_Mochima_SF0.ipynb
Simulations/ALLPLOTS/AllPlots_Mochima_SF0.ipynb
+10
-19
Simulations/Virial_Q_SHAPIRO.ipynb
Simulations/Virial_Q_SHAPIRO.ipynb
+28
-14
No files found.
LAM2LUPM/Mochima_2_2LUPM_HR.ipynb
View file @
f9f8eb7a
This source diff could not be displayed because it is too large. You can
view the blob
instead.
Simulations/ALLPLOTS/AllPlots_Mochima_SF0.ipynb
View file @
f9f8eb7a
...
...
@@ -58,7 +58,7 @@
},
{
"cell_type": "code",
"execution_count":
37
,
"execution_count":
5
,
"metadata": {
"collapsed": false,
"hide_input": false,
...
...
@@ -73,23 +73,12 @@
"loading Stars..\n",
"loading Gas..\n",
"loaded\n",
"| r_200 = 229.380 kpc\n",
"---- taking particles inside 2.5 * r200\n",
"[ 73.92791 -45.843407 -32.019 ]\n",
"| number of praticles inside 2.5 * r200 \n",
"| dm mass = 1.066e+12 M_sun\n",
"| p_dm_200 = 9.274e+05 particles\n",
"| stellar mass = 1.168e+11 M_sun\n",
"| p_st_200 = 5.095e+05 psrticles\n",
"| gas mass = 1.535e+11 M_sun\n",
"| p_gs_200 = 2.037e+06 particles\n",
"---- rotating galaxy \n",
"| Diagonal matrix computed \n",
"| |17, 0, 0|\n",
"| D =| 0,13, 0|\n",
"| | 0, 0, 2|\n",
"cutted\n",
"[-0.01192097 -0.00627668 0.00074283]\n"
"| r_200 = 211.52\n",
"| Diagonal matrix computed \n",
"| | 20, 0, 0|\n",
"| D =| 0, 14, 0|\n",
"| | 0, 0, 3|\n"
]
}
],
...
...
@@ -97,10 +86,12 @@
"path = \"/data/OWN/Mochima/SF0/Stable/output_00041\"\n",
"myhalo= wkbl.Galaxy_Hound(path)\n",
"print \"loaded\"\n",
"myhalo.r_virial(600)\n",
"print \"cutted\"\n",
"nucenter = nbe.real_center(myhalo.dm.pos3d, myhalo.dm.mass)\n",
"zoomreg = np.where(myhalo.dm.mass==myhalo.dm.mass.min())\n",
"nucenter = nbe.real_center(myhalo.dm.pos3d[zoomreg], myhalo.dm.mass[zoomreg])\n",
"myhalo.center_shift(nucenter)\n",
"myhalo.r_virial(600)\n",
"\n",
"myhalo.redefine(4.5)"
]
},
...
...
Simulations/Virial_Q_SHAPIRO.ipynb
View file @
f9f8eb7a
...
...
@@ -297,7 +297,7 @@
},
{
"cell_type": "code",
"execution_count":
20
,
"execution_count":
58
,
"metadata": {
"collapsed": false
},
...
...
@@ -334,7 +334,7 @@
},
{
"cell_type": "code",
"execution_count":
21
,
"execution_count":
59
,
"metadata": {
"collapsed": false
},
...
...
@@ -350,7 +350,7 @@
},
{
"cell_type": "code",
"execution_count":
22
,
"execution_count":
60
,
"metadata": {
"collapsed": false
},
...
...
@@ -368,7 +368,7 @@
},
{
"cell_type": "code",
"execution_count":
29
,
"execution_count":
61
,
"metadata": {
"collapsed": false
},
...
...
@@ -379,7 +379,7 @@
"-4.1098533e+16"
]
},
"execution_count":
29
,
"execution_count":
61
,
"metadata": {},
"output_type": "execute_result"
}
...
...
@@ -390,7 +390,7 @@
},
{
"cell_type": "code",
"execution_count": 3
4
,
"execution_count":
6
3,
"metadata": {
"collapsed": false
},
...
...
@@ -399,27 +399,41 @@
"name": "stdout",
"output_type": "stream",
"text": [
"
2
.3
30e+13
\n"
"
1
.3
82e+09
\n"
]
}
],
"source": [
"gas_in = np.where(myhydro.gs.r<myhydro.r200)\n",
"mH= 1.66e-2
4
\n",
"mH= 1.66e-2
7
\n",
"gamma = 1.66\n",
"temp = ((
1e6 *
mH /1.38e-
23
)*myhydro.p.simutokms**2*myhydro.gs.temp)
*(gamma-1)
/myhydro.gs.rho\n",
"print \"{0:.3e}\".format(np.sum(temp[gas_in]))\n"
"temp = ((mH /1.38e-
16
)*
(
myhydro.p.simutokms
)
**2*myhydro.gs.temp)/myhydro.gs.rho\n",
"print \"{0:.3e}\".format(np.sum(
myhydro.gs.
temp[gas_in]))\n"
]
},
{
"cell_type": "code",
"execution_count":
null
,
"execution_count":
57
,
"metadata": {
"collapsed":
tru
e
"collapsed":
fals
e
},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"751538.387733\n",
"751200.89168\n",
"249954571.182\n",
"249954571.182\n"
]
}
],
"source": [
"print tem"
"print ((mH /1.38e-16)*(1e5*myhydro.p.simutokms)**2)\n",
"print 1.66e-27 / (1.3806200e-16) * (myhydro.p.unitl / myhydro.p.unitt)**2\n",
"print myhydro.p.unitl / myhydro.p.unitt\n",
"print 1e5*myhydro.p.simutokms"
]
},
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment