Closed dushyant-fire closed 1 year ago
Although I would personally think this is a bug in FDS and not the reader (as an identifier should always be unique), I think it is easier for us to fix the problem in the reader, which also has the advantage of enabling backwards compatibility.
I'll look into the issue and see if your solution covers all cases.
Implemented in 1.9.10
Hello, I came across the issue where fdsreader was reading only the first mesh from 9 meshes. These meshes were created by the following FDS input (a simpler FDS input shown here that recreated the error),
However, I accidentally left the
ID
on&MESH
(as shown here) and by doing that, FDS created all meshes with the same ID. It seems that fdsreader was having trouble with reading the output data from these meshes. It was likely because of this line in slice.pywhich only takes unique mesh_ids. I fixed this by appending a string at the end of the mesh_id if the mesh_id repeats. I updated the
simulation.py
, by first instantiatingself.mesh_count
in__init__()
and added the following in_load_mesh
method,Let me know if you want me to push the changes.
Thanks, Dushyant