Commit f9f8eb7a authored by NUNEZ Arturo's avatar NUNEZ Arturo

Automatic commit mardi 14 août 2018, 16:30:01 (UTC+0200)

parent b7213edc
This diff is collapsed.
...@@ -58,7 +58,7 @@ ...@@ -58,7 +58,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 37, "execution_count": 5,
"metadata": { "metadata": {
"collapsed": false, "collapsed": false,
"hide_input": false, "hide_input": false,
...@@ -73,23 +73,12 @@ ...@@ -73,23 +73,12 @@
"loading Stars..\n", "loading Stars..\n",
"loading Gas..\n", "loading Gas..\n",
"loaded\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", "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 @@ ...@@ -97,10 +86,12 @@
"path = \"/data/OWN/Mochima/SF0/Stable/output_00041\"\n", "path = \"/data/OWN/Mochima/SF0/Stable/output_00041\"\n",
"myhalo= wkbl.Galaxy_Hound(path)\n", "myhalo= wkbl.Galaxy_Hound(path)\n",
"print \"loaded\"\n", "print \"loaded\"\n",
"myhalo.r_virial(600)\n",
"print \"cutted\"\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.center_shift(nucenter)\n",
"myhalo.r_virial(600)\n",
"\n",
"myhalo.redefine(4.5)" "myhalo.redefine(4.5)"
] ]
}, },
......
...@@ -297,7 +297,7 @@ ...@@ -297,7 +297,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 20, "execution_count": 58,
"metadata": { "metadata": {
"collapsed": false "collapsed": false
}, },
...@@ -334,7 +334,7 @@ ...@@ -334,7 +334,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 21, "execution_count": 59,
"metadata": { "metadata": {
"collapsed": false "collapsed": false
}, },
...@@ -350,7 +350,7 @@ ...@@ -350,7 +350,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 22, "execution_count": 60,
"metadata": { "metadata": {
"collapsed": false "collapsed": false
}, },
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 29, "execution_count": 61,
"metadata": { "metadata": {
"collapsed": false "collapsed": false
}, },
...@@ -379,7 +379,7 @@ ...@@ -379,7 +379,7 @@
"-4.1098533e+16" "-4.1098533e+16"
] ]
}, },
"execution_count": 29, "execution_count": 61,
"metadata": {}, "metadata": {},
"output_type": "execute_result" "output_type": "execute_result"
} }
...@@ -390,7 +390,7 @@ ...@@ -390,7 +390,7 @@
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": 34, "execution_count": 63,
"metadata": { "metadata": {
"collapsed": false "collapsed": false
}, },
...@@ -399,27 +399,41 @@ ...@@ -399,27 +399,41 @@
"name": "stdout", "name": "stdout",
"output_type": "stream", "output_type": "stream",
"text": [ "text": [
"2.330e+13\n" "1.382e+09\n"
] ]
} }
], ],
"source": [ "source": [
"gas_in = np.where(myhydro.gs.r<myhydro.r200)\n", "gas_in = np.where(myhydro.gs.r<myhydro.r200)\n",
"mH= 1.66e-24\n", "mH= 1.66e-27\n",
"gamma = 1.66\n", "gamma = 1.66\n",
"temp = ((1e6 * mH /1.38e-23)*myhydro.p.simutokms**2*myhydro.gs.temp)*(gamma-1)/myhydro.gs.rho\n", "temp = ((mH /1.38e-16)*(myhydro.p.simutokms)**2*myhydro.gs.temp)/myhydro.gs.rho\n",
"print \"{0:.3e}\".format(np.sum(temp[gas_in]))\n" "print \"{0:.3e}\".format(np.sum(myhydro.gs.temp[gas_in]))\n"
] ]
}, },
{ {
"cell_type": "code", "cell_type": "code",
"execution_count": null, "execution_count": 57,
"metadata": { "metadata": {
"collapsed": true "collapsed": false
}, },
"outputs": [], "outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"751538.387733\n",
"751200.89168\n",
"249954571.182\n",
"249954571.182\n"
]
}
],
"source": [ "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"
] ]
}, },
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment