mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 04:25:29 -04:00
Make sure plotting geometry works in two notebooks
This commit is contained in:
parent
e550a8de27
commit
20d915809a
2 changed files with 88 additions and 79 deletions
File diff suppressed because one or more lines are too long
|
|
@ -346,10 +346,7 @@
|
|||
"source": [
|
||||
"# Run openmc in plotting mode\n",
|
||||
"executor = openmc.Executor()\n",
|
||||
"executor.plot_geometry(output=False)\n",
|
||||
"\n",
|
||||
"# Convert OpenMC's funky ppm to png\n",
|
||||
"!convert materials-xy.ppm materials-xy.png"
|
||||
"executor.plot_geometry(output=False)"
|
||||
]
|
||||
},
|
||||
{
|
||||
|
|
@ -372,6 +369,9 @@
|
|||
}
|
||||
],
|
||||
"source": [
|
||||
"# Convert OpenMC's funky ppm to png\n",
|
||||
"!convert materials-xy.ppm materials-xy.png\n",
|
||||
"\n",
|
||||
"# Display the materials plot inline\n",
|
||||
"Image(filename='materials-xy.png')"
|
||||
]
|
||||
|
|
@ -572,7 +572,7 @@
|
|||
" Copyright: 2011-2015 Massachusetts Institute of Technology\n",
|
||||
" License: http://mit-crpg.github.io/openmc/license.html\n",
|
||||
" Version: 0.6.2\n",
|
||||
" Date/Time: 2015-08-07 11:12:08\n",
|
||||
" Date/Time: 2015-08-10 06:51:18\n",
|
||||
" MPI Processes: 4\n",
|
||||
"\n",
|
||||
" ===========================================================================\n",
|
||||
|
|
@ -628,20 +628,20 @@
|
|||
"\n",
|
||||
" =======================> TIMING STATISTICS <=======================\n",
|
||||
"\n",
|
||||
" Total time for initialization = 9.0500E-01 seconds\n",
|
||||
" Reading cross sections = 2.6500E-01 seconds\n",
|
||||
" Total time in simulation = 8.9630E+00 seconds\n",
|
||||
" Time in transport only = 8.1580E+00 seconds\n",
|
||||
" Time in inactive batches = 1.0700E+00 seconds\n",
|
||||
" Time in active batches = 7.8930E+00 seconds\n",
|
||||
" Time synchronizing fission bank = 7.6400E-01 seconds\n",
|
||||
" Sampling source sites = 4.0000E-03 seconds\n",
|
||||
" SEND/RECV source sites = 1.0000E-03 seconds\n",
|
||||
" Time accumulating tallies = 1.0000E-03 seconds\n",
|
||||
" Total time for initialization = 8.9900E-01 seconds\n",
|
||||
" Reading cross sections = 2.5700E-01 seconds\n",
|
||||
" Total time in simulation = 9.5070E+00 seconds\n",
|
||||
" Time in transport only = 8.6890E+00 seconds\n",
|
||||
" Time in inactive batches = 1.0080E+00 seconds\n",
|
||||
" Time in active batches = 8.4990E+00 seconds\n",
|
||||
" Time synchronizing fission bank = 7.8300E-01 seconds\n",
|
||||
" Sampling source sites = 4.4000E-02 seconds\n",
|
||||
" SEND/RECV source sites = 0.0000E+00 seconds\n",
|
||||
" Time accumulating tallies = 3.0000E-03 seconds\n",
|
||||
" Total time for finalization = 2.0000E-03 seconds\n",
|
||||
" Total time elapsed = 9.8710E+00 seconds\n",
|
||||
" Calculation Rate (inactive) = 11682.2 neutrons/second\n",
|
||||
" Calculation Rate (active) = 4751.05 neutrons/second\n",
|
||||
" Total time elapsed = 1.0410E+01 seconds\n",
|
||||
" Calculation Rate (inactive) = 12400.8 neutrons/second\n",
|
||||
" Calculation Rate (active) = 4412.28 neutrons/second\n",
|
||||
"\n",
|
||||
" ============================> RESULTS <============================\n",
|
||||
"\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue