Archived OpenModelica forums. Posting is disabled.

Alternative forums include GitHub discussions or StackOverflow (make sure to read the Stack Overflow rules; you need to have well-formed questions)


Forgot password? | Forgot username? | Register

Compilation error

Compilation error

Hello,

I made a simple model (see attachment). When simulating, the compilator says there's an error. So I cannot simulate my model current/sad

I get a two warnings, but no error. So I have no idea what's wrong.

Does anyone have any ideas on how to get this model to simulate?

Thanks in advance!


ExampleFluids.mo



Edited by: Malik - Aug-17-20 10:44:59
Attachments:

Re: Compilation error

Hi,

I have just simulated that in Dymola, which were able to give some hints. First of all, I had to select different medium that water_base - e.g. WaterIF97_ph as the base allegedly missed some constants.

Then it compiled but failed in initialization because of too low source pressure:¨

Error: The following error was detected at time: 0
  IF97 medium function tsat called with too low pressure
p = 1.2 Pa <= 611.657 Pa (triple point pressure)
  Failed condition: p > 611.657


I set to at 1.2 Bars instead and seems to simulate fine in both OM and Dymola.

Best,
F/

I am attaching the modified model.
ExampleFluids.mo

Attachments:
There are 0 guests and 0 other users also viewing this topic