Skip to content

Smokeview will not show the supply and return of a mechanical vent in CFAST #2678

Open

Description

@mcgratta

CFAST allows a user to specify two areas and two heights for a mechanical vent, presumably because you could have a fan drawing hot air out of the top part of compartment 1 and pushing that hot air into the lower part of compartment 2. In such a case, we want Smokeview to draw both vents as pink rectangles, like this:

Image

based on an input line like this

!! Mechanical Ventilation
&VENT TYPE = 'MECHANICAL', ID = 'MechanicalVent_1', COMP_IDS = 'Comp 1' 'Comp 2', AREAS = 0.5, 0.25,
      HEIGHTS = 1.2, 0.4, ORIENTATIONS = 'VERTICAL', 'VERTICAL', FLOW = 0.02, CUTOFFS = 200, 300, OFFSETS = 1.8, 2.4, 2.0, 0.0
      FILTER_EFFICIENCY = 0, FILTER_TIME = 0 /

and a .smv entry like this

MVENTPOS
   1  0.1446E+01  0.2154E+01  0.2400E+01  0.2400E+01  0.8464E+00  0.1554E+01
MVENTPOS
   2  0.1750E+01  0.2250E+01  0.0000E+00  0.0000E+00  0.1500E+00  0.6500E+00

However, when I run Smokeview, I get the right picture, but an error when I try to load the Zone data

Image

I have not committed this yet, so you cannot reproduce the problem. What I want to know is:

  1. Am I assuming correctly that CFAST has this capability, and if so
  2. How can I get Smokeview to accept two mechanical vent images for a single mechanical vent CFAST construct.

Activity

  1. gforney commented on Oct 26, 2026

    @gforney
    Contributor

    Should there be 2 entries in rhe data file? Ie would you expect the data displayed at the 2 vent locations to be the same or different?

  2. mcgratta commented on Oct 26, 2026

    @mcgratta
    ContributorAuthor

    In CFAST 7, there are parameters AREAS(1:2) and HEIGHTS(1:2) on the VENT line, presumably to indicate the areas and heights of the supply and return vents. But there are not two sets of OFFSETS which would enable CFAST to tell Smokeview exactly where to draw the two vents. But I believe that this was all to be done with just a single VENT line.

  3. gforney commented on Oct 27, 2026

    @gforney
    Contributor

    when I was running smokeview on a cfast case I noticed a warning message regarding .po files used for language translation. I took translation code out some time ago but left some in which was the cause of this warning. I removed the rest so these warning message sshould not occur anymore.

  4. mcgratta commented on Oct 27, 2026

    @mcgratta
    ContributorAuthor

    The error remains. I don't think that it has to do with translation, but rather the fact that there is only one mechanical VENT line but I have changed the CFAST source code so that two MVENTPOS entries are written to the .smv file. Here is a case that should run with the new or old CFAST

    &HEAD VERSION = 7600, TITLE = 'CFAST Simulation' /
    !! CFAST input generated by CEdit 8
    
    &TIME SIMULATION = 3600, PRINT = 60, SMOKEVIEW = 15, SPREADSHEET = 15 /
    &INIT PRESSURE = 101325, RELATIVE_HUMIDITY = 50, INTERIOR_TEMPERATURE = 20, EXTERIOR_TEMPERATURE = 20,
          INTERIOR_O2_MASS_FRACTION = 0.23, EXTERIOR_O2_MASS_FRACTION = 0.23 /
    &MISC ADIABATIC = .FALSE., LOWER_OXYGEN_LIMIT = 0.15, MAX_ITERATION = -1, OVERWRITE = .TRUE.,
          SPECIFIC_EXTINCTION = 8700, 4400 /
    
    !! Compartments
    &COMP ID = 'Comp 1', DEPTH = 2.4, HEIGHT = 2.4, WIDTH = 3.6, ORIGIN = 0, 0, 0, GRID = 50, 50, 50,
          CEILING_MATL_ID = 'OFF', 'OFF', 'OFF', CEILING_THICKNESS = 0, 0, 0, WALL_MATL_ID = 'OFF', 'OFF', 'OFF',
          WALL_THICKNESS = 0, 0, 0, FLOOR_MATL_ID = 'OFF', 'OFF', 'OFF', FLOOR_THICKNESS = 0, 0, 0, HALL = .FALSE.,
          SHAFT = .FALSE., LEAK_AREA_RATIO = 0, 0, 0, FLOW_COEFFICIENT = 0 /
    &COMP ID = 'Comp 2', DEPTH = 2.4, HEIGHT = 2.4, WIDTH = 3.6, ORIGIN = 3.6, 0, 0, GRID = 50, 50, 50,
          CEILING_MATL_ID = 'OFF', 'OFF', 'OFF', CEILING_THICKNESS = 0, 0, 0, WALL_MATL_ID = 'OFF', 'OFF', 'OFF',
          WALL_THICKNESS = 0, 0, 0, FLOOR_MATL_ID = 'OFF', 'OFF', 'OFF', FLOOR_THICKNESS = 0, 0, 0, HALL = .FALSE.,
          SHAFT = .FALSE., LEAK_AREA_RATIO = 0, 0, 0, FLOW_COEFFICIENT = 0 /
    
    !! Mechanical Ventilation
    &VENT TYPE = 'MECHANICAL', ID = 'MechanicalVent_1', COMP_IDS = 'Comp 1' 'Comp 2', AREAS = 0.5, 0.25,
          HEIGHTS = 1.2, 0.4, ORIENTATIONS = 'VERTICAL', 'VERTICAL', FLOW = 0.02, CUTOFFS = 200, 300, OFFSETS = 1.8, 2.4
          FILTER_EFFICIENCY = 0, FILTER_TIME = 0 /
    
    !! Fires
    
    !! Fire Properties
    
    &TAIL /
    

    You can see that the VENT line has two different AREAS and two different HEIGHTS. I assume that the first value of each refers to the first compartment, the second value of each to the second compartment. But CFAST draws only one pink rectangle corresponding to the first value. My (uncommitted) change to the CFAST source code has been to read two pairs of OFFSETS and assign one to the first compartment and one to the second. I then added a second MVENTPOS to the .smv file as shown above. Run the case and modify the .smv file as I did and you should get the error, even with the latest Smokeview.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions