FireDynamics / fdsreader

Python reader for FDS data
GNU General Public License v3.0
44 stars 18 forks source link

Read FED slice #38

Closed TomOsw closed 3 years ago

TomOsw commented 3 years ago

Hello, thanks for your work, it is a great help for my postprocessing.

Is there any possibility or workaround to read the FED slice generated from Smokeview? I tried to add it to the SMV File (with correct path and it works in SMV) but it gives me an an subslice with this error in the data field:

image

Thank you, Thomas

JanVogelsang commented 3 years ago

Hello Thomas, actually it should read in the FED slices automatically already. However, I am not quite sure what you mean by "generated from Smokeview". I am not aware of SmokeView generating any data, could you explain that further?

Also, maybe you can attach your .fds input file so I can run your simulation myself and check if I am able to read the data you need.

JanVogelsang commented 3 years ago

By the way, did you check if you can't simply acces your data with sim.evacs.fed_grid?

TomOsw commented 3 years ago

The FED slice is calculated with the first opening of Smokeview out of these three slices: image

(It has the ending _fed.sf)

It is not in the slice collection and is also not mentioned in the SMV file (where you get the slice file locations i think?) After manually adding the entry, the slice is in the collection, but the i get the error mentioned above.

My example file (+ the simulation results WITHOUT the mentioned fed.sf so that you can see how it is generated after the first opening of .smv)

I have no EVAC data in most of my simulations but i will enable it, if that's a workaround.

Thank you for your help.

TomOsw commented 3 years ago

Forgot to mention that you have to load the slice "Fractional effective dose" in SMV to generate it.

JanVogelsang commented 3 years ago

Hm unfortunately I can not reproduce your error. I can successfully load the FED slice and plot the corresponding data.

SLCF 1 # STRUCTURED & 0 617 0 22 4 4 ! 12 example_1_3_fed.sf Fractional effective dose FED

By adding this snippet to the .smv-file, the slice gets loaded in correctly as 12th slice, try it out.

TomOsw commented 3 years ago

Thank you for looking into that. I found my issue. If you abort the simulation this FED slice gets corrupted (other slices worked flawlessly so i did not notice that before).

JanVogelsang commented 3 years ago

Good to know!