henze-research-group / MODRLC

The Advanced Controls Test Bed (ACTB) is a virtual buildings test bed that interfaces external controllers to high-fidelity Spawn of EnergyPlus models.
26 stars 9 forks source link

wetcoil.mo: TADP out of bounds when simulated with JModelica #5

Closed ThibaultMarzullo closed 3 years ago

ThibaultMarzullo commented 3 years ago

The current implementation of SOM3 crashes because the value of TADP drops below the lower bound. The error could be related to the MBL.

Dymola:

The simulation works flawlessly.

JModelica:

The simulation crashes before completing the first step. The log gives a warning and an error: 1) mod.system3CAV.sinSpeDX.dxCoo.wetCoi.appDewPt.m_flow_nonzero becomes zero, even if I manually set up a nonzero Mdot in the .mo file. This leads to a warning because of a division by zero. 2) mod.system3CAV.sinSpeDX.dxCoo.wetCoi.appDewPt.TADP decreases until it breaks a lower bound. The simulation crashes afterwards.

Debug

ThibaultMarzullo commented 3 years ago

The DX coil model can be abused in a simple test case and still works well in JModelica.

ThibaultMarzullo commented 3 years ago

Solved in som3-RBC