Extracting temperature data from the Output Slice Files

234 views
Skip to first unread message

Ella Chaumont

unread,
Jun 5, 2023, 9:35:44 PM6/5/23
to FDS and Smokeview Discussions
Hello everyone,

I am trying to extract Temperature data from the Slice files using  fds2ascii command. I can see my data written in a CSV file with the given name. However, all the data are only for my 1st mesh. I have 28 meshes and I specifically need to get temperature data from Mesh 14 and 15 where my fire occurred.  

#My domain size is 700 m x 210 m x 90 m and I am extracting values from 20 s to 55 s.

I entered the following answers (highlighted) in the command lines in my command prompt as per the FDS user guide.


  C:\Users\project files\test_4>fds2ascii
 Enter Job ID string (CHID):
Project_test_4
 What type of file to parse?
 PL3D file? Enter 1
 SLCF file? Enter 2
 BNDF file? Enter 3
2
 Enter Sampling Factor for Data?
 (1 for all data, 2 for every other point, etc.)
1
 Domain selection:
   y - domain size is limited
   n - domain size is not limited
   z - domain size is not limited and z levels are offset
   ya, na or za - slice files are selected based on type and location.
       The y, n, z prefix are defined as before.
y
 Enter min/max x, y and z
0 700 210 210 0 90
 Enter starting and ending time for averaging (s)
20 55
   1  TEMPERATURE  Project_test_4_0001_01.sf
  slice bounds:     0.00    25.00     0.00     0.00     0.00    90.00
   2  U-VELOCITY  Project_test_4_0001_02.sf
  slice bounds:     0.00    25.00     0.00     0.00     0.00    90.00
   3  V-VELOCITY  Project_test_4_0001_03.sf

...........
........... (many files generated)
...........

How many variables to read:
1
Enter index for variable 1
1
Integral of  TEMPERATURE =   8.7745E+04
Enter output file name:
Ab.csv
 Writing to file...      Ab.csv
Stop - Program terminated.


Could anyone please tell me what should I change to extract data from my desired slice files from mesh 14 and 15?

Thank you in advance.

Hodges, Jonathan

unread,
Jun 6, 2023, 5:01:15 AM6/6/23
to fds...@googlegroups.com
Each of the many files you have redacted correspond to a different quantity and a different mesh. You will need to identify which variable index corresponds to temperature in mesh 14 and 15. You'll need to run fds2ascii twice or tell it you want to extract 2 variables.

If you have python on your machine, you could try pyfdstools which has an example similar to this. You can get it with

pip install pyfdstools

Source is in GitHub:



From: fds...@googlegroups.com <fds...@googlegroups.com> on behalf of Ella Chaumont <ellach...@gmail.com>
Sent: Monday, June 5, 2023 9:35:44 PM
To: FDS and Smokeview Discussions <fds...@googlegroups.com>
Subject: [fds-smv] Extracting temperature data from the Output Slice Files
 
[CAUTION - EXTERNAL SENDER] Warning this email comes from an external source.


--
You received this message because you are subscribed to the Google Groups "FDS and Smokeview Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fds-smv+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fds-smv/5bd88f1f-e56c-4445-b97c-2db1d2161310n%40googlegroups.com.

mohamad sadegh sadeghi

unread,
Nov 13, 2023, 3:32:22 AM11/13/23
to FDS and Smokeview Discussions
Hi everyone,

Can we get the flame height and tilt angle by using pyfdstools and reading .sf files? if yes, then how?

Kevin McGrattan

unread,
Nov 13, 2023, 9:19:20 AM11/13/23
to fds...@googlegroups.com
There is a section in the User's Guide

image.png
Reply all
Reply to author
Forward
0 new messages