Користувальницькькі налаштування

Налаштування сайту


openmc

OpenMC

Установка

В Gentoo

Для сборки OpenMC из исходников, необходимо установить компилятор Фортрана, систему сборки CMake, а также библиотеку HDF5 с привязками к языку Python:

# USE="fortran" emerge gcc cmake
# USE="fortran fortran2003 -threads" emerge hdf5 h5py

После этого можно скачать и скомпилировать OpenMC из исходников, согласно документации:

USER
~ $ wget -c --content-disposition 'https://github.com/mit-crpg/openmc/archive/v0.7.1.tar.gz' ~ $ tar -xvf openmc-0.7.1.tar.gz ~ $ cd openmc-0.7.1 ~/openmc-0.7.1 $ mkdir build && cd build ~/openmc-0.7.1/build $ cmake -DCMAKE_INSTALL_PREFIX=$HOME/local/ .. ~/openmc-0.7.1/build $ make

После компиляции самого OpenMC можно протестировать, насколько корректно он работает. Для этого понадобятся базы данных сечений. Для теста можно воспользоваться небольшой базой от NNDC, которую можно автоматически установить скриптом в папке openmc-0.7.1/data. И так, если мы были в папке build, то переходим туда:

USER
~/openmc-0.7.1/build $ cd ../data ~/openmc-0.7.1/data $ python get_nndc_data.py Downloading ENDF-B-VII.1-neutron-293.6K.tar.gz... 501910959 [100.00%] Downloading ENDF-B-VII.1-tsl.tar.gz... 17925081 [100.00%] Verifying MD5 checksums... Extracting ENDF-B-VII.1-neutron-293.6K.tar.gz... Extracting ENDF-B-VII.1-tsl.tar.gz... Changing graphite ZAID from 6012 to 6000 Copying cross_sections_nndc.xml... Delete *.tar.gz files? ([y]/n) n Convert ACE files to binary? ([y]/n) y Converting nndc/293.6K... Converting Rb_086_293.6K.ace... Converting Ni_059_293.6K.ace... Converting F_019_293.6K.ace... Converting Cr_052_293.6K.ace... Converting Ag_109_293.6K.ace... Converting Zr_094_293.6K.ace... Converting Ra_225_293.6K.ace... Converting O_016_293.6K.ace... Converting Rh_105_293.6K.ace... Converting La_138_293.6K.ace... Converting Mo_095_293.6K.ace... Converting Np_239_293.6K.ace... Converting Sn_122_293.6K.ace... Converting Cf_248_293.6K.ace... Converting Pu_241_293.6K.ace... Converting Kr_082_293.6K.ace... Converting Ru_103_293.6K.ace... Converting Sm_149_293.6K.ace... Converting Se_080_293.6K.ace... Converting Eu_156_293.6K.ace... Converting Hg_201_293.6K.ace... Converting Gd_156_293.6K.ace... Converting Ni_060_293.6K.ace... Converting Sm_150_293.6K.ace... Converting U_236_293.6K.ace... Converting Pu_244_293.6K.ace... Converting S_032_293.6K.ace... Converting H_001_293.6K.ace... Converting Sb_124_293.6K.ace... Converting Cs_135_293.6K.ace... Converting Pu_237_293.6K.ace... Converting Sn_113_293.6K.ace... Converting Xe_133_293.6K.ace... Converting Hf_174_293.6K.ace... Converting Cu_063_293.6K.ace... Converting Pu_242_293.6K.ace... Converting Te_122_293.6K.ace... Converting H_003_293.6K.ace... Converting He_003_293.6K.ace... Converting Ce_138_293.6K.ace... Converting Ru_098_293.6K.ace... Converting Cd_110_293.6K.ace... Converting Ge_074_293.6K.ace... Converting Bk_250_293.6K.ace... Converting Pm_148_293.6K.ace... Converting Zr_093_293.6K.ace... Converting Zn_065_293.6K.ace... Converting Am_244_293.6K.ace... Converting Ca_043_293.6K.ace... Converting Ba_135_293.6K.ace... Converting Ru_096_293.6K.ace... Converting Te_126_293.6K.ace... Converting Ac_227_293.6K.ace... Converting Xe_135_293.6K.ace... Converting Eu_155_293.6K.ace... Converting Ca_040_293.6K.ace... Converting Ce_136_293.6K.ace... Converting Ce_141_293.6K.ace... Converting Kr_084_293.6K.ace... Converting S_033_293.6K.ace... Converting Am_242m1_293.6K.ace... Converting Zr_092_293.6K.ace... Converting Ru_099_293.6K.ace... Converting Ni_061_293.6K.ace... Converting Cd_108_293.6K.ace... Converting Cf_250_293.6K.ace... Converting Te_128_293.6K.ace... Converting Ga_069_293.6K.ace... Converting Cu_065_293.6K.ace... Converting Si_029_293.6K.ace... Converting Cm_245_293.6K.ace... Converting Kr_086_293.6K.ace... Converting He_004_293.6K.ace... Converting Dy_164_293.6K.ace... Converting Ti_050_293.6K.ace... Converting Ta_180_293.6K.ace... Converting Eu_151_293.6K.ace... Converting Tl_203_293.6K.ace... Converting Xe_132_293.6K.ace... Converting La_139_293.6K.ace... Converting Ho_165_293.6K.ace... Converting Sr_089_293.6K.ace... Converting Cd_113_293.6K.ace... Converting Gd_155_293.6K.ace... Converting Ca_046_293.6K.ace... Converting Dy_156_293.6K.ace... Converting Es_253_293.6K.ace... Converting Ru_105_293.6K.ace... Converting Ra_224_293.6K.ace... Converting Nd_144_293.6K.ace... Converting Kr_080_293.6K.ace... Converting Ru_102_293.6K.ace... Converting Ti_048_293.6K.ace... Converting Pb_204_293.6K.ace... Converting V_050_293.6K.ace... Converting Se_076_293.6K.ace... Converting Mg_026_293.6K.ace... Converting Na_022_293.6K.ace... Converting Sn_125_293.6K.ace... Converting Ac_226_293.6K.ace... Converting Pb_207_293.6K.ace... Converting Zn_068_293.6K.ace... Converting Pd_108_293.6K.ace... Converting Am_240_293.6K.ace... Converting Gd_154_293.6K.ace... Converting Cs_133_293.6K.ace... Converting Rb_087_293.6K.ace... Converting U_238_293.6K.ace... Converting Ar_040_293.6K.ace... Converting Tb_160_293.6K.ace... Converting Si_028_293.6K.ace... Converting Hf_179_293.6K.ace... Converting Cl_037_293.6K.ace... Converting Zr_095_293.6K.ace... Converting Mn_055_293.6K.ace... Converting Ag_107_293.6K.ace... Converting Cm_243_293.6K.ace... Converting Se_082_293.6K.ace... Converting Hf_178_293.6K.ace... Converting Zr_091_293.6K.ace... Converting Gd_157_293.6K.ace... Converting I_127_293.6K.ace... Converting Bk_246_293.6K.ace... Converting Es_252_293.6K.ace... Converting Lu_175_293.6K.ace... Converting Pr_143_293.6K.ace... Converting N_015_293.6K.ace... Converting I_129_293.6K.ace... Converting Fe_056_293.6K.ace... Converting Cl_035_293.6K.ace... Converting Np_234_293.6K.ace... Converting Co_059_293.6K.ace... Converting Xe_136_293.6K.ace... Converting Cd_114_293.6K.ace... Converting Ca_044_293.6K.ace... Converting B_011_293.6K.ace... Converting Re_187_293.6K.ace... Converting Pa_231_293.6K.ace... Converting Pd_106_293.6K.ace... Converting Hg_202_293.6K.ace... Converting Pa_232_293.6K.ace... Converting Li_007_293.6K.ace... Converting Sn_116_293.6K.ace... Converting Zr_096_293.6K.ace... Converting Y_091_293.6K.ace... Converting Tm_168_293.6K.ace... Converting Np_235_293.6K.ace... Converting Ag_110m1_293.6K.ace... Converting Pu_243_293.6K.ace... Converting Pr_142_293.6K.ace... Converting Xe_130_293.6K.ace... Converting Am_244m1_293.6K.ace... Converting Tb_159_293.6K.ace... Converting Sm_154_293.6K.ace... Converting Dy_158_293.6K.ace... Converting Th_232_293.6K.ace... Converting Ru_101_293.6K.ace... Converting Mo_097_293.6K.ace... Converting Nb_094_293.6K.ace... Converting Pb_208_293.6K.ace... Converting Gd_153_293.6K.ace... Converting Sn_114_293.6K.ace... Converting Cf_251_293.6K.ace... Converting W_184_293.6K.ace... Converting P_031_293.6K.ace... Converting W_183_293.6K.ace... Converting Fe_057_293.6K.ace... Converting Pb_206_293.6K.ace... Converting K_039_293.6K.ace... Converting Sr_087_293.6K.ace... Converting Eu_157_293.6K.ace... Converting Fm_255_293.6K.ace... Converting Dy_160_293.6K.ace... Converting Cm_244_293.6K.ace... Converting Mo_100_293.6K.ace... Converting Bk_249_293.6K.ace... Converting Be_009_293.6K.ace... Converting Dy_162_293.6K.ace... Converting Re_185_293.6K.ace... Converting Ti_047_293.6K.ace... Converting Ti_046_293.6K.ace... Converting Sn_115_293.6K.ace... Converting Cs_137_293.6K.ace... Converting Sn_123_293.6K.ace... Converting Sm_148_293.6K.ace... Converting Ag_111_293.6K.ace... Converting U_230_293.6K.ace... Converting Ca_048_293.6K.ace... Converting S_034_293.6K.ace... Converting Te_124_293.6K.ace... Converting Pa_230_293.6K.ace... Converting Cr_050_293.6K.ace... Converting Te_120_293.6K.ace... Converting Ga_071_293.6K.ace... Converting Te_127m1_293.6K.ace... Converting U_241_293.6K.ace... Converting Ac_225_293.6K.ace... Converting Zr_090_293.6K.ace... Converting Ba_133_293.6K.ace... Converting Ar_036_293.6K.ace... Converting Sr_084_293.6K.ace... Converting Cm_241_293.6K.ace... Converting Cm_247_293.6K.ace... Converting Sn_119_293.6K.ace... Converting Ge_076_293.6K.ace... Converting Au_197_293.6K.ace... Converting Ca_042_293.6K.ace... Converting Zn_064_293.6K.ace... Converting Tm_170_293.6K.ace... Converting Ni_062_293.6K.ace... Converting S_036_293.6K.ace... Converting Pm_151_293.6K.ace... Converting Am_242_293.6K.ace... Converting Hf_177_293.6K.ace... Converting Sm_144_293.6K.ace... Converting Er_166_293.6K.ace... Converting Sr_090_293.6K.ace... Converting Pu_236_293.6K.ace... Converting Nd_143_293.6K.ace... Converting Ba_137_293.6K.ace... Converting Ta_182_293.6K.ace... Converting Xe_126_293.6K.ace... Converting Pu_240_293.6K.ace... Converting Pd_104_293.6K.ace... Converting Ge_070_293.6K.ace... Converting Hg_198_293.6K.ace... Converting Kr_085_293.6K.ace... Converting Sc_045_293.6K.ace... Converting Li_006_293.6K.ace... Converting H_002_293.6K.ace... Converting Er_164_293.6K.ace... Converting Ni_064_293.6K.ace... Converting Fe_058_293.6K.ace... Converting Xe_129_293.6K.ace... Converting I_130_293.6K.ace... Converting Ba_138_293.6K.ace... Converting Mo_092_293.6K.ace... Converting In_113_293.6K.ace... Converting Sn_126_293.6K.ace... Converting Xe_131_293.6K.ace... Converting Ce_139_293.6K.ace... Converting As_075_293.6K.ace... Converting W_180_293.6K.ace... Converting U_237_293.6K.ace... Converting Te_123_293.6K.ace... Converting Ni_058_293.6K.ace... Converting Mo_099_293.6K.ace... Converting Ge_073_293.6K.ace... Converting Sn_118_293.6K.ace... Converting U_233_293.6K.ace... Converting Ir_191_293.6K.ace... Converting U_231_293.6K.ace... Converting Np_236_293.6K.ace... Converting Sm_153_293.6K.ace... Converting Tl_205_293.6K.ace... Converting Pu_239_293.6K.ace... Converting K_041_293.6K.ace... Converting Ce_140_293.6K.ace... Converting Tc_099_293.6K.ace... Converting Th_231_293.6K.ace... Converting Pm_148m1_293.6K.ace... Converting Mo_096_293.6K.ace... Converting Es_254m1_293.6K.ace... Converting Cf_252_293.6K.ace... Converting Nb_093_293.6K.ace... Converting Pa_233_293.6K.ace... Converting Mg_024_293.6K.ace... Converting V_051_293.6K.ace... Converting U_234_293.6K.ace... Converting Hg_200_293.6K.ace... Converting Cm_250_293.6K.ace... Converting Cd_116_293.6K.ace... Converting Ta_181_293.6K.ace... Converting Te_130_293.6K.ace... Converting Ba_140_293.6K.ace... Converting Tm_169_293.6K.ace... Converting Zn_066_293.6K.ace... Converting Es_254_293.6K.ace... Converting Th_229_293.6K.ace... Converting Lu_176_293.6K.ace... Converting Si_030_293.6K.ace... Converting Ba_134_293.6K.ace... Converting Pm_147_293.6K.ace... Converting Th_230_293.6K.ace... Converting As_074_293.6K.ace... Converting Cf_254_293.6K.ace... Converting Cm_248_293.6K.ace... Converting Pd_102_293.6K.ace... Converting Th_227_293.6K.ace... Converting Hg_204_293.6K.ace... Converting Y_090_293.6K.ace... Converting Te_125_293.6K.ace... Converting Th_234_293.6K.ace... Converting Kr_078_293.6K.ace... Converting W_186_293.6K.ace... Converting Cd_112_293.6K.ace... Converting Eu_154_293.6K.ace... Converting Pm_149_293.6K.ace... Converting Cm_249_293.6K.ace... Converting Hf_176_293.6K.ace... Converting Am_243_293.6K.ace... Converting Cm_242_293.6K.ace... Converting Se_079_293.6K.ace... Converting Sn_120_293.6K.ace... Converting Cf_249_293.6K.ace... Converting Xe_134_293.6K.ace... Converting Sb_123_293.6K.ace... Converting Eu_153_293.6K.ace... Converting La_140_293.6K.ace... Converting Ce_142_293.6K.ace... Converting Xe_124_293.6K.ace... Converting Sr_088_293.6K.ace... Converting Ba_130_293.6K.ace... Converting Rh_103_293.6K.ace... Converting Mo_098_293.6K.ace... Converting Cr_054_293.6K.ace... Converting C_000_293.6K.ace... Converting Gd_152_293.6K.ace... Converting Mo_094_293.6K.ace... Converting Ce_143_293.6K.ace... Converting Nd_146_293.6K.ace... Converting Bk_248_293.6K.ace... Converting U_240_293.6K.ace... Converting Na_023_293.6K.ace... Converting Cf_246_293.6K.ace... Converting Nb_095_293.6K.ace... Converting Y_089_293.6K.ace... Converting Es_251_293.6K.ace... Converting Sm_151_293.6K.ace... Converting O_017_293.6K.ace... Converting N_014_293.6K.ace... Converting I_131_293.6K.ace... Converting Br_081_293.6K.ace... Converting Cm_246_293.6K.ace... Converting Ra_223_293.6K.ace... Converting Ti_049_293.6K.ace... Converting Er_170_293.6K.ace... Converting U_239_293.6K.ace... Converting Sm_152_293.6K.ace... Converting Th_228_293.6K.ace... Converting Be_007_293.6K.ace... Converting Nd_145_293.6K.ace... Converting In_115_293.6K.ace... Converting Nd_150_293.6K.ace... Converting Cd_111_293.6K.ace... Converting Ce_144_293.6K.ace... Converting U_235_293.6K.ace... Converting Pa_229_293.6K.ace... Converting Th_233_293.6K.ace... Converting Ho_166m1_293.6K.ace... Converting Nd_142_293.6K.ace... Converting Kr_083_293.6K.ace... Converting Sr_086_293.6K.ace... Converting Mg_025_293.6K.ace... Converting Sn_112_293.6K.ace... Converting Zn_070_293.6K.ace... Converting Np_237_293.6K.ace... Converting Gd_160_293.6K.ace... Converting Nd_147_293.6K.ace... Converting Er_167_293.6K.ace... Converting Ru_100_293.6K.ace... Converting Ra_226_293.6K.ace... Converting Se_074_293.6K.ace... Converting Hf_180_293.6K.ace... Converting Cs_136_293.6K.ace... Converting W_182_293.6K.ace... Converting Sb_126_293.6K.ace... Converting Se_077_293.6K.ace... Converting Cd_106_293.6K.ace... Converting Pd_107_293.6K.ace... Converting Pd_105_293.6K.ace... Converting Hg_199_293.6K.ace... Converting B_010_293.6K.ace... Converting Fe_054_293.6K.ace... Converting Pu_238_293.6K.ace... Converting Te_129m1_293.6K.ace... Converting Xe_123_293.6K.ace... Converting Ba_136_293.6K.ace... Converting Hg_196_293.6K.ace... Converting Bk_247_293.6K.ace... Converting Cr_053_293.6K.ace... Converting Al_027_293.6K.ace... Converting Co_058m1_293.6K.ace... Converting Ar_038_293.6K.ace... Converting Bi_209_293.6K.ace... Converting Ba_132_293.6K.ace... Converting Er_162_293.6K.ace... Converting Br_079_293.6K.ace... Converting Am_241_293.6K.ace... Converting Ru_104_293.6K.ace... Converting Sn_117_293.6K.ace... Converting Es_255_293.6K.ace... Converting Co_058_293.6K.ace... Converting Sn_124_293.6K.ace... Converting I_135_293.6K.ace... Converting U_232_293.6K.ace... Converting Eu_152_293.6K.ace... Converting Pd_110_293.6K.ace... Converting Ru_106_293.6K.ace... Converting Se_078_293.6K.ace... Converting Xe_128_293.6K.ace... Converting Ge_072_293.6K.ace... Converting Te_132_293.6K.ace... Converting Cd_115m1_293.6K.ace... Converting Pu_246_293.6K.ace... Converting Nd_148_293.6K.ace... Converting Zn_067_293.6K.ace... Converting Dy_163_293.6K.ace... Converting Cf_253_293.6K.ace... Converting K_040_293.6K.ace... Converting Gd_158_293.6K.ace... Converting Cs_134_293.6K.ace... Converting Sb_125_293.6K.ace... Converting Bk_245_293.6K.ace... Converting Np_238_293.6K.ace... Converting Sb_121_293.6K.ace... Converting Pr_141_293.6K.ace... Converting Ir_193_293.6K.ace... Converting Rb_085_293.6K.ace... Converting Er_168_293.6K.ace... Converting Dy_161_293.6K.ace... Converting Sm_147_293.6K.ace... Converting Cm_240_293.6K.ace... Converting nndc/tsl... Converting lch4.acer... Converting hh2o.acer... Converting uuo2.acer... Converting parah.acer... Converting hzrh.acer... Converting ouo2.acer... Converting bebeo.acer... Converting graphite.acer... Converting parad.acer... Converting be.acer... Converting hch2.acer... Converting sch4.acer... Converting al.acer... Converting dd2o.acer... Converting obeo.acer... Converting fe.acer... Converting orthoh.acer... Converting orthod.acer... Converting benzine.acer... Converting zrzrh.acer...

После скачивания и распаковки баз сечений, нужно указать полный путь к ним в переменной окружения CROSS_SECTIONS и запустить тесты в каталоке build, где мы были раньше:

USER
~/openmc-0.7.1/data $ export CROSS_SECTIONS=$HOME/openmc-0.7.1/data/nndc/cross_sections.xml ~/openmc-0.7.1/data $ cd ../build ~/openmc-0.7.1/build $ make test Running tests... Test project /home/install/openmc-0.7.1/build Start 1: test_score_flux.py 1/102 Test #1: test_score_flux.py .................. Passed 4.12 sec Start 2: test_score_scatter_n.py 2/102 Test #2: test_score_scatter_n.py ............. Passed 4.28 sec Start 3: test_lattice_mixed.py 3/102 Test #3: test_lattice_mixed.py ............... Passed 5.51 sec Start 4: test_density_atombcm.py 4/102 Test #4: test_density_atombcm.py ............. Passed 1.10 sec Start 5: test_mgxs_library_condense.py 5/102 Test #5: test_mgxs_library_condense.py ....... Passed 19.86 sec Start 6: test_rotation.py 6/102 Test #6: test_rotation.py .................... Passed 1.13 sec Start 7: test_plot_mask.py 7/102 Test #7: test_plot_mask.py ................... Passed 0.77 sec Start 8: test_score_current.py 8/102 Test #8: test_score_current.py ............... Passed 9.87 sec Start 9: test_score_kappafission.py 9/102 Test #9: test_score_kappafission.py .......... Passed 4.99 sec Start 10: test_seed.py 10/102 Test #10: test_seed.py ........................ Passed 0.93 sec Start 11: test_filter_mesh_3d.py 11/102 Test #11: test_filter_mesh_3d.py .............. Passed 5.30 sec Start 12: test_score_events.py 12/102 Test #12: test_score_events.py ................ Passed 7.85 sec Start 13: test_score_total_yn.py 13/102 Test #13: test_score_total_yn.py .............. Passed 5.94 sec Start 14: test_filter_material.py 14/102 Test #14: test_filter_material.py ............. Passed 5.01 sec Start 15: test_density_kgm3.py 15/102 Test #15: test_density_kgm3.py ................ Passed 1.57 sec Start 16: test_filter_cellborn.py 16/102 Test #16: test_filter_cellborn.py ............. Passed 4.20 sec Start 17: test_statepoint_interval.py 17/102 Test #17: test_statepoint_interval.py ......... Passed 1.28 sec Start 18: test_statepoint_restart.py 18/102 Test #18: test_statepoint_restart.py .......... Passed 1.71 sec Start 19: test_natural_element.py 19/102 Test #19: test_natural_element.py ............. Passed 2.56 sec Start 20: test_union_energy_grids.py 20/102 Test #20: test_union_energy_grids.py .......... Passed 1.31 sec Start 21: test_trigger_no_status.py 21/102 Test #21: test_trigger_no_status.py ........... Passed 1.47 sec Start 22: test_score_nuscatter_yn.py 22/102 Test #22: test_score_nuscatter_yn.py .......... Passed 4.81 sec Start 23: test_density_sum.py 23/102 Test #23: test_density_sum.py ................. Passed 1.53 sec Start 24: test_source_file.py 24/102 Test #24: test_source_file.py ................. Passed 1.71 sec Start 25: test_source_energy_maxwell.py 25/102 Test #25: test_source_energy_maxwell.py ....... Passed 1.08 sec Start 26: test_lattice.py 26/102 Test #26: test_lattice.py ..................... Passed 4.62 sec Start 27: test_mgxs_library_nuclides.py 27/102 Test #27: test_mgxs_library_nuclides.py ....... Passed 20.82 sec Start 28: test_tally_nuclides.py 28/102 Test #28: test_tally_nuclides.py .............. Passed 1.20 sec Start 29: test_source_point.py 29/102 Test #29: test_source_point.py ................ Passed 1.32 sec Start 30: test_plot_background.py 30/102 Test #30: test_plot_background.py ............. Passed 0.43 sec Start 31: test_fixed_source.py 31/102 Test #31: test_fixed_source.py ................ Passed 2.16 sec Start 32: test_eigenvalue_genperbatch.py 32/102 Test #32: test_eigenvalue_genperbatch.py ...... Passed 1.68 sec Start 33: test_output.py 33/102 Test #33: test_output.py ...................... Passed 1.01 sec Start 34: test_source_angle_mono.py 34/102 Test #34: test_source_angle_mono.py ........... Passed 1.22 sec Start 35: test_void.py 35/102 Test #35: test_void.py ........................ Passed 2.83 sec Start 36: test_filter_energy.py 36/102 Test #36: test_filter_energy.py ............... Passed 5.28 sec Start 37: test_particle_restart_eigval.py 37/102 Test #37: test_particle_restart_eigval.py ..... Passed 1.51 sec Start 38: test_score_nuscatter.py 38/102 Test #38: test_score_nuscatter.py ............. Passed 5.31 sec Start 39: test_cmfd_feed.py 39/102 Test #39: test_cmfd_feed.py ................... Passed 5.64 sec Start 40: test_sourcepoint_batch.py 40/102 Test #40: test_sourcepoint_batch.py ........... Passed 1.12 sec Start 41: test_trigger_batch_interval.py 41/102 Test #41: test_trigger_batch_interval.py ...... Passed 1.19 sec Start 42: test_filter_mesh_2d.py 42/102 Test #42: test_filter_mesh_2d.py .............. Passed 6.01 sec Start 43: test_particle_restart_fixed.py 43/102 Test #43: test_particle_restart_fixed.py ...... Passed 2.05 sec Start 44: test_score_nufission.py 44/102 Test #44: test_score_nufission.py ............. Passed 5.63 sec Start 45: test_many_scores.py 45/102 Test #45: test_many_scores.py ................. Passed 5.85 sec Start 46: test_score_fission.py 46/102 Test #46: test_score_fission.py ............... Passed 4.45 sec Start 47: test_filter_universe.py 47/102 Test #47: test_filter_universe.py ............. Passed 5.06 sec Start 48: test_density_atomcm3.py 48/102 Test #48: test_density_atomcm3.py ............. Passed 1.06 sec Start 49: test_score_scatter_yn.py 49/102 Test #49: test_score_scatter_yn.py ............ Passed 4.24 sec Start 50: test_score_inversevelocity.py 50/102 Test #50: test_score_inversevelocity.py ....... Passed 4.31 sec Start 51: test_confidence_intervals.py 51/102 Test #51: test_confidence_intervals.py ........ Passed 0.93 sec Start 52: test_filter_polar.py 52/102 Test #52: test_filter_polar.py ................ Passed 4.64 sec Start 53: test_sourcepoint_restart.py 53/102 Test #53: test_sourcepoint_restart.py ......... Passed 1.62 sec Start 54: test_filter_cell.py 54/102 Test #54: test_filter_cell.py ................. Passed 6.64 sec Start 55: test_score_nuscatter_pn.py 55/102 Test #55: test_score_nuscatter_pn.py .......... Passed 4.88 sec Start 56: test_complex_cell.py 56/102 Test #56: test_complex_cell.py ................ Passed 2.03 sec Start 57: test_ptables_off.py 57/102 Test #57: test_ptables_off.py ................. Passed 1.45 sec Start 58: test_resonance_scattering.py 58/102 Test #58: test_resonance_scattering.py ........ Passed 1.21 sec Start 59: test_sourcepoint_latest.py 59/102 Test #59: test_sourcepoint_latest.py .......... Passed 1.08 sec Start 60: test_universe.py 60/102 Test #60: test_universe.py .................... Passed 1.19 sec Start 61: test_salphabeta.py 61/102 Test #61: test_salphabeta.py .................. Passed 1.26 sec Start 62: test_lattice_multiple.py 62/102 Test #62: test_lattice_multiple.py ............ Passed 5.02 sec Start 63: test_uniform_fs.py 63/102 Test #63: test_uniform_fs.py .................. Passed 1.22 sec Start 64: test_trigger_tallies.py 64/102 Test #64: test_trigger_tallies.py ............. Passed 1.55 sec Start 65: test_filter_azimuthal.py 65/102 Test #65: test_filter_azimuthal.py ............ Passed 4.83 sec Start 66: test_statepoint_sourcesep.py 66/102 Test #66: test_statepoint_sourcesep.py ........ Passed 1.43 sec Start 67: test_score_nuscatter_n.py 67/102 Test #67: test_score_nuscatter_n.py ........... Passed 5.44 sec Start 68: test_filter_group_transfer.py 68/102 Test #68: test_filter_group_transfer.py ....... Passed 4.49 sec Start 69: test_trigger_no_batch_interval.py 69/102 Test #69: test_trigger_no_batch_interval.py ... Passed 1.29 sec Start 70: test_score_MT.py 70/102 Test #70: test_score_MT.py .................... Passed 5.19 sec Start 71: test_mgxs_library_hdf5.py 71/102 Test #71: test_mgxs_library_hdf5.py ........... Passed 13.57 sec Start 72: test_basic.py 72/102 Test #72: test_basic.py ....................... Passed 1.26 sec Start 73: test_plot_basis.py 73/102 Test #73: test_plot_basis.py .................. Passed 0.62 sec Start 74: test_score_flux_yn.py 74/102 Test #74: test_score_flux_yn.py ............... Passed 6.55 sec Start 75: test_trace.py 75/102 Test #75: test_trace.py ....................... Passed 1.11 sec Start 76: test_source_energy_mono.py 76/102 Test #76: test_source_energy_mono.py .......... Passed 1.07 sec Start 77: test_mgxs_library_no_nuclides.py 77/102 Test #77: test_mgxs_library_no_nuclides.py .... Passed 20.83 sec Start 78: test_lattice_hex.py 78/102 Test #78: test_lattice_hex.py ................. Passed 4.72 sec Start 79: test_salphabeta_multiple.py 79/102 Test #79: test_salphabeta_multiple.py ......... Passed 2.77 sec Start 80: test_score_absorption.py 80/102 Test #80: test_score_absorption.py ............ Passed 4.99 sec Start 81: test_reflective_plane.py 81/102 Test #81: test_reflective_plane.py ............ Passed 1.98 sec Start 82: test_filter_energyout.py 82/102 Test #82: test_filter_energyout.py ............ Passed 4.64 sec Start 83: test_filter_delayedgroup.py 83/102 Test #83: test_filter_delayedgroup.py ......... Passed 5.21 sec Start 84: test_survival_biasing.py 84/102 Test #84: test_survival_biasing.py ............ Passed 1.54 sec Start 85: test_cmfd_nofeed.py 85/102 Test #85: test_cmfd_nofeed.py ................. Passed 5.35 sec Start 86: test_eigenvalue_no_inactive.py 86/102 Test #86: test_eigenvalue_no_inactive.py ...... Passed 1.00 sec Start 87: test_track_output.py 87/102 Test #87: test_track_output.py ................ Passed 0.28 sec Start 88: test_translation.py 88/102 Test #88: test_translation.py ................. Passed 1.00 sec Start 89: test_score_delayed_nufission.py 89/102 Test #89: test_score_delayed_nufission.py ..... Passed 4.43 sec Start 90: test_entropy.py 90/102 Test #90: test_entropy.py ..................... Passed 1.01 sec Start 91: test_statepoint_batch.py 91/102 Test #91: test_statepoint_batch.py ............ Passed 1.10 sec Start 92: test_tally_assumesep.py 92/102 Test #92: test_tally_assumesep.py ............. Passed 4.59 sec Start 93: test_filter_mu.py 93/102 Test #93: test_filter_mu.py ................... Passed 4.49 sec Start 94: test_infinite_cell.py 94/102 Test #94: test_infinite_cell.py ............... Passed 1.51 sec Start 95: test_score_scatter.py 95/102 Test #95: test_score_scatter.py ............... Passed 4.64 sec Start 96: test_score_scatter_pn.py 96/102 Test #96: test_score_scatter_pn.py ............ Passed 5.39 sec Start 97: test_sourcepoint_interval.py 97/102 Test #97: test_sourcepoint_interval.py ........ Passed 1.06 sec Start 98: test_quadric_surfaces.py 98/102 Test #98: test_quadric_surfaces.py ............ Passed 3.34 sec Start 99: test_filter_distribcell.py 99/102 Test #99: test_filter_distribcell.py .......... Passed 4.25 sec Start 100: test_score_total.py 100/102 Test #100: test_score_total.py ................. Passed 4.14 sec Start 101: test_plot_colspec.py 101/102 Test #101: test_plot_colspec.py ................ Passed 0.32 sec Start 102: test_energy_grid.py 102/102 Test #102: test_energy_grid.py ................. Passed 1.08 sec 100% tests passed, 0 tests failed out of 102 Total Test time (real) = 374.06 sec

Если все тесты прошли успешно, можно переходить к установке. Если ранее при конфигурировании OpenMC перед сборкой был указан нестандартный путь установки, то вероятнее всего, мы получим такое сообщение:

USER
~/openmc-0.7.1/build $ make install … Checking .pth file support in /home/user/local/lib64/python2.7/site-packages/ /usr/bin/python -E -c pass TEST FAILED: /home/user/local/lib64/python2.7/site-packages/ does NOT support .pth files error: bad install directory or PYTHONPATH You are attempting to install a package to a directory that is not on PYTHONPATH and which Python does not read ".pth" files from. The installation directory you specified (via --install-dir, --prefix, or the distutils default setting) was: /home/user/local/lib64/python2.7/site-packages/ and your PYTHONPATH environment variable currently contains: '' Here are some of your options for correcting the problem: * You can choose a different installation directory, i.e., one that is on PYTHONPATH or supports .pth files * You can add the installation directory to the PYTHONPATH environment variable. (It must then also be on PYTHONPATH whenever you run Python and want to use the package(s) you are installing.) * You can set up the installation directory to support ".pth" files by using one of the approaches described here: https://pythonhosted.org/setuptools/easy_install.html#custom-installation-locations Please make the appropriate changes for your system and try again.

Добавим этот путь в переменную окружения PYTHONPATH:

export PYTHONPATH="/home/user/local/lib64/python2.7/site-packages/"

Здесь вместо user везде будет указан логин действительного пользователя в системе.

После этого установку нужно запустить повторно, но на этот раз она должна пройти без ошибок.

Использование

в Gentoo

Для использования утилиты визуализации openmc-plot-mesh-tally библиотека Matplotlib должна быть собрана с поддержкой графического инструментария Tk:

# USE="tk" emerge matplotlib
openmc.txt · В останнє змінено: 2015/12/30 18:55 by wombat