Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

Access to a warmUpFlag to pass in an FMU cosim

asked 2025-05-21 08:57:46 -0500

maxdoya's avatar

updated 2025-05-21 09:10:08 -0500

Hi Everyone,

I am using EP in an FMU simulation which simulate an agent-based occupancy, I am trying to disable the random Opening/Closing schedules during WarmUp days to facilitate model convergence. I have seen several posts talking about a WarmUp Flag which can be found through EMS, though I can not see it in the .rdd, and the OutputDetailsAndExamples is only citing it in the Time Table Contents.

Is someone able to explain me how to access it through EMS, Output:Variable or another way in order to feed it to the ExternalInterface:FunctionalMockupUnitImport:From:Variable ?

Thank in advance for your help

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2025-05-26 02:39:20 -0500

maxdoya's avatar

updated 2025-05-26 03:44:11 -0500

If it helps anyone, I have found a satisfying solution, I don't know if it is state of the art, but it achieves my goals.

!-   ===========  ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:PROGRAMCALLINGMANAGER ===========

EnergyManagementSystem:ProgramCallingManager,
    WarmupFlagCaller,        !- Name
    AfterNewEnvironmentWarmUpIsComplete,  !- EnergyPlus Model Calling Point
    WarmupFlagProgram;       !- Program Name 1


!-   ===========  ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:PROGRAM ===========

EnergyManagementSystem:Program,
    WarmupFlagProgram,       !- Name
    SET WarmupFlagProxy = 1; !- Program Line 1


!-   ===========  ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:GLOBALVARIABLE ===========

EnergyManagementSystem:GlobalVariable,
    WarmupFlagProxy;         !- Erl Variable 1 Name


!-   ===========  ALL OBJECTS IN CLASS: ENERGYMANAGEMENTSYSTEM:OUTPUTVARIABLE ===========

EnergyManagementSystem:OutputVariable,
    WarmUpFlagEP,            !- Name
    WarmupFlagProxy,         !- EMS Variable Name
    Averaged,                !- Type of Data in Variable
    ZoneTimestep;            !- Update Frequency


!-   ===========  ALL OBJECTS IN CLASS: EXTERNALINTERFACE:FUNCTIONALMOCKUPUNITIMPORT:FROM:VARIABLE ===========

ExternalInterface:FunctionalMockupUnitImport:From:Variable,
    EMS,                     !- Output:Variable Index Key Name
    WarmUpFlagEP,            !- Output:Variable Name
    agentFMU.fmu,     !- FMU File Name
    FMI,                     !- FMU Instance Name
    WarmUpFlag;              !- FMU Variable Name
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops

Question Tools

1 follower

Stats

Asked: 2025-05-21 08:57:46 -0500

Seen: 119 times

Last updated: May 26