mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-25 12:35:29 -04:00
Removed unnecessary xyz coords in voxel binary dump
This commit is contained in:
parent
0be240d519
commit
aebb81eb98
3 changed files with 3 additions and 5 deletions
|
|
@ -1024,7 +1024,7 @@ attribute or sub-element:
|
|||
.. warning:: The ``pixels`` input determines the output file size. For the
|
||||
PPM format, 10 million pixels will result in a file just under
|
||||
30 MB in size. A 10 million voxel binary file will be around
|
||||
152 MB.
|
||||
40 MB.
|
||||
|
||||
.. warning:: If the aspect ratio defined in ``pixels`` does not match the
|
||||
aspect ratio defined in ``width`` the plot may appear stretched
|
||||
|
|
|
|||
|
|
@ -258,7 +258,7 @@ contains
|
|||
call position_rgb(pl, rgb, id)
|
||||
|
||||
! write to plot file
|
||||
write(UNIT_PLOT) x, y, z, id
|
||||
write(UNIT_PLOT) id
|
||||
|
||||
! advance particle in z direction
|
||||
p % coord0 % xyz(3) = p % coord0 % xyz(3) + vox(3)
|
||||
|
|
|
|||
|
|
@ -41,10 +41,8 @@ def main(file_, o):
|
|||
sys.stdout.flush()
|
||||
for y in range(1,ny+1):
|
||||
for z in range(1,nz+1):
|
||||
xm,ym,zm,id_ = get_int(fh, 4)
|
||||
id_ = get_int(fh)[0]
|
||||
silomesh.set_value(float(id_), x, y, z)
|
||||
if not x == xm or not y == ym or not z == zm:
|
||||
raise Exception("mesh mismatch!")
|
||||
print
|
||||
silomesh.finalize_var()
|
||||
silomesh.finalize_mesh()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue