[enh] unstructured add files to repo
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
batch
|
||||
batch*
|
||||
|
||||
/.gradle/
|
||||
/.idea/
|
||||
|
||||
379
Manifest.toml
Normal file
379
Manifest.toml
Normal file
@@ -0,0 +1,379 @@
|
||||
# This file is machine-generated - editing it directly is not advised
|
||||
|
||||
julia_version = "1.11.1"
|
||||
manifest_format = "2.0"
|
||||
project_hash = "33308c26aeaf88935c476becd75fdb6db775d1fc"
|
||||
|
||||
[[deps.ArgTools]]
|
||||
uuid = "0dad84c5-d112-42e6-8d28-ef12dabb789f"
|
||||
version = "1.1.2"
|
||||
|
||||
[[deps.Artifacts]]
|
||||
uuid = "56f22d72-fd6d-98f1-02f0-08ddc0907c33"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.Base64]]
|
||||
uuid = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.BitFlags]]
|
||||
git-tree-sha1 = "0691e34b3bb8be9307330f88d1a3c3f25466c24d"
|
||||
uuid = "d1d4a3ce-64b1-5f1a-9ba4-7e7e69966f35"
|
||||
version = "0.1.9"
|
||||
|
||||
[[deps.CodecZlib]]
|
||||
deps = ["TranscodingStreams", "Zlib_jll"]
|
||||
git-tree-sha1 = "bce6804e5e6044c6daab27bb533d1295e4a2e759"
|
||||
uuid = "944b1d66-785c-5afd-91f1-9de20f533193"
|
||||
version = "0.7.6"
|
||||
|
||||
[[deps.ConcurrentUtilities]]
|
||||
deps = ["Serialization", "Sockets"]
|
||||
git-tree-sha1 = "ea32b83ca4fefa1768dc84e504cc0a94fb1ab8d1"
|
||||
uuid = "f0e56b4a-5159-44fe-b623-3e5288b988bb"
|
||||
version = "2.4.2"
|
||||
|
||||
[[deps.Configurations]]
|
||||
deps = ["ExproniconLite", "OrderedCollections", "TOML"]
|
||||
git-tree-sha1 = "4358750bb58a3caefd5f37a4a0c5bfdbbf075252"
|
||||
uuid = "5218b696-f38b-4ac9-8b61-a12ec717816d"
|
||||
version = "0.17.6"
|
||||
|
||||
[[deps.DataAPI]]
|
||||
git-tree-sha1 = "abe83f3a2f1b857aac70ef8b269080af17764bbe"
|
||||
uuid = "9a962f9c-6df0-11e9-0e5d-c546b8b5ee8a"
|
||||
version = "1.16.0"
|
||||
|
||||
[[deps.DataValueInterfaces]]
|
||||
git-tree-sha1 = "bfc1187b79289637fa0ef6d4436ebdfe6905cbd6"
|
||||
uuid = "e2d170a0-9d28-54be-80f0-106bbe20a464"
|
||||
version = "1.0.0"
|
||||
|
||||
[[deps.Dates]]
|
||||
deps = ["Printf"]
|
||||
uuid = "ade2ca70-3891-5945-98fb-dc099432e06a"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.Distributed]]
|
||||
deps = ["Random", "Serialization", "Sockets"]
|
||||
uuid = "8ba89e20-285c-5b6f-9357-94700520ee1b"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.Downloads]]
|
||||
deps = ["ArgTools", "FileWatching", "LibCURL", "NetworkOptions"]
|
||||
uuid = "f43a241f-c20a-4ad4-852c-f6b1247861c6"
|
||||
version = "1.6.0"
|
||||
|
||||
[[deps.ExceptionUnwrapping]]
|
||||
deps = ["Test"]
|
||||
git-tree-sha1 = "dcb08a0d93ec0b1cdc4af184b26b591e9695423a"
|
||||
uuid = "460bff9d-24e4-43bc-9d9f-a8973cb893f4"
|
||||
version = "0.1.10"
|
||||
|
||||
[[deps.ExpressionExplorer]]
|
||||
git-tree-sha1 = "7005f1493c18afb2fa3bdf06e02b16a9fde5d16d"
|
||||
uuid = "21656369-7473-754a-2065-74616d696c43"
|
||||
version = "1.1.0"
|
||||
|
||||
[[deps.ExproniconLite]]
|
||||
git-tree-sha1 = "4c9ed87a6b3cd90acf24c556f2119533435ded38"
|
||||
uuid = "55351af7-c7e9-48d6-89ff-24e801d99491"
|
||||
version = "0.10.13"
|
||||
|
||||
[[deps.FileWatching]]
|
||||
uuid = "7b1f6079-737a-58dc-b8bc-7a2ca5c1b5ee"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.FuzzyCompletions]]
|
||||
deps = ["REPL"]
|
||||
git-tree-sha1 = "be713866335f48cfb1285bff2d0cbb8304c1701c"
|
||||
uuid = "fb4132e2-a121-4a70-b8a1-d5b831dcdcc2"
|
||||
version = "0.5.5"
|
||||
|
||||
[[deps.HTTP]]
|
||||
deps = ["Base64", "CodecZlib", "ConcurrentUtilities", "Dates", "ExceptionUnwrapping", "Logging", "LoggingExtras", "MbedTLS", "NetworkOptions", "OpenSSL", "Random", "SimpleBufferStream", "Sockets", "URIs", "UUIDs"]
|
||||
git-tree-sha1 = "bc3f416a965ae61968c20d0ad867556367f2817d"
|
||||
uuid = "cd3eb016-35fb-5094-929b-558a96fad6f3"
|
||||
version = "1.10.9"
|
||||
|
||||
[[deps.HypertextLiteral]]
|
||||
deps = ["Tricks"]
|
||||
git-tree-sha1 = "7134810b1afce04bbc1045ca1985fbe81ce17653"
|
||||
uuid = "ac1192a8-f4b3-4bfe-ba22-af5b92cd3ab2"
|
||||
version = "0.9.5"
|
||||
|
||||
[[deps.InteractiveUtils]]
|
||||
deps = ["Markdown"]
|
||||
uuid = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.IteratorInterfaceExtensions]]
|
||||
git-tree-sha1 = "a3f24677c21f5bbe9d2a714f95dcd58337fb2856"
|
||||
uuid = "82899510-4779-5014-852e-03e436cf321d"
|
||||
version = "1.0.0"
|
||||
|
||||
[[deps.JLLWrappers]]
|
||||
deps = ["Artifacts", "Preferences"]
|
||||
git-tree-sha1 = "be3dc50a92e5a386872a493a10050136d4703f9b"
|
||||
uuid = "692b3bcd-3c85-4b1f-b108-f13ce0eb3210"
|
||||
version = "1.6.1"
|
||||
|
||||
[[deps.LazilyInitializedFields]]
|
||||
git-tree-sha1 = "0f2da712350b020bc3957f269c9caad516383ee0"
|
||||
uuid = "0e77f7df-68c5-4e49-93ce-4cd80f5598bf"
|
||||
version = "1.3.0"
|
||||
|
||||
[[deps.LibCURL]]
|
||||
deps = ["LibCURL_jll", "MozillaCACerts_jll"]
|
||||
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
|
||||
version = "0.6.4"
|
||||
|
||||
[[deps.LibCURL_jll]]
|
||||
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll", "Zlib_jll", "nghttp2_jll"]
|
||||
uuid = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
|
||||
version = "8.6.0+0"
|
||||
|
||||
[[deps.LibGit2]]
|
||||
deps = ["Base64", "LibGit2_jll", "NetworkOptions", "Printf", "SHA"]
|
||||
uuid = "76f85450-5226-5b5a-8eaa-529ad045b433"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.LibGit2_jll]]
|
||||
deps = ["Artifacts", "LibSSH2_jll", "Libdl", "MbedTLS_jll"]
|
||||
uuid = "e37daf67-58a4-590a-8e99-b0245dd2ffc5"
|
||||
version = "1.7.2+0"
|
||||
|
||||
[[deps.LibSSH2_jll]]
|
||||
deps = ["Artifacts", "Libdl", "MbedTLS_jll"]
|
||||
uuid = "29816b5a-b9ab-546f-933c-edad1886dfa8"
|
||||
version = "1.11.0+1"
|
||||
|
||||
[[deps.Libdl]]
|
||||
uuid = "8f399da3-3557-5675-b5ff-fb832c97cbdb"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.Logging]]
|
||||
uuid = "56ddb016-857b-54e1-b83d-db4d58db5568"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.LoggingExtras]]
|
||||
deps = ["Dates", "Logging"]
|
||||
git-tree-sha1 = "f02b56007b064fbfddb4c9cd60161b6dd0f40df3"
|
||||
uuid = "e6f89c97-d47a-5376-807f-9c37f3926c36"
|
||||
version = "1.1.0"
|
||||
|
||||
[[deps.MIMEs]]
|
||||
git-tree-sha1 = "65f28ad4b594aebe22157d6fac869786a255b7eb"
|
||||
uuid = "6c6e2e6c-3030-632d-7369-2d6c69616d65"
|
||||
version = "0.1.4"
|
||||
|
||||
[[deps.Malt]]
|
||||
deps = ["Distributed", "Logging", "RelocatableFolders", "Serialization", "Sockets"]
|
||||
git-tree-sha1 = "02a728ada9d6caae583a0f87c1dd3844f99ec3fd"
|
||||
uuid = "36869731-bdee-424d-aa32-cab38c994e3b"
|
||||
version = "1.1.2"
|
||||
|
||||
[[deps.Markdown]]
|
||||
deps = ["Base64"]
|
||||
uuid = "d6f4376e-aef5-505a-96c1-9c027394607a"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.MbedTLS]]
|
||||
deps = ["Dates", "MbedTLS_jll", "MozillaCACerts_jll", "NetworkOptions", "Random", "Sockets"]
|
||||
git-tree-sha1 = "c067a280ddc25f196b5e7df3877c6b226d390aaf"
|
||||
uuid = "739be429-bea8-5141-9913-cc70e7f3736d"
|
||||
version = "1.1.9"
|
||||
|
||||
[[deps.MbedTLS_jll]]
|
||||
deps = ["Artifacts", "Libdl"]
|
||||
uuid = "c8ffd9c3-330d-5841-b78e-0817d7145fa1"
|
||||
version = "2.28.6+0"
|
||||
|
||||
[[deps.MozillaCACerts_jll]]
|
||||
uuid = "14a3606d-f60d-562e-9121-12d972cd8159"
|
||||
version = "2023.12.12"
|
||||
|
||||
[[deps.MsgPack]]
|
||||
deps = ["Serialization"]
|
||||
git-tree-sha1 = "f5db02ae992c260e4826fe78c942954b48e1d9c2"
|
||||
uuid = "99f44e22-a591-53d1-9472-aa23ef4bd671"
|
||||
version = "1.2.1"
|
||||
|
||||
[[deps.NetworkOptions]]
|
||||
uuid = "ca575930-c2e3-43a9-ace4-1e988b2c1908"
|
||||
version = "1.2.0"
|
||||
|
||||
[[deps.OpenSSL]]
|
||||
deps = ["BitFlags", "Dates", "MozillaCACerts_jll", "OpenSSL_jll", "Sockets"]
|
||||
git-tree-sha1 = "38cb508d080d21dc1128f7fb04f20387ed4c0af4"
|
||||
uuid = "4d8831e6-92b7-49fb-bdf8-b643e874388c"
|
||||
version = "1.4.3"
|
||||
|
||||
[[deps.OpenSSL_jll]]
|
||||
deps = ["Artifacts", "JLLWrappers", "Libdl"]
|
||||
git-tree-sha1 = "7493f61f55a6cce7325f197443aa80d32554ba10"
|
||||
uuid = "458c3c95-2e84-50aa-8efc-19380b2a3a95"
|
||||
version = "3.0.15+1"
|
||||
|
||||
[[deps.OrderedCollections]]
|
||||
git-tree-sha1 = "dfdf5519f235516220579f949664f1bf44e741c5"
|
||||
uuid = "bac558e1-5e72-5ebc-8fee-abe8a469f55d"
|
||||
version = "1.6.3"
|
||||
|
||||
[[deps.Pkg]]
|
||||
deps = ["Artifacts", "Dates", "Downloads", "FileWatching", "LibGit2", "Libdl", "Logging", "Markdown", "Printf", "Random", "SHA", "TOML", "Tar", "UUIDs", "p7zip_jll"]
|
||||
uuid = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
|
||||
version = "1.11.0"
|
||||
weakdeps = ["REPL"]
|
||||
|
||||
[deps.Pkg.extensions]
|
||||
REPLExt = "REPL"
|
||||
|
||||
[[deps.Pluto]]
|
||||
deps = ["Base64", "Configurations", "Dates", "Downloads", "ExpressionExplorer", "FileWatching", "FuzzyCompletions", "HTTP", "HypertextLiteral", "InteractiveUtils", "Logging", "LoggingExtras", "MIMEs", "Malt", "Markdown", "MsgPack", "Pkg", "PlutoDependencyExplorer", "PrecompileSignatures", "PrecompileTools", "REPL", "RegistryInstances", "RelocatableFolders", "Scratch", "Sockets", "TOML", "Tables", "URIs", "UUIDs"]
|
||||
git-tree-sha1 = "3d97d067ea3d04f51821ac86b0d04024fe6e4df8"
|
||||
uuid = "c3e4b0f8-55cb-11ea-2926-15256bba5781"
|
||||
version = "0.20.3"
|
||||
|
||||
[[deps.PlutoDependencyExplorer]]
|
||||
deps = ["ExpressionExplorer", "InteractiveUtils", "Markdown"]
|
||||
git-tree-sha1 = "592470bdf383cd34e88a21bbd7f1f7ffc52a21c6"
|
||||
uuid = "72656b73-756c-7461-726b-72656b6b696b"
|
||||
version = "1.1.0"
|
||||
|
||||
[[deps.PrecompileSignatures]]
|
||||
git-tree-sha1 = "18ef344185f25ee9d51d80e179f8dad33dc48eb1"
|
||||
uuid = "91cefc8d-f054-46dc-8f8c-26e11d7c5411"
|
||||
version = "3.0.3"
|
||||
|
||||
[[deps.PrecompileTools]]
|
||||
deps = ["Preferences"]
|
||||
git-tree-sha1 = "5aa36f7049a63a1528fe8f7c3f2113413ffd4e1f"
|
||||
uuid = "aea7be01-6a6a-4083-8856-8a6e6704d82a"
|
||||
version = "1.2.1"
|
||||
|
||||
[[deps.Preferences]]
|
||||
deps = ["TOML"]
|
||||
git-tree-sha1 = "9306f6085165d270f7e3db02af26a400d580f5c6"
|
||||
uuid = "21216c6a-2e73-6563-6e65-726566657250"
|
||||
version = "1.4.3"
|
||||
|
||||
[[deps.Printf]]
|
||||
deps = ["Unicode"]
|
||||
uuid = "de0858da-6303-5e67-8744-51eddeeeb8d7"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.REPL]]
|
||||
deps = ["InteractiveUtils", "Markdown", "Sockets", "StyledStrings", "Unicode"]
|
||||
uuid = "3fa0cd96-eef1-5676-8a61-b3b8758bbffb"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.Random]]
|
||||
deps = ["SHA"]
|
||||
uuid = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.RegistryInstances]]
|
||||
deps = ["LazilyInitializedFields", "Pkg", "TOML", "Tar"]
|
||||
git-tree-sha1 = "ffd19052caf598b8653b99404058fce14828be51"
|
||||
uuid = "2792f1a3-b283-48e8-9a74-f99dce5104f3"
|
||||
version = "0.1.0"
|
||||
|
||||
[[deps.RelocatableFolders]]
|
||||
deps = ["SHA", "Scratch"]
|
||||
git-tree-sha1 = "ffdaf70d81cf6ff22c2b6e733c900c3321cab864"
|
||||
uuid = "05181044-ff0b-4ac5-8273-598c1e38db00"
|
||||
version = "1.0.1"
|
||||
|
||||
[[deps.SHA]]
|
||||
uuid = "ea8e919c-243c-51af-8825-aaa63cd721ce"
|
||||
version = "0.7.0"
|
||||
|
||||
[[deps.Scratch]]
|
||||
deps = ["Dates"]
|
||||
git-tree-sha1 = "3bac05bc7e74a75fd9cba4295cde4045d9fe2386"
|
||||
uuid = "6c6a2e73-6563-6170-7368-637461726353"
|
||||
version = "1.2.1"
|
||||
|
||||
[[deps.Serialization]]
|
||||
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.SimpleBufferStream]]
|
||||
git-tree-sha1 = "f305871d2f381d21527c770d4788c06c097c9bc1"
|
||||
uuid = "777ac1f9-54b0-4bf8-805c-2214025038e7"
|
||||
version = "1.2.0"
|
||||
|
||||
[[deps.Sockets]]
|
||||
uuid = "6462fe0b-24de-5631-8697-dd941f90decc"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.StyledStrings]]
|
||||
uuid = "f489334b-da3d-4c2e-b8f0-e476e12c162b"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.TOML]]
|
||||
deps = ["Dates"]
|
||||
uuid = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
|
||||
version = "1.0.3"
|
||||
|
||||
[[deps.TableTraits]]
|
||||
deps = ["IteratorInterfaceExtensions"]
|
||||
git-tree-sha1 = "c06b2f539df1c6efa794486abfb6ed2022561a39"
|
||||
uuid = "3783bdb8-4a98-5b6b-af9a-565f29a5fe9c"
|
||||
version = "1.0.1"
|
||||
|
||||
[[deps.Tables]]
|
||||
deps = ["DataAPI", "DataValueInterfaces", "IteratorInterfaceExtensions", "OrderedCollections", "TableTraits"]
|
||||
git-tree-sha1 = "598cd7c1f68d1e205689b1c2fe65a9f85846f297"
|
||||
uuid = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
|
||||
version = "1.12.0"
|
||||
|
||||
[[deps.Tar]]
|
||||
deps = ["ArgTools", "SHA"]
|
||||
uuid = "a4e569a6-e804-4fa4-b0f3-eef7a1d5b13e"
|
||||
version = "1.10.0"
|
||||
|
||||
[[deps.Test]]
|
||||
deps = ["InteractiveUtils", "Logging", "Random", "Serialization"]
|
||||
uuid = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.TranscodingStreams]]
|
||||
git-tree-sha1 = "0c45878dcfdcfa8480052b6ab162cdd138781742"
|
||||
uuid = "3bb67fe8-82b1-5028-8e26-92a6c54297fa"
|
||||
version = "0.11.3"
|
||||
|
||||
[[deps.Tricks]]
|
||||
git-tree-sha1 = "7822b97e99a1672bfb1b49b668a6d46d58d8cbcb"
|
||||
uuid = "410a4b4d-49e4-4fbc-ab6d-cb71b17b3775"
|
||||
version = "0.1.9"
|
||||
|
||||
[[deps.URIs]]
|
||||
git-tree-sha1 = "67db6cc7b3821e19ebe75791a9dd19c9b1188f2b"
|
||||
uuid = "5c2747f8-b7ea-4ff2-ba2e-563bfd36b1d4"
|
||||
version = "1.5.1"
|
||||
|
||||
[[deps.UUIDs]]
|
||||
deps = ["Random", "SHA"]
|
||||
uuid = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.Unicode]]
|
||||
uuid = "4ec0a83e-493e-50e2-b9ac-8f72acf5a8f5"
|
||||
version = "1.11.0"
|
||||
|
||||
[[deps.Zlib_jll]]
|
||||
deps = ["Libdl"]
|
||||
uuid = "83775a58-1f1d-513f-b197-d71354ab007a"
|
||||
version = "1.2.13+1"
|
||||
|
||||
[[deps.nghttp2_jll]]
|
||||
deps = ["Artifacts", "Libdl"]
|
||||
uuid = "8e850ede-7688-5339-a07c-302acd2aaf8d"
|
||||
version = "1.59.0+0"
|
||||
|
||||
[[deps.p7zip_jll]]
|
||||
deps = ["Artifacts", "Libdl"]
|
||||
uuid = "3f19e933-33d8-53b3-aaab-bd5110c3b7a0"
|
||||
version = "17.4.0+2"
|
||||
2
Project.toml
Normal file
2
Project.toml
Normal file
@@ -0,0 +1,2 @@
|
||||
[deps]
|
||||
Pluto = "c3e4b0f8-55cb-11ea-2926-15256bba5781"
|
||||
22
TrappingToFit.md
Normal file
22
TrappingToFit.md
Normal file
@@ -0,0 +1,22 @@
|
||||
## Получение треппинга
|
||||
|
||||
1. Получаю события из симуляции нозика. Пример таблицы:
|
||||
```
|
||||
id E theta theta_start colNum L state
|
||||
164063 11044.8 22.3165 149.789 26 4191.84 ACCEPTED
|
||||
```
|
||||
из данных также беру общее количество событий PASS (не попавших в ловушку
|
||||
и идущих в спектр)
|
||||
2. Для каждой энергии беру колону `E` и вычитаю ее из этой энергии. По полученным данным строю 2 гистограммы:
|
||||
1. 0..50 эВ с шагом 1
|
||||
2. 0..7500 эВ с шагом 100
|
||||
3. Нормирую каждую гистограмму на количество PASS для данной энергии
|
||||
4. По полученным гистограммам делаю 2 сеточные функции с линейной интерполяцией
|
||||
f(E, delta)
|
||||
- если дельта < 50, использую точную сетку, если больше - грубую
|
||||
5. Использую полученный интерполятор в качестве функции треппига.
|
||||
Нозик передает в качестве агрументов ei, ef. В интерполятор идет
|
||||
f(ei, ei - ef)
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
# Script parameters
|
||||
BATCH_DIRECTORY="batch"
|
||||
VOLTAGES=("11000.0" "12000.0" "14000.0" "16000.0" "18000.0")
|
||||
BATCH_DIRECTORY="batch-02"
|
||||
VOLTAGES=("8000.0")
|
||||
|
||||
mkdir -p $BATCH_DIRECTORY
|
||||
|
||||
|
||||
527
notebooks/.ipynb_checkpoints/cross-sections-checkpoint.ipynb
Normal file
527
notebooks/.ipynb_checkpoints/cross-sections-checkpoint.ipynb
Normal file
@@ -0,0 +1,527 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2018-04-08T18:49+0000",
|
||||
"start_time": "2018-04-08T18:49+0000"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "b3666d93-1a9f-47f6-b272-8c9cde5eb9eb",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
"method": "display_data"
|
||||
},
|
||||
"metadata": {},
|
||||
"output_type": "display_data"
|
||||
},
|
||||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "0e65aaab-812e-45f3-98df-43ed93255c5e",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
"method": "display_data"
|
||||
},
|
||||
"metadata": {},
|
||||
"output_type": "display_data"
|
||||
}
|
||||
],
|
||||
"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",
|
||||
"execution_count": 5,
|
||||
"metadata": {
|
||||
"ExecuteTime": {
|
||||
"end_time": "2018-04-08T18:58+0000",
|
||||
"start_time": "2018-04-08T18:58+0000"
|
||||
}
|
||||
},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "8e62373b-9e28-4669-937f-06f5c908a4bd",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
"method": "display_data"
|
||||
},
|
||||
"metadata": {},
|
||||
"output_type": "display_data"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"scatter = inr.numass.trapping.Scatter.INSTANCE\n",
|
||||
"\n",
|
||||
"def e = (1..20) // energy in keV\n",
|
||||
"\n",
|
||||
"factor = 1e-22\n",
|
||||
"sigmaEl = e.collect{scatter.sigmael(it*1000)/factor}\n",
|
||||
"sigmaIon = e.collect{scatter.sigmaion(it*1000)/factor}\n",
|
||||
"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"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"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": 4,
|
||||
"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": 21,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "b29b147e-ab0d-473b-b9db-909013996ad7",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
"method": "display_data"
|
||||
},
|
||||
"metadata": {},
|
||||
"output_type": "display_data"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import com.twosigma.beakerx.table.*\n",
|
||||
"\n",
|
||||
"def list = []\n",
|
||||
" \n",
|
||||
"for(d = 12.0; d < 18.6; d += 0.1){\n",
|
||||
" list << [\n",
|
||||
" \"x\": d,\n",
|
||||
" \"el\": scatter.sigmael(d*1000)/factor,\n",
|
||||
" \"ion\": scatter.sigmaion(d*1000)/factor,\n",
|
||||
" \"exc\": scatter.sigmaexc(d*1000)/factor \n",
|
||||
" ]\n",
|
||||
"}\n",
|
||||
"beakerx[\"table\"] = new TableDisplay(list)\n",
|
||||
"list"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 23,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"[{'x': 12.0,\n",
|
||||
" 'el': 0.43948540252301355,\n",
|
||||
" 'ion': 2.7362696996880764,\n",
|
||||
" 'exc': 2.2754271467658227},\n",
|
||||
" {'x': 12.1,\n",
|
||||
" 'el': 0.4360219815420227,\n",
|
||||
" 'ion': 2.716347129996631,\n",
|
||||
" 'exc': 2.259247553470829},\n",
|
||||
" {'x': 12.2,\n",
|
||||
" 'el': 0.4326153394877464,\n",
|
||||
" 'ion': 2.6967291910800784,\n",
|
||||
" 'exc': 2.2433117665045716},\n",
|
||||
" {'x': 12.3,\n",
|
||||
" 'el': 0.42926409223681455,\n",
|
||||
" 'ion': 2.6774088086825643,\n",
|
||||
" 'exc': 2.227614186457129},\n",
|
||||
" {'x': 12.4,\n",
|
||||
" 'el': 0.42596690029168804,\n",
|
||||
" 'ion': 2.6583791281775273,\n",
|
||||
" 'exc': 2.212149386181278},\n",
|
||||
" {'x': 12.5,\n",
|
||||
" 'el': 0.4227224669965498,\n",
|
||||
" 'ion': 2.639633506055748,\n",
|
||||
" 'exc': 2.1969121041685504},\n",
|
||||
" {'x': 12.6,\n",
|
||||
" 'el': 0.41952953683810995,\n",
|
||||
" 'ion': 2.621165501807934,\n",
|
||||
" 'exc': 2.1818972382301722},\n",
|
||||
" {'x': 12.7,\n",
|
||||
" 'el': 0.4163868938266485,\n",
|
||||
" 'ion': 2.602968870180603,\n",
|
||||
" 'exc': 2.1670998394665926},\n",
|
||||
" {'x': 12.8,\n",
|
||||
" 'el': 0.4132933599529065,\n",
|
||||
" 'ion': 2.585037553785318,\n",
|
||||
" 'exc': 2.1525151065102723},\n",
|
||||
" {'x': 12.9,\n",
|
||||
" 'el': 0.4102477937167139,\n",
|
||||
" 'ion': 2.567365676042546,\n",
|
||||
" 'exc': 2.138138380027344},\n",
|
||||
" {'x': 13.0,\n",
|
||||
" 'el': 0.4072490887234942,\n",
|
||||
" 'ion': 2.5499475344425586,\n",
|
||||
" 'exc': 2.123965137464613},\n",
|
||||
" {'x': 13.1,\n",
|
||||
" 'el': 0.4042961723450181,\n",
|
||||
" 'ion': 2.532777594106803,\n",
|
||||
" 'exc': 2.1099909880291814},\n",
|
||||
" {'x': 13.2,\n",
|
||||
" 'el': 0.40138800444100226,\n",
|
||||
" 'ion': 2.515850481634202,\n",
|
||||
" 'exc': 2.096211667888705},\n",
|
||||
" {'x': 13.3,\n",
|
||||
" 'el': 0.3985235761383543,\n",
|
||||
" 'ion': 2.4991609792177183,\n",
|
||||
" 'exc': 2.082623035581028},\n",
|
||||
" {'x': 13.4,\n",
|
||||
" 'el': 0.3957019086650494,\n",
|
||||
" 'ion': 2.4827040190174023,\n",
|
||||
" 'exc': 2.069221067622563},\n",
|
||||
" {'x': 13.5,\n",
|
||||
" 'el': 0.39292205223581,\n",
|
||||
" 'ion': 2.466474677776929,\n",
|
||||
" 'exc': 2.0560018543054204},\n",
|
||||
" {'x': 13.6,\n",
|
||||
" 'el': 0.39018308498692494,\n",
|
||||
" 'ion': 2.4504681716713828,\n",
|
||||
" 'exc': 2.042961595673853},\n",
|
||||
" {'x': 13.7,\n",
|
||||
" 'el': 0.3874841119576961,\n",
|
||||
" 'ion': 2.434679851374739,\n",
|
||||
" 'exc': 2.0300965976711156},\n",
|
||||
" {'x': 13.8,\n",
|
||||
" 'el': 0.3848242641161482,\n",
|
||||
" 'ion': 2.419105197336177,\n",
|
||||
" 'exc': 2.0174032684483527},\n",
|
||||
" {'x': 13.9,\n",
|
||||
" 'el': 0.3822026974267757,\n",
|
||||
" 'ion': 2.403739815254919,\n",
|
||||
" 'exc': 2.00487811482759},\n",
|
||||
" {'x': 14.0,\n",
|
||||
" 'el': 0.3796185919582249,\n",
|
||||
" 'ion': 2.3885794317439313,\n",
|
||||
" 'exc': 1.9925177389113418},\n",
|
||||
" {'x': 14.1,\n",
|
||||
" 'el': 0.3770711510289289,\n",
|
||||
" 'ion': 2.373619890173301,\n",
|
||||
" 'exc': 1.9803188348317768},\n",
|
||||
" {'x': 14.2,\n",
|
||||
" 'el': 0.3745596003888268,\n",
|
||||
" 'ion': 2.358857146684646,\n",
|
||||
" 'exc': 1.9682781856327505},\n",
|
||||
" {'x': 14.3,\n",
|
||||
" 'el': 0.3720831874354002,\n",
|
||||
" 'ion': 2.3442872663683785,\n",
|
||||
" 'exc': 1.9563926602783916},\n",
|
||||
" {'x': 14.4,\n",
|
||||
" 'el': 0.36964118046236066,\n",
|
||||
" 'ion': 2.32990641959609,\n",
|
||||
" 'exc': 1.9446592107822769},\n",
|
||||
" {'x': 14.5,\n",
|
||||
" 'el': 0.36723286793941123,\n",
|
||||
" 'ion': 2.315710878500726,\n",
|
||||
" 'exc': 1.9330748694515214},\n",
|
||||
" {'x': 14.6,\n",
|
||||
" 'el': 0.3648575578215951,\n",
|
||||
" 'ion': 2.3016970135976464,\n",
|
||||
" 'exc': 1.9216367462404509},\n",
|
||||
" {'x': 14.7,\n",
|
||||
" 'el': 0.36251457688682004,\n",
|
||||
" 'ion': 2.287861290540006,\n",
|
||||
" 'exc': 1.910342026208781},\n",
|
||||
" {'x': 14.8,\n",
|
||||
" 'el': 0.3602032701002296,\n",
|
||||
" 'ion': 2.274200267002247,\n",
|
||||
" 'exc': 1.8991879670794969},\n",
|
||||
" {'x': 14.9,\n",
|
||||
" 'el': 0.357923000004158,\n",
|
||||
" 'ion': 2.26071058968582,\n",
|
||||
" 'exc': 1.8881718968918926},\n",
|
||||
" {'x': 15.0,\n",
|
||||
" 'el': 0.3556731461324769,\n",
|
||||
" 'ion': 2.2473889914415754,\n",
|
||||
" 'exc': 1.8772912117454528},\n",
|
||||
" {'x': 15.1,\n",
|
||||
" 'el': 0.353453104448203,\n",
|
||||
" 'ion': 2.234232288503513,\n",
|
||||
" 'exc': 1.8665433736304802},\n",
|
||||
" {'x': 15.2,\n",
|
||||
" 'el': 0.35126228680329497,\n",
|
||||
" 'ion': 2.221237377828907,\n",
|
||||
" 'exc': 1.8559259083415982},\n",
|
||||
" {'x': 15.3,\n",
|
||||
" 'el': 0.3491001204196282,\n",
|
||||
" 'ion': 2.2084012345400286,\n",
|
||||
" 'exc': 1.845436403470438},\n",
|
||||
" {'x': 15.4,\n",
|
||||
" 'el': 0.3469660473901797,\n",
|
||||
" 'ion': 2.1957209094629615,\n",
|
||||
" 'exc': 1.835072506474014},\n",
|
||||
" {'x': 15.5,\n",
|
||||
" 'el': 0.3448595241995173,\n",
|
||||
" 'ion': 2.1831935267592297,\n",
|
||||
" 'exc': 1.824831922815469},\n",
|
||||
" {'x': 15.6,\n",
|
||||
" 'el': 0.3427800212627204,\n",
|
||||
" 'ion': 2.170816281646157,\n",
|
||||
" 'exc': 1.8147124141740314},\n",
|
||||
" {'x': 15.7,\n",
|
||||
" 'el': 0.34072702248191666,\n",
|
||||
" 'ion': 2.158586438202101,\n",
|
||||
" 'exc': 1.8047117967211865},\n",
|
||||
" {'x': 15.8,\n",
|
||||
" 'el': 0.33870002481965195,\n",
|
||||
" 'ion': 2.1465013272528792,\n",
|
||||
" 'exc': 1.7948279394602165},\n",
|
||||
" {'x': 15.9,\n",
|
||||
" 'el': 0.3366985378883526,\n",
|
||||
" 'ion': 2.134558344335901,\n",
|
||||
" 'exc': 1.7850587626263867},\n",
|
||||
" {'x': 16.0,\n",
|
||||
" 'el': 0.33472208355517563,\n",
|
||||
" 'ion': 2.122754947738674,\n",
|
||||
" 'exc': 1.7754022361452126},\n",
|
||||
" {'x': 16.1,\n",
|
||||
" 'el': 0.33277019556158083,\n",
|
||||
" 'ion': 2.111088656608532,\n",
|
||||
" 'exc': 1.7658563781463463},\n",
|
||||
" {'x': 16.2,\n",
|
||||
" 'el': 0.33084241915698676,\n",
|
||||
" 'ion': 2.0995570491305764,\n",
|
||||
" 'exc': 1.7564192535307461},\n",
|
||||
" {'x': 16.3,\n",
|
||||
" 'el': 0.32893831074590485,\n",
|
||||
" 'ion': 2.0881577607709536,\n",
|
||||
" 'exc': 1.7470889725889123},\n",
|
||||
" {'x': 16.4,\n",
|
||||
" 'el': 0.3270574375479805,\n",
|
||||
" 'ion': 2.0768884825827687,\n",
|
||||
" 'exc': 1.7378636896680617},\n",
|
||||
" {'x': 16.5,\n",
|
||||
" 'el': 0.3251993772703896,\n",
|
||||
" 'ion': 2.0657469595720115,\n",
|
||||
" 'exc': 1.7287416018862318},\n",
|
||||
" {'x': 16.6,\n",
|
||||
" 'el': 0.32336371779207285,\n",
|
||||
" 'ion': 2.054730989121034,\n",
|
||||
" 'exc': 1.7197209478913829},\n",
|
||||
" {'x': 16.7,\n",
|
||||
" 'el': 0.3215500568593091,\n",
|
||||
" 'ion': 2.043838419467228,\n",
|
||||
" 'exc': 1.7108000066636726},\n",
|
||||
" {'x': 16.8,\n",
|
||||
" 'el': 0.31975800179215863,\n",
|
||||
" 'ion': 2.0330671482346325,\n",
|
||||
" 'exc': 1.7019770963591483},\n",
|
||||
" {'x': 16.9,\n",
|
||||
" 'el': 0.3179871692013229,\n",
|
||||
" 'ion': 2.022415121016355,\n",
|
||||
" 'exc': 1.693250573193194},\n",
|
||||
" {'x': 17.0,\n",
|
||||
" 'el': 0.3162371847149949,\n",
|
||||
" 'ion': 2.011880330005736,\n",
|
||||
" 'exc': 1.684618830362136},\n",
|
||||
" {'x': 17.1,\n",
|
||||
" 'el': 0.3145076827152896,\n",
|
||||
" 'ion': 2.0014608126743285,\n",
|
||||
" 'exc': 1.6760802970014965},\n",
|
||||
" {'x': 17.2,\n",
|
||||
" 'el': 0.31279830608386505,\n",
|
||||
" 'ion': 1.991154650494809,\n",
|
||||
" 'exc': 1.6676334371794341},\n",
|
||||
" {'x': 17.3,\n",
|
||||
" 'el': 0.31110870595636253,\n",
|
||||
" 'ion': 1.9809599677070577,\n",
|
||||
" 'exc': 1.6592767489239986},\n",
|
||||
" {'x': 17.4,\n",
|
||||
" 'el': 0.3094385414853119,\n",
|
||||
" 'ion': 1.9708749301257074,\n",
|
||||
" 'exc': 1.6510087632828718},\n",
|
||||
" {'x': 17.5,\n",
|
||||
" 'el': 0.3077874796111622,\n",
|
||||
" 'ion': 1.9608977439875288,\n",
|
||||
" 'exc': 1.6428280434143254},\n",
|
||||
" {'x': 17.6,\n",
|
||||
" 'el': 0.30615519484111486,\n",
|
||||
" 'ion': 1.9510266548371218,\n",
|
||||
" 'exc': 1.6347331837082066},\n",
|
||||
" {'x': 17.7,\n",
|
||||
" 'el': 0.3045413690354524,\n",
|
||||
" 'ion': 1.9412599464494087,\n",
|
||||
" 'exc': 1.6267228089357717},\n",
|
||||
" {'x': 17.8,\n",
|
||||
" 'el': 0.3029456912010658,\n",
|
||||
" 'ion': 1.9315959397875393,\n",
|
||||
" 'exc': 1.6187955734272899},\n",
|
||||
" {'x': 17.9,\n",
|
||||
" 'el': 0.3013678572919011,\n",
|
||||
" 'ion': 1.9220329919948316,\n",
|
||||
" 'exc': 1.6109501602763423},\n",
|
||||
" {'x': 18.0,\n",
|
||||
" 'el': 0.29980757001605496,\n",
|
||||
" 'ion': 1.9125694954194674,\n",
|
||||
" 'exc': 1.603185280569817},\n",
|
||||
" {'x': 18.1,\n",
|
||||
" 'el': 0.29826453864926233,\n",
|
||||
" 'ion': 1.9032038766707016,\n",
|
||||
" 'exc': 1.5954996726426307},\n",
|
||||
" {'x': 18.2,\n",
|
||||
" 'el': 0.29673847885453164,\n",
|
||||
" 'ion': 1.8939345957053948,\n",
|
||||
" 'exc': 1.5878921013562524},\n",
|
||||
" {'x': 18.3,\n",
|
||||
" 'el': 0.29522911250768985,\n",
|
||||
" 'ion': 1.8847601449437406,\n",
|
||||
" 'exc': 1.5803613574001418},\n",
|
||||
" {'x': 18.4,\n",
|
||||
" 'el': 0.2937361675286164,\n",
|
||||
" 'ion': 1.8756790484131034,\n",
|
||||
" 'exc': 1.5729062566152603},\n",
|
||||
" {'x': 18.5,\n",
|
||||
" 'el': 0.2922593777179467,\n",
|
||||
" 'ion': 1.866689860918917,\n",
|
||||
" 'exc': 1.565525639338836}]"
|
||||
]
|
||||
},
|
||||
"execution_count": 7,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"%%python\n",
|
||||
"from beakerx.object import beakerx\n",
|
||||
"import pandas as pd\n",
|
||||
"beakerx.table"
|
||||
]
|
||||
},
|
||||
{
|
||||
"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
|
||||
}
|
||||
332
notebooks/.ipynb_checkpoints/trap_spectrum-checkpoint.ipynb
Normal file
332
notebooks/.ipynb_checkpoints/trap_spectrum-checkpoint.ipynb
Normal file
@@ -0,0 +1,332 @@
|
||||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/html": [
|
||||
" <script type=\"text/javascript\">\n",
|
||||
" window.PlotlyConfig = {MathJaxConfig: 'local'};\n",
|
||||
" if (window.MathJax && window.MathJax.Hub && window.MathJax.Hub.Config) {window.MathJax.Hub.Config({SVG: {font: \"STIX-Web\"}});}\n",
|
||||
" if (typeof require !== 'undefined') {\n",
|
||||
" require.undef(\"plotly\");\n",
|
||||
" requirejs.config({\n",
|
||||
" paths: {\n",
|
||||
" 'plotly': ['https://cdn.plot.ly/plotly-2.32.0.min']\n",
|
||||
" }\n",
|
||||
" });\n",
|
||||
" require(['plotly'], function(Plotly) {\n",
|
||||
" window._Plotly = Plotly;\n",
|
||||
" });\n",
|
||||
" }\n",
|
||||
" </script>\n",
|
||||
" "
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
"output_type": "display_data"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"import pandas as pd\n",
|
||||
"import matplotlib.pyplot as plt\n",
|
||||
"import numpy as np\n",
|
||||
"\n",
|
||||
"from scipy.optimize import curve_fit\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"import plotly\n",
|
||||
"from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot\n",
|
||||
"import plotly.graph_objs as go\n",
|
||||
"import plotly.io as pio\n",
|
||||
"\n",
|
||||
"init_notebook_mode(connected=True)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"Index(['id', 'E', 'theta', 'theta_start', 'colNum', 'L', 'state'], dtype='object')"
|
||||
]
|
||||
},
|
||||
"execution_count": 2,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"trap18 = pd.read_table(\"../batch-03-06-24/0/trap[18000.0].out\", sep=\"\\\\s+\",comment=\"#\")\n",
|
||||
"trap16 = pd.read_table(\"../batch-03-06-24/0/trap[16000.0].out\", sep=\"\\\\s+\",comment=\"#\")\n",
|
||||
"trap14 = pd.read_table(\"../batch-03-06-24/0/trap[14000.0].out\", sep=\"\\\\s+\",comment=\"#\")\n",
|
||||
"trap12 = pd.read_table(\"../batch-03-06-24/0/trap[12000.0].out\", sep=\"\\\\s+\",comment=\"#\")\n",
|
||||
"trap18.columns"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"ename": "NameError",
|
||||
"evalue": "name 'trap11' is not defined",
|
||||
"output_type": "error",
|
||||
"traceback": [
|
||||
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
|
||||
"\u001b[0;31mNameError\u001b[0m Traceback (most recent call last)",
|
||||
"Cell \u001b[0;32mIn[3], line 14\u001b[0m\n\u001b[1;32m 12\u001b[0m hist14_plot \u001b[38;5;241m=\u001b[39m go\u001b[38;5;241m.\u001b[39mHistogram(x \u001b[38;5;241m=\u001b[39m \u001b[38;5;241m14000\u001b[39m \u001b[38;5;241m-\u001b[39m trap14\u001b[38;5;241m.\u001b[39mE, xbins\u001b[38;5;241m=\u001b[39mbins, opacity\u001b[38;5;241m=\u001b[39m\u001b[38;5;241m0.3\u001b[39m, name \u001b[38;5;241m=\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mE = 14 keV\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n\u001b[1;32m 13\u001b[0m hist12_plot \u001b[38;5;241m=\u001b[39m go\u001b[38;5;241m.\u001b[39mHistogram(x \u001b[38;5;241m=\u001b[39m \u001b[38;5;241m12000\u001b[39m \u001b[38;5;241m-\u001b[39m trap12\u001b[38;5;241m.\u001b[39mE, xbins\u001b[38;5;241m=\u001b[39mbins, opacity\u001b[38;5;241m=\u001b[39m\u001b[38;5;241m0.3\u001b[39m, name \u001b[38;5;241m=\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mE = 12 keV\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n\u001b[0;32m---> 14\u001b[0m hist11_plot \u001b[38;5;241m=\u001b[39m go\u001b[38;5;241m.\u001b[39mHistogram(x \u001b[38;5;241m=\u001b[39m \u001b[38;5;241m11000\u001b[39m \u001b[38;5;241m-\u001b[39m \u001b[43mtrap11\u001b[49m\u001b[38;5;241m.\u001b[39mE, xbins\u001b[38;5;241m=\u001b[39mbins, opacity\u001b[38;5;241m=\u001b[39m\u001b[38;5;241m0.3\u001b[39m, name \u001b[38;5;241m=\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mE = 11 keV\u001b[39m\u001b[38;5;124m\"\u001b[39m)\n",
|
||||
"\u001b[0;31mNameError\u001b[0m: name 'trap11' is not defined"
|
||||
]
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"# bins = 60\n",
|
||||
"\n",
|
||||
"# hist18_plot = go.Histogram(x = 18000 - trap18.E, nbinsx=bins, opacity=0.5, name = \"E = 18 keV\")\n",
|
||||
"# hist16_plot = go.Histogram(x = 16000 - trap16.E, nbinsx=bins, opacity=0.5, name = \"E = 16 keV\")\n",
|
||||
"# hist14_plot = go.Histogram(x = 14000 - trap14.E, nbinsx=bins, opacity=0.5, name = \"E = 14 keV\")\n",
|
||||
"# hist12_plot = go.Histogram(x = 12000 - trap12.E, nbinsx=bins, opacity=0.5, name = \"E = 12 keV\")\n",
|
||||
"\n",
|
||||
"bins = go.histogram.XBins(start=0, end=7500, size=100)\n",
|
||||
"\n",
|
||||
"hist18_plot = go.Histogram(x = 18000 - trap18.E, xbins=bins, opacity=0.3, name = \"E = 18 keV\")\n",
|
||||
"hist16_plot = go.Histogram(x = 16000 - trap16.E, xbins=bins, opacity=0.3, name = \"E = 16 keV\")\n",
|
||||
"hist14_plot = go.Histogram(x = 14000 - trap14.E, xbins=bins, opacity=0.3, name = \"E = 14 keV\")\n",
|
||||
"hist12_plot = go.Histogram(x = 12000 - trap12.E, xbins=bins, opacity=0.3, name = \"E = 12 keV\")"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"layout = go.Layout(\n",
|
||||
" barmode='overlay',\n",
|
||||
" xaxis=dict(\n",
|
||||
" # range= [0,3950], \n",
|
||||
" title=\"\\u03B5 (eV)\"\n",
|
||||
" ),\n",
|
||||
" yaxis=dict(title=\"N\"),\n",
|
||||
" #legend=dict(orientation=\"h\"),\n",
|
||||
")\n",
|
||||
"\n",
|
||||
"fig = go.Figure( data = [hist12_plot, hist14_plot, hist16_plot, hist18_plot], layout=layout )\n",
|
||||
"\n",
|
||||
"# pio.write_image(fig, \"images/spectra.pdf\")\n",
|
||||
"\n",
|
||||
"iplot(fig)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"den = False\n",
|
||||
"r = None#[300,3900]\n",
|
||||
"bins = 40\n",
|
||||
"\n",
|
||||
"hist18 = np.histogram(a=18000 - trap18.E,range=r,bins=bins,density=den)\n",
|
||||
"hist16 = np.histogram(a=16000 - trap16.E,range=r,bins=bins,density=den)\n",
|
||||
"hist14 = np.histogram(a=14000 - trap14.E,range=r,bins=bins,density=den)\n",
|
||||
"hist12 = np.histogram(a=12000 - trap12.E,range=r,bins=bins,density=den)\n",
|
||||
"\n",
|
||||
"x = (hist18[1] + np.roll(hist18[1],-1))[:-1]/2"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"hist18[1]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"x"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"def f(x, norm, exp_amp, exp_const):\n",
|
||||
" return norm*( exp_amp * np.exp(-x / exp_const) + 1.0 + 4e-5*x)\n",
|
||||
"\n",
|
||||
"p_start = [1000, 2.0, 100]\n",
|
||||
"\n",
|
||||
"hist18_fit, _ = curve_fit(f=f, xdata= x, ydata=hist18[0], sigma=np.sqrt(hist18[0]),p0=p_start)\n",
|
||||
"hist16_fit, _ = curve_fit(f=f, xdata= x, ydata=hist16[0], sigma=np.sqrt(hist16[0]),p0=p_start)\n",
|
||||
"hist14_fit, _ = curve_fit(f=f, xdata= x, ydata=hist14[0], sigma=np.sqrt(hist14[0]),p0=p_start)\n",
|
||||
"hist12_fit, _ = curve_fit(f=f, xdata= x, ydata=hist12[0], sigma=np.sqrt(hist12[0]),p0=p_start)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"print(\"hist18_fit\")\n",
|
||||
"print(hist18_fit)\n",
|
||||
"print(\"hist16_fit\")\n",
|
||||
"print(hist16_fit)\n",
|
||||
"print(\"hist14_fit\")\n",
|
||||
"print(hist14_fit)\n",
|
||||
"print(\"hist12_fit\")\n",
|
||||
"print(hist12_fit)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"\n",
|
||||
"plots = [\n",
|
||||
" go.Scatter(x=x,y=hist18[0], name = \"E = 18 keV\"),\n",
|
||||
" go.Scatter(x=x,y=hist16[0], name = \"E = 16 keV\"),\n",
|
||||
" go.Scatter(x=x,y=hist14[0], name = \"E = 14 keV\"),\n",
|
||||
" go.Scatter(x=x,y=hist12[0], name = \"E = 12 keV\"),\n",
|
||||
" \n",
|
||||
" go.Scatter(x=x,y=f(x,*hist18_fit), name = \"E = 18 keV fit\" ),\n",
|
||||
" go.Scatter(x=x,y=f(x,*hist16_fit), name = \"E = 16 keV fit\" ),\n",
|
||||
" go.Scatter(x=x,y=f(x,*hist14_fit), name = \"E = 14 keV fit\" ),\n",
|
||||
" go.Scatter(x=x,y=f(x,*hist12_fit), name = \"E = 12 keV fit\" )\n",
|
||||
"]\n",
|
||||
"\n",
|
||||
"iplot(plots)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"es = np.asarray([12,14,16,18])\n",
|
||||
"traps = np.asarray([hist12_fit[0],hist14_fit[0],hist16_fit[0],hist18_fit[0]])/(x[1]-x[0])/211673\n",
|
||||
"\n",
|
||||
"trap_coefs = np.polynomial.polynomial.polyfit(x = es, y = traps, deg=2)\n",
|
||||
"\n",
|
||||
"function_es = np.linspace(12,18)\n",
|
||||
"\n",
|
||||
"plots =[\n",
|
||||
" go.Scatter(x=es,y=traps, name = \"Simulation\", mode = 'markers', marker = dict(size = 10)),\n",
|
||||
" go.Scatter(x=function_es,y= np.polynomial.polynomial.polyval(function_es,trap_coefs), name = \"Fit\")\n",
|
||||
"]\n",
|
||||
"\n",
|
||||
"fig = go.Figure(data = plots)\n",
|
||||
"\n",
|
||||
"iplot(fig)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"trap_coefs"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# Angular distribution"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"angle_hist = go.Histogram(x = trap18.theta, opacity=0.5)\n",
|
||||
"iplot([angle_hist])"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"angle_start = go.Histogram(x = np.cos(trap18.theta_start), opacity=0.5, name = \"start\")\n",
|
||||
"angle_dif = go.Histogram(x = trap18.theta_start - trap18.theta, opacity=0.5, name = \"dif\")\n",
|
||||
"iplot([angle_start])"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import plotly.figure_factory as ff\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"fig = ff.create_2d_density(\n",
|
||||
" trap18.E, trap18.theta_start\n",
|
||||
")\n",
|
||||
"\n",
|
||||
"iplot(fig)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3 (ipykernel)",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.11.5"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 4
|
||||
}
|
||||
14
notebooks/grid.kt
Normal file
14
notebooks/grid.kt
Normal file
@@ -0,0 +1,14 @@
|
||||
arrayOf(
|
||||
arrayOf(
|
||||
0.0010164564160293384, 0.0007122216161639606, 0.0005970963361843862, 0.0005464969187740086, 0.0005032669119268397, 0.0004702496315294719, 0.00045034642032332564, 0.00041860573073218283, 0.0004064781180730442, 0.0003936541831559646, 0.00037810298606194944, 0.0003747374284819014, 0.0003651049705803846, 0.0003551823784047257, 0.0003534995996147017, 0.0003452017593742384, 0.00034259055090695974, 0.000338006429375515, 0.00032338366195875447, 0.00032831594461916975, 0.00032506644074877856, 0.0003185674330079961, 0.000315608063411747, 0.0003123005326865273, 0.00032442814534566593, 0.0003110239418803022, 0.0003098634047837339, 0.0003050471758329755, 0.00030139148397878535, 0.00030481506841366184, 0.00031009551220304753, 0.00031676860050831526, 0.00029976673204358973, 0.0003055113906716028, 0.00030614968607471535, 0.00030086924228532965, 0.0002966913087376838, 0.000308760894541994, 0.0003066139009133427, 0.00030957327050959183, 0.00030353847760743673, 0.00030522125639746077, 0.0003073102231712837, 0.00030632376663920064, 0.0003054533638167744, 0.0003106757807513317, 0.00030632376663920064, 0.0003055113906716028, 0.0003114881567189295, 0.00031525990228277646, 0.0003121844789768705, 0.000318973620991795, 0.0003140993651862082, 0.0003205983729269906, 0.00032605289728086155, 0.00032280339341047036, 0.0003176970301855699, 0.0003299406965543654, 0.00032413801107152387, 0.00033313217356992816, 0.0003353371940534079, 0.00033852867106897073, 0.00033243585131198717, 0.0003452017593742384, 0.00034415727598732695, 0.0003559947543723235, 0.00034613018905149304, 0.00035466013671127, 0.00035181682082467767, 0.0003631320575162185, 0.0, 0.0, 0.0, 0.0, 0.0
|
||||
).toDoubleArray(),
|
||||
arrayOf(
|
||||
0.0009244850203455868, 0.000653998224804325, 0.0005583797304930203, 0.0004937695242706136, 0.0004533088955746908, 0.00041722861984299893, 0.00040057175133427855, 0.00037953452986132723, 0.00035843967216516234, 0.00034869915044206983, 0.0003414369863171606, 0.0003349240930940277, 0.0003244919366923724, 0.0003203997648442093, 0.00032247466887989765, 0.0003057601641479637, 0.0003006305402819564, 0.000301610356076587, 0.00029688418577307463, 0.00028662493804106, 0.00028829638851425344, 0.0002805154983804221, 0.0002809189519429171, 0.0002802273172643543, 0.0002682966190591463, 0.00027942041013936437, 0.00027440605871978423, 0.000271120793996611, 0.00027377206026443497, 0.00026362808497884754, 0.0002663369874698851, 0.000259190095791403, 0.00026126499982709133, 0.00026178372583601344, 0.0002623600880681491, 0.0002609768187110235, 0.0002642044472109832, 0.00026305172274671186, 0.00025699991930928755, 0.0002553861050593077, 0.00025988173046996577, 0.00026149554471994557, 0.00025348410969326, 0.00026189899828244054, 0.0002568846468628604, 0.0002557319223985891, 0.00025457919793431776, 0.00026403153854134245, 0.00026276354163064404, 0.0002580373713271317, 0.00026403153854134245, 0.00026374335742527464, 0.0002632822676395661, 0.000265414807898468, 0.00026305172274671186, 0.00026535717167525444, 0.0002679508017198649, 0.000264492628327051, 0.0002682389828359327, 0.0002721006097912416, 0.00027152424755910596, 0.0002667980772555936, 0.0002702562506484075, 0.00026691334970202073, 0.0002776336872197439, 0.00027440605871978423, 0.0002754435107376284, 0.0002795356825857915, 0.0002780371407822388, 0.0002809189519429171, 0.0, 0.0, 0.0, 0.0, 0.0
|
||||
).toDoubleArray(),
|
||||
arrayOf(
|
||||
0.0008852051867040171, 0.0006032286943714443, 0.0005089092326797008, 0.00045744650128512433, 0.00042025009385739456, 0.00038807866693620584, 0.0003717907990874174, 0.00035446328009934445, 0.0003459150373985618, 0.0003374245530944061, 0.0003121841337684466, 0.00030542640136309817, 0.0003057151933462327, 0.00029664712507580787, 0.0002809945995899154, 0.0002916221445692668, 0.00027539203511710514, 0.00027539203511710514, 0.0002593352008548243, 0.00026990498743754873, 0.0002614722615300199, 0.0002600860600109741, 0.00025627400583359806, 0.00025459901233141767, 0.0002540214283651486, 0.0002540791867617755, 0.00024137233950385537, 0.0002440869841453201, 0.0002408525139342132, 0.0002450688768879776, 0.00023998613798480953, 0.00023692494296358334, 0.00023293961359632657, 0.00023992837958818262, 0.00023808011089612152, 0.0002331706471828342, 0.00023247754642331128, 0.00023062927773125018, 0.0002391197620354059, 0.00023259306321656513, 0.00022583533081121669, 0.00023166892887053456, 0.00023218875444017676, 0.0002282611834695469, 0.00022675946515724724, 0.00023213099604354982, 0.0002317844456637884, 0.00022727929072688944, 0.00023600080861755276, 0.00022866549224593528, 0.00023311288878620728, 0.00022514223005169374, 0.00023230427123343056, 0.00022531550524157448, 0.00023155341207728076, 0.00023340168076934183, 0.0002305715193346233, 0.0002246224044820516, 0.00023831114448262915, 0.00023738701013659863, 0.00023507667427152224, 0.00023080255292113092, 0.00023322840557946114, 0.00023987062119155573, 0.00023559649984116442, 0.00023831114448262915, 0.00023461460709850692, 0.00023940855401854047, 0.00023594305022092588, 0.0002336904727524764, 0.0, 0.0, 0.0, 0.0, 0.0
|
||||
).toDoubleArray(),
|
||||
arrayOf(
|
||||
0.00080670017135694, 0.0005603601945878808, 0.0004813519947557876, 0.00042511471714604446, 0.00039136085011442964, 0.00036968247214012173, 0.00034162133566409435, 0.0003266707301645717, 0.00031459524110726483, 0.0002979770680712569, 0.00029538946327326254, 0.00028940922107345346, 0.00027325106666820006, 0.00027710372270076935, 0.0002705484572125171, 0.0002555978517129944, 0.0002565753913033478, 0.0002500201258150955, 0.00024720251170172393, 0.00024369486964222051, 0.00023748461812703414, 0.00023777212977125575, 0.00023650707853668074, 0.00023259692017526713, 0.00022443158947937393, 0.00022609915701585914, 0.00022770922222350006, 0.000224086575506308, 0.0002268466872908353, 0.00021293112371051029, 0.0002214989707083137, 0.00021482870056237279, 0.0002136786539854864, 0.0002123561004220671, 0.00021689878440076823, 0.00020971099329522845, 0.00021281611905282164, 0.0002086184490471864, 0.00021218359343553412, 0.00020344323945119779, 0.00020988350028176142, 0.0002111485515163364, 0.0002047082906857728, 0.00020787091877221028, 0.00020873345370487503, 0.000206375858222258, 0.0002041907697261739, 0.00020677837452416823, 0.00020137315561280235, 0.0002047082906857728, 0.00020597334192034778, 0.0002028682161627546, 0.00020488079767230573, 0.00020051062068013754, 0.00020551332328959325, 0.00020424827205501824, 0.0002063183558934137, 0.00020873345370487503, 0.00019959058341862846, 0.0002069508815107012, 0.00020838843973180915, 0.00020787091877221028, 0.0002069508815107012, 0.00020723839315492276, 0.0002063183558934137, 0.00020712338849723417, 0.0002063183558934137, 0.00020453578369923983, 0.00020821593274527618, 0.00020884845836256367, 2.3000931537727277e-7, 0.0, 0.0, 0.0, 0.0
|
||||
).toDoubleArray(),
|
||||
)
|
||||
1348
notebooks/trap-spectrum backup 1.jl
Normal file
1348
notebooks/trap-spectrum backup 1.jl
Normal file
File diff suppressed because it is too large
Load Diff
1719
notebooks/trap-spectrum-2.jl
Normal file
1719
notebooks/trap-spectrum-2.jl
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
2
pluto.sh
2
pluto.sh
@@ -2,5 +2,5 @@
|
||||
|
||||
echo "Starting notebook server"
|
||||
cd notebooks && \
|
||||
julia --project=. -e 'using Pkg; Pkg.instantiate(); Pkg.precompile()' && \
|
||||
julia --project=. -e 'using Pkg; Pkg.instantiate();' && \
|
||||
julia --project=. -e 'using Pluto; Pluto.run(require_secret_for_access=false, host="0.0.0.0")'
|
||||
@@ -33,6 +33,6 @@ fun calculate(e: Double, dir: String) {
|
||||
setFields(0.2, 1.2, 7.2)
|
||||
gasDensity = 1e19
|
||||
initialE = e
|
||||
range = 18_500 - e
|
||||
range = 7500.0
|
||||
}.simulateAll(1_000_000)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user