[fds2ascii] How to specify 1D SLICE location?

375 views
Skip to first unread message

Alvin Quah

unread,
May 28, 2015, 4:01:51 AM5/28/15
to fds...@googlegroups.com
Hi everyone, 

I am trying to use fds2ascii to extract data from SLCF files by selecting the domain based on type and location (domain selection: "na") but got stuck at this prompt "1D SLICE location (x y zmin zmax)". 

How should the 1D SLICE location be specified if I am only interested in extracting from the slice at PBZ=22.8? 

I tried "3.0 4.0 50.0 60.0 22.8 22.8" (xmin xmax ymin ymax zmin zmax) but this produced no result (fdsascii ends upon hitting the Enter key).


Thanks, 
Alvin 

Sam J

unread,
Mar 10, 2017, 9:15:53 PM3/10/17
to FDS and Smokeview Discussions
Running into same problem. Hows should 1D Slice location be specified? I am looking at averaging values from a PBZ slice as well (PBZ=2.6)

Randy McDermott

unread,
Mar 11, 2017, 6:12:16 AM3/11/17
to FDS and Smokeview Discussions
I just tried to look at a PBZ slice with fds2ascii and things seems to work.  What I did was to run the Verification/Flowfields/helium_air_jet_floor.fds case.  My fds2ascii inputs are shown below.  Note I added the 7th slice, a PBZ slice of TEMPERATURE.  If you are still having problems, please post a simple input file to the Issue Tracker along with output similar to below, and we will take a look.

https://github.com/firemodels/fds/issues

molly:Flowfields rmcdermo$ fds2ascii

  Enter Job ID string (CHID):

helium_air_jet_floor

  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 1.5 0 1.5 0 .75                                 

  Enter starting and ending time for averaging (s)

0 2

  1  VELOCITY  helium_air_jet_floor_01.sf

   slice bounds:     0.00     1.50     0.75     0.75     0.00     0.75

  2  U-VELOCITY  helium_air_jet_floor_02.sf

   slice bounds:     0.00     1.50     0.75     0.75     0.00     0.75

  3  V-VELOCITY  helium_air_jet_floor_03.sf

   slice bounds:     0.00     1.50     0.75     0.75     0.00     0.75

  4  W-VELOCITY  helium_air_jet_floor_04.sf

   slice bounds:     0.00     1.50     0.75     0.75     0.00     0.75

  5  HELIUM VOLUME FRACTION  helium_air_jet_floor_05.sf

   slice bounds:     0.00     1.50     0.77     0.77     0.00     0.75

  6  TEMPERATURE  helium_air_jet_floor_06.sf

   slice bounds:     0.00     1.50     0.77     0.77     0.00     0.75

  7  TEMPERATURE  helium_air_jet_floor_07.sf

   slice bounds:     0.00     1.50     0.00     1.50     0.25     0.25

 How many variables to read:

1

 Enter index for variable 1

7

 Integral of  TEMPERATURE =   4.5029E+01

 Enter output file name:

test_tmp_out.dat

  Writing to file...      test_tmp_out.dat


--
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+unsubscribe@googlegroups.com.
To post to this group, send email to fds...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fds-smv/a93284c3-2682-4182-85ee-6d7edee29850%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Sam J

unread,
Mar 13, 2017, 1:45:22 PM3/13/17
to FDS and Smokeview Discussions
Could you please provide an example using the 'ya' option. Everything is good until the 1D slice location prompt. The problem with the approach in your example is  that I have well over 500 .sf files (3577 to be exact). This is because I have 43 specific slice locations, with 4 slice instances at each location to measure, temperature, velocity, carbon monoxide mass fraction and visibility. 43 * 4 = 172 slices. To make things worse, each slice is further chopped up since my domain is split into 40 meshes. This creates over 500 files (3577 to be exact). I want to pinpoint results form a specific PBZ slice measuring carbon monoxide mass fraction, but the list is so long that I can't find the slice of interest in the partial list of 500 slices.

Here is what I encounter. I have tried many different inputs at the last prompt but everything just results in fds2ascii aborting prematurely.

To unsubscribe from this group and stop receiving emails from it, send an email to fds-smv+u...@googlegroups.com.

To post to this group, send email to fds...@googlegroups.com.

Randy McDermott

unread,
Mar 13, 2017, 3:33:15 PM3/13/17
to FDS and Smokeview Discussions
I have the same problem if I use ya.  It is not documented and looking at the code did not help me sort it out.

I suggest you just use y.  Here is an example with that option that seemed to work.  Note: If you load a slice in Smokeview the command window will tell you the exact name of the file you are loading.  This will help you sort through your list of files.  Once you have the filename, you could use the slread.m script to parse it.  That is what I would do if the y option does not work for you.

[rmcdermo@burn Flowfields]$ fds2ascii

  Enter Job ID string (CHID):

helium_air_jet_floor

  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

.25 .75 .75 .75 .25 .5

  Enter starting and ending time for averaging (s)

1 2

  1  VELOCITY  helium_air_jet_floor_01.sf

   slice bounds:     0.00     1.50     0.75     0.75     0.00     0.75

  2  U-VELOCITY  helium_air_jet_floor_02.sf

   slice bounds:     0.00     1.50     0.75     0.75     0.00     0.75

  3  V-VELOCITY  helium_air_jet_floor_03.sf

   slice bounds:     0.00     1.50     0.75     0.75     0.00     0.75

  4  W-VELOCITY  helium_air_jet_floor_04.sf

   slice bounds:     0.00     1.50     0.75     0.75     0.00     0.75

  5  HELIUM VOLUME FRACTION  helium_air_jet_floor_05.sf

   slice bounds:     0.00     1.50     0.77     0.77     0.00     0.75

  6  TEMPERATURE  helium_air_jet_floor_06.sf

   slice bounds:     0.00     1.50     0.77     0.77     0.00     0.75

 How many variables to read:

1

 Enter index for variable 1

5

 Integral of  HELIUM VOLUME FRACTION =   3.8437E-03

 Enter output file name:

test_fds2ascii

  Writing to file...      test_fds2ascii


To unsubscribe from this group and stop receiving emails from it, send an email to fds-smv+unsubscribe@googlegroups.com.

To post to this group, send email to fds...@googlegroups.com.

Sam J

unread,
Mar 13, 2017, 5:20:43 PM3/13/17
to FDS and Smokeview Discussions
Thanks a lot for looking into this. Based on your suggestions I figured another workable solution to use the 'y' option. I backed up my original .smv file and then edited it the .smv file in a text editor. I noticed that the slices were numbered by mesh index. I figured that my area of interest was in mesh # 40, so I deleted all unnecessary SCLF lines except for the required SLCF 40 lines that were measuring carbon monoxide and temperature. I didn't need to delete the actual .sf files. The 'y' option then worked wonderfully as seen below. Now instead of 500+ slices, fds2ascii presented a much shorter list of 16 slices. 


fds2ascii

  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
111.6 112.8 -39.2 -38.4 2.6 2.6
  Enter starting and ending time for averaging (s)
120 1070
  1  TEMPERATURE  CHID_0040_09.sf
   slice bounds:    81.00   112.80   -47.80   -29.80     2.00     2.00
  2  TEMPERATURE  CHID_0040_10.sf
   slice bounds:    81.00   112.80   -47.80   -29.80     2.20     2.20
  3  TEMPERATURE  CHID_0040_11.sf
   slice bounds:    81.00   112.80   -47.80   -29.80     2.60     2.60
  4  TEMPERATURE  CHID_0040_12.sf
   slice bounds:    81.00   112.80   -47.80   -29.80     2.80     2.80
  5  TEMPERATURE  CHID_0040_13.sf
   slice bounds:    81.00   112.80   -44.00   -44.00    -3.20     5.80
  6  TEMPERATURE  CHID_0040_14.sf
   slice bounds:    81.00   112.80   -38.40   -38.40    -3.20     5.80
  7  TEMPERATURE  CHID_0040_15.sf
   slice bounds:    81.00   112.80   -32.80   -32.80    -3.20     5.80
  8  TEMPERATURE  CHID_0040_16.sf
   slice bounds:   108.00   108.00   -47.80   -29.80    -3.20     5.80
  9  CARBON MONOXIDE MASS FRACTION  CHID_0040_49.sf
   slice bounds:    81.00   112.80   -47.80   -29.80     2.00     2.00
 10  CARBON MONOXIDE MASS FRACTION  CHID_0040_50.sf
   slice bounds:    81.00   112.80   -47.80   -29.80     2.20     2.20
 11  CARBON MONOXIDE MASS FRACTION  CHID_0040_51.sf
   slice bounds:    81.00   112.80   -47.80   -29.80     2.60     2.60
 12  CARBON MONOXIDE MASS FRACTION  CHID_0040_52.sf
   slice bounds:    81.00   112.80   -47.80   -29.80     2.80     2.80
 13  CARBON MONOXIDE MASS FRACTION  CHID_0040_53.sf
   slice bounds:    81.00   112.80   -44.00   -44.00    -3.20     5.80
 14  CARBON MONOXIDE MASS FRACTION  CHID_0040_54.sf
   slice bounds:    81.00   112.80   -38.40   -38.40    -3.20     5.80
 15  CARBON MONOXIDE MASS FRACTION  CHID_0040_55.sf
   slice bounds:    81.00   112.80   -32.80   -32.80    -3.20     5.80
 16  CARBON MONOXIDE MASS FRACTION  CHID_0040_56.sf
   slice bounds:   108.00   108.00   -47.80   -29.80    -3.20     5.80

How many variables to read:
2
Enter index for variable 1
3
Integral of  TEMPERATURE =   2.1142E+03
Enter index for variable 2
11
Integral of  CARBON MONOXIDE MASS FRACTION =   3.1900E-03
Enter output file name:
data.txt
 Writing to file...      data.txt
Stop - Program terminated.

Randy McDermott

unread,
Mar 13, 2017, 5:22:16 PM3/13/17
to FDS and Smokeview Discussions
Well done!

To unsubscribe from this group and stop receiving emails from it, send an email to fds-smv+unsubscribe@googlegroups.com.

To post to this group, send email to fds...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages