2018-04-08 22:03:23 +03:00
|
|
|
{
|
|
|
|
"cells": [
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 1,
|
|
|
|
"metadata": {
|
|
|
|
"ExecuteTime": {
|
|
|
|
"end_time": "2018-04-08T18:49+0000",
|
|
|
|
"start_time": "2018-04-08T18:49+0000"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
2018-12-03 12:23:27 +03:00
|
|
|
"data": {
|
|
|
|
"application/vnd.jupyter.widget-view+json": {
|
|
|
|
"model_id": "3161978b-3c71-4d18-a97e-f972beece3ff",
|
|
|
|
"version_major": 2,
|
|
|
|
"version_minor": 0
|
|
|
|
},
|
|
|
|
"method": "display_data"
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"application/vnd.jupyter.widget-view+json": {
|
|
|
|
"model_id": "6884d267-e5ee-4841-8c60-9c66eea437c5",
|
|
|
|
"version_major": 2,
|
|
|
|
"version_minor": 0
|
|
|
|
},
|
|
|
|
"method": "display_data"
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
2018-04-08 22:03:23 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"%classpath add jar ../build/install/trapping/lib/commons-math3-3.6.1.jar\n",
|
|
|
|
"%classpath add jar ../build/install/trapping/lib/trapping-dev.jar"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
2018-12-03 12:23:27 +03:00
|
|
|
"execution_count": 11,
|
2018-04-08 22:03:23 +03:00
|
|
|
"metadata": {
|
|
|
|
"ExecuteTime": {
|
|
|
|
"end_time": "2018-04-08T18:58+0000",
|
|
|
|
"start_time": "2018-04-08T18:58+0000"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"application/vnd.jupyter.widget-view+json": {
|
2018-12-03 12:23:27 +03:00
|
|
|
"model_id": "582da53b-a518-4a8a-b7ce-84d38c580cf3",
|
2018-04-08 22:03:23 +03:00
|
|
|
"version_major": 2,
|
|
|
|
"version_minor": 0
|
|
|
|
},
|
|
|
|
"method": "display_data"
|
|
|
|
},
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "display_data"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
2018-12-03 12:23:27 +03:00
|
|
|
"scatter = inr.numass.trapping.Scatter.INSTANCE\n",
|
2018-04-08 22:03:23 +03:00
|
|
|
"\n",
|
|
|
|
"def e = (1..20) // energy in keV\n",
|
|
|
|
"\n",
|
2018-12-03 12:23:27 +03:00
|
|
|
"factor = 1e-22\n",
|
2018-04-08 22:03:23 +03:00
|
|
|
"def sigmaEl = e.collect{scatter.sigmael(it*1000)/factor}\n",
|
|
|
|
"def sigmaIon = e.collect{scatter.sigmaion(it*1000)/factor}\n",
|
|
|
|
"def sigmaExc = e.collect{scatter.sigmaexc(it*1000)/factor}\n",
|
|
|
|
"\n",
|
|
|
|
"def plot = new Plot(logY: true, yLogBase: 10)\n",
|
|
|
|
"plot << new Line(x: e, y: sigmaEl, displayName: \"Elastic\")\n",
|
|
|
|
"plot << new Line(x: e, y: sigmaIon, displayName: \"Ionization\")\n",
|
|
|
|
"plot << new Line(x: e, y: sigmaExc, displayName: \"Excitation\")\n"
|
|
|
|
]
|
|
|
|
},
|
2018-12-03 12:23:27 +03:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": 15,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [
|
|
|
|
{
|
|
|
|
"name": "stdout",
|
|
|
|
"output_type": "stream",
|
|
|
|
"text": [
|
|
|
|
"E(keV)\telastic\tion\texc\n",
|
|
|
|
"12.0\t0.43948540252301355\t2.7362696996880764\t2.2754271467658227\n",
|
|
|
|
"12.1\t0.4360219815420227\t2.716347129996631\t2.259247553470829\n",
|
|
|
|
"12.2\t0.4326153394877464\t2.6967291910800784\t2.2433117665045716\n",
|
|
|
|
"12.3\t0.42926409223681455\t2.6774088086825643\t2.227614186457129\n",
|
|
|
|
"12.4\t0.42596690029168804\t2.6583791281775273\t2.212149386181278\n",
|
|
|
|
"12.5\t0.4227224669965498\t2.639633506055748\t2.1969121041685504\n",
|
|
|
|
"12.6\t0.41952953683810995\t2.621165501807934\t2.1818972382301722\n",
|
|
|
|
"12.7\t0.4163868938266485\t2.602968870180603\t2.1670998394665926\n",
|
|
|
|
"12.8\t0.4132933599529065\t2.585037553785318\t2.1525151065102723\n",
|
|
|
|
"12.9\t0.4102477937167139\t2.567365676042546\t2.138138380027344\n",
|
|
|
|
"13.0\t0.4072490887234942\t2.5499475344425586\t2.123965137464613\n",
|
|
|
|
"13.1\t0.4042961723450181\t2.532777594106803\t2.1099909880291814\n",
|
|
|
|
"13.2\t0.40138800444100226\t2.515850481634202\t2.096211667888705\n",
|
|
|
|
"13.3\t0.3985235761383543\t2.4991609792177183\t2.082623035581028\n",
|
|
|
|
"13.4\t0.3957019086650494\t2.4827040190174023\t2.069221067622563\n",
|
|
|
|
"13.5\t0.39292205223581\t2.466474677776929\t2.0560018543054204\n",
|
|
|
|
"13.6\t0.39018308498692494\t2.4504681716713828\t2.042961595673853\n",
|
|
|
|
"13.7\t0.3874841119576961\t2.434679851374739\t2.0300965976711156\n",
|
|
|
|
"13.8\t0.3848242641161482\t2.419105197336177\t2.0174032684483527\n",
|
|
|
|
"13.9\t0.3822026974267757\t2.403739815254919\t2.00487811482759\n",
|
|
|
|
"14.0\t0.3796185919582249\t2.3885794317439313\t1.9925177389113418\n",
|
|
|
|
"14.1\t0.3770711510289289\t2.373619890173301\t1.9803188348317768\n",
|
|
|
|
"14.2\t0.3745596003888268\t2.358857146684646\t1.9682781856327505\n",
|
|
|
|
"14.3\t0.3720831874354002\t2.3442872663683785\t1.9563926602783916\n",
|
|
|
|
"14.4\t0.36964118046236066\t2.32990641959609\t1.9446592107822769\n",
|
|
|
|
"14.5\t0.36723286793941123\t2.315710878500726\t1.9330748694515214\n",
|
|
|
|
"14.6\t0.3648575578215951\t2.3016970135976464\t1.9216367462404509\n",
|
|
|
|
"14.7\t0.36251457688682004\t2.287861290540006\t1.910342026208781\n",
|
|
|
|
"14.8\t0.3602032701002296\t2.274200267002247\t1.8991879670794969\n",
|
|
|
|
"14.9\t0.357923000004158\t2.26071058968582\t1.8881718968918926\n",
|
|
|
|
"15.0\t0.3556731461324769\t2.2473889914415754\t1.8772912117454528\n",
|
|
|
|
"15.1\t0.353453104448203\t2.234232288503513\t1.8665433736304802\n",
|
|
|
|
"15.2\t0.35126228680329497\t2.221237377828907\t1.8559259083415982\n",
|
|
|
|
"15.3\t0.3491001204196282\t2.2084012345400286\t1.845436403470438\n",
|
|
|
|
"15.4\t0.3469660473901797\t2.1957209094629615\t1.835072506474014\n",
|
|
|
|
"15.5\t0.3448595241995173\t2.1831935267592297\t1.824831922815469\n",
|
|
|
|
"15.6\t0.3427800212627204\t2.170816281646157\t1.8147124141740314\n",
|
|
|
|
"15.7\t0.34072702248191666\t2.158586438202101\t1.8047117967211865\n",
|
|
|
|
"15.8\t0.33870002481965195\t2.1465013272528792\t1.7948279394602165\n",
|
|
|
|
"15.9\t0.3366985378883526\t2.134558344335901\t1.7850587626263867\n",
|
|
|
|
"16.0\t0.33472208355517563\t2.122754947738674\t1.7754022361452126\n",
|
|
|
|
"16.1\t0.33277019556158083\t2.111088656608532\t1.7658563781463463\n",
|
|
|
|
"16.2\t0.33084241915698676\t2.0995570491305764\t1.7564192535307461\n",
|
|
|
|
"16.3\t0.32893831074590485\t2.0881577607709536\t1.7470889725889123\n",
|
|
|
|
"16.4\t0.3270574375479805\t2.0768884825827687\t1.7378636896680617\n",
|
|
|
|
"16.5\t0.3251993772703896\t2.0657469595720115\t1.7287416018862318\n",
|
|
|
|
"16.6\t0.32336371779207285\t2.054730989121034\t1.7197209478913829\n",
|
|
|
|
"16.7\t0.3215500568593091\t2.043838419467228\t1.7108000066636726\n",
|
|
|
|
"16.8\t0.31975800179215863\t2.0330671482346325\t1.7019770963591483\n",
|
|
|
|
"16.9\t0.3179871692013229\t2.022415121016355\t1.693250573193194\n",
|
|
|
|
"17.0\t0.3162371847149949\t2.011880330005736\t1.684618830362136\n",
|
|
|
|
"17.1\t0.3145076827152896\t2.0014608126743285\t1.6760802970014965\n",
|
|
|
|
"17.2\t0.31279830608386505\t1.991154650494809\t1.6676334371794341\n",
|
|
|
|
"17.3\t0.31110870595636253\t1.9809599677070577\t1.6592767489239986\n",
|
|
|
|
"17.4\t0.3094385414853119\t1.9708749301257074\t1.6510087632828718\n",
|
|
|
|
"17.5\t0.3077874796111622\t1.9608977439875288\t1.6428280434143254\n",
|
|
|
|
"17.6\t0.30615519484111486\t1.9510266548371218\t1.6347331837082066\n",
|
|
|
|
"17.7\t0.3045413690354524\t1.9412599464494087\t1.6267228089357717\n",
|
|
|
|
"17.8\t0.3029456912010658\t1.9315959397875393\t1.6187955734272899\n",
|
|
|
|
"17.9\t0.3013678572919011\t1.9220329919948316\t1.6109501602763423\n",
|
|
|
|
"18.0\t0.29980757001605496\t1.9125694954194674\t1.603185280569817\n",
|
|
|
|
"18.1\t0.29826453864926233\t1.9032038766707016\t1.5954996726426307\n",
|
|
|
|
"18.2\t0.29673847885453164\t1.8939345957053948\t1.5878921013562524\n",
|
|
|
|
"18.3\t0.29522911250768985\t1.8847601449437406\t1.5803613574001418\n",
|
|
|
|
"18.4\t0.2937361675286164\t1.8756790484131034\t1.5729062566152603\n",
|
|
|
|
"18.5\t0.2922593777179467\t1.866689860918917\t1.565525639338836\n"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"data": {
|
|
|
|
"text/plain": [
|
|
|
|
"null"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"execution_count": 15,
|
|
|
|
"metadata": {},
|
|
|
|
"output_type": "execute_result"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"source": [
|
|
|
|
"println \"E(keV)\\telastic\\tion\\texc\"\n",
|
|
|
|
"for(d = 12.0; d < 18.6; d += 0.1){\n",
|
|
|
|
" def sigmaEl = scatter.sigmael(d*1000)/factor\n",
|
|
|
|
" def sigmaIon = scatter.sigmaion(d*1000)/factor\n",
|
|
|
|
" def sigmaExc = scatter.sigmaexc(d*1000)/factor\n",
|
|
|
|
" println \"$d\\t$sigmaEl\\t$sigmaIon\\t$sigmaExc\"\n",
|
|
|
|
"}"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": []
|
|
|
|
},
|
2018-04-08 22:03:23 +03:00
|
|
|
{
|
|
|
|
"cell_type": "code",
|
|
|
|
"execution_count": null,
|
|
|
|
"metadata": {},
|
|
|
|
"outputs": [],
|
|
|
|
"source": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"metadata": {
|
|
|
|
"kernelspec": {
|
|
|
|
"display_name": "Groovy",
|
|
|
|
"language": "groovy",
|
|
|
|
"name": "groovy"
|
|
|
|
},
|
|
|
|
"language_info": {
|
|
|
|
"codemirror_mode": "groovy",
|
|
|
|
"file_extension": ".groovy",
|
|
|
|
"mimetype": "",
|
|
|
|
"name": "Groovy",
|
|
|
|
"nbconverter_exporter": "",
|
|
|
|
"version": "2.4.3"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"nbformat": 4,
|
|
|
|
"nbformat_minor": 2
|
|
|
|
}
|