Skip to content

Error with CTRL/DEVC logic when using RESTART #16608

Closed

Description

@mcgratta

Discussed in #16607

Originally posted by ESett5555 September 30, 2026
Hi everyone,

Following up on discussion #16594, I am encountering an issue when combining &CTRL / &DEVC with a RESTART.

To isolate the problem, I set up a minimal test case (input file attached as error_restart.txt):

  • A simple $11 \times 7 \times 7\text{ m}$ room with adiabatic boundaries in Y and Z directions, and 1 m thick walls at both X boundaries.
  • A $0.5 \times 0.5\text{ m}$ opening on each X wall:
    • At $x = 0\text{ m}$: a &VENT supplying $20\text{ }^\circ\text{C}$ air at $1\text{ kg/s}$, controlled by a &DEVC (QUANTITY='TIME', SETPOINT=45., INITIAL_STATE=.TRUE.). A device tracks mass_flux_in.
    • At $x = 11\text{ m}$: an OPEN &VENT with a device tracking mass_flux_out.
  • Two &OBST lines linked to a &DEVC (QUANTITY='TIME', SETPOINT=45., INITIAL_STATE=.FALSE.), which are supposed to block the holes, in AQUAMARINE (green blueish) color.
  • A RESTART and KILL control logic triggered at $t = 30\text{ s}$ via &CTRL and a time-based &DEVC.

Expected sequence:

  1. $t = 0$ to $30\text{ s}$: Normal flow, mass_flux_in $\approx$ mass_flux_out $\approx 1\text{ kg/s}$.
  2. At $t = 30\text{ s}$: Simulation stops and generates restart files. When resumed with RESTART = .TRUE. on &MISC, the flow should continue uninterrupted (mass_flux_in $\approx$ mass_flux_out $\approx 1\text{ kg/s}$).
  3. At $t = 45\text{ s}$: Both &OBST appear and the supply fan turns off; mass fluxes should drop to $0\text{ kg/s}$.

The issue:

Right after the restart at $t = 30\text{ s}$, the OPEN VENT at $x = 11\text{ m}$ seems completely inactive: mass_flux_out immediately collapses to $\approx 0\text{ kg/s}$, while mass_flux_in increases a bit. However, later at $t = 45\text{ s}$, the dynamic &OBST do appear as expected on Smokeview (see the vector slide below).

image

Vector slice at y=0 of U-VEL:

pour.error_restart.mov

Tests conducted:

  • Stopping the calculation via a CHID.stop file instead of &CTRL KILL/RESTART leads to the exact same behavior (outflow drops to zero upon restart).
  • If I delete the second dynamic &OBST line (line 28 in the attached file), the restart works as expected: mass_flux_out remains at $1\text{ kg/s}$ until $t = 45\text{ s}$.

Could this be a pointer or indexing offset occurring when restoring dynamic boundary conditions / obstructions from the .restart file?

Any insight would be greatly appreciated!

I am working with FDS-6.11.0-132-g8f3c0f3-nightly.
error_restart.txt

Activity

  1. self-assigned this
    on Sep 30, 2026
  2. mcgratta commented on Sep 30, 2026

    @mcgratta
    ContributorAuthor

    I think I have found the problem. When the case is restarted, the OPEN vent is not activated because it appears that the obstruction is still there. This is not a control problem, but rather a problem with the start-up logic. I'll fix.

  3. mcgratta commented on Oct 1, 2026

    @mcgratta
    ContributorAuthor

    I fixed the problem, which was that the OBST blocking the OPEN hole was not removed again upon restarting the case. That is, FDS restored it to being solid at 30 s even though it was not due to be removed until 45 s. New plot is

    Image

    I'll leave this case open until you have a chance to test it. Assuming we have a successful test tonight, it will be available tomorrow.

  4. ESett5555 commented on Oct 2, 2026

    @ESett5555

    Hello @mcgratta ,

    Thank you for the fix. I will try to test it on my computer the case during next week.

    Have a great day !

  5. ESett5555 commented on Oct 5, 2026

    @ESett5555

    Hello again,

    I had the time to test it with the new nightly bundle, and it works as expected.

    Thank you for the fix and for your time.

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

Metadata

Metadata

Assignees

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