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

Modelica.Fluid and Media

Modelica.Fluid and Media

I try  the newest nightly and try to use parts of the Fluid Lib but it not work fine so i try to test the examples

I picked the model Modelica.Fluid.Examples.Tanks.TanksWithOverflow
but the model checker give me following message:

Code:


[C:/OpenModelica1.8.0/lib/omlibrary/Modelica 3.1/Fluid/Pipes.mo:21:5-40:85:writable] Error: No matching function found for Medium.density(flowModel.states[1])
of type
  .Modelica.Fluid.Pipes.StaticPipe.Medium.density<function>(state:record Modelica.Fluid.Pipes.StaticPipe.FlowModel.Medium.ThermodynamicState
end Modelica.Fluid.Pipes.StaticPipe.FlowModel.Medium.ThermodynamicState;) => Real(min=0.0, max=100000.0, nominal=1.0, start=1.0, quantity=\"Density\", unit=\"kg/m3\", displayUnit=\"g/cm3\") in component pipe
candidates are
  .Modelica.Fluid.Pipes.StaticPipe.Medium.density<function>(state:record Modelica.Fluid.Pipes.StaticPipe.Medium.ThermodynamicState
Integer(min=0, max=2) phase;
Real(min=-100000000.0, max=100000000.0, nominal=1000000.0, quantity=\"SpecificEnergy\", unit=\"J/kg\") h;
Real(min=0.0, max=100000.0, nominal=1.0, start=1.0, quantity=\"Density\", unit=\"kg/m3\", displayUnit=\"g/cm3\") d;
Real(min=1.0, max=10000.0, nominal=300.0, start=300.0, quantity=\"ThermodynamicTemperature\", unit=\"K\", displayUnit=\"degC\") T;
Real(min=0.0, max=100000000.0, nominal=100000.0, start=100000.0, quantity=\"Pressure\", unit=\"Pa\", displayUnit=\"bar\") p;
end Modelica.Fluid.Pipes.StaticPipe.Medium.ThermodynamicState;) => Real(min=0.0, max=100000.0, nominal=1.0, start=1.0, quantity=\"Density\", unit=\"kg/m3\", displayUnit=\"g/cm3\")
Error: Error occurred while flattening model Modelica.Fluid.Examples.Tanks.TanksWithOverflow

I have similar Problems when i want to use Modelica.Fluid.Pipes.StaticPipe i try different Mediums packages of water already.
Anyone have a Idea what wents wrong, or i did wrong????

THX

Re: Modelica.Fluid and Media

Hi,

We don't fully support Modelica.Fluid yet.
We can flatten Modelica.Media but we cannot simulate all models.
We are working on fully supporting these libraries but it will take some time.

Cheers,
Adrian Pop/

Re: Modelica.Fluid and Media

Ah okay

thx than i didn't do anythink wrong current/wink

Good luck for this topic...

THX for your superfast reply

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