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

LNG (liquified natural gas) Simulation with Dymola

LNG (liquified natural gas) Simulation with Dymola

Hello,

i started to build up a simple model in Dymola with two tanks and one pipe in between. When i choose "simple natural gas" as a medium i can run the simulation and everythink works fine.
But for my whole project i need also to run the natural gas in a liquified phase, which means that the temperature is about -162°celsius. If the ambient temperature is like this, an error occurs in the simulation mode:


... "dsin.txt" loading (dymosim input file)
tank.medium.T >= 200 and tank.medium.T <= 6000
The following error was detected at time: 0

Temperature T (=173.15 K = 200 K) is not in the allowed range
200 K <= T <= 6000 K
required from medium model "SimpleNaturalGas".
Error: Failed to start model.

- Does anyone know how to handle the natural gas within an temperature range from -162°C to +40°C?
- are there any other opportunities? e.g. using Look-Up-tables with pV-,ph- and T,s- diagrams?
- Is it possible to do such simulation (vaporizing gas) in Dymola or is it recommended to use another software for it?

When i use another medium, e.g. CH4 (methane) the same problem appears.

Thanks a lot for any hints and comments!
Regards, Jesper Renz

Re: LNG (liquified natural gas) Simulation with Dymola

Hi Jesper,

"Simple natural gas" is implemented as an ideal gas mixture (Modelica.Media.IdealGasses.MixtureGasses.SimpleNaturalGas) so it doesn't support phase change. That's why you get the error message saying that the gas temperature must be higher than 200 K.

The Modelica Standard Library (MSL) doesn't contain many two-phase gasses (only water/steam and R134a, I think). So you should probably look for an external medium library: CoolProp, RefProp or whatnot.

Hint: you should google "modelica external media" to find a solution.

Best regards
Rene Just Nielsen

Re: LNG (liquified natural gas) Simulation with Dymola

Hello Rene,

thank you for your informative reply.

I found out that RefProp is an commercial product from NIST https://www.nist.gov/srd/refprop   and could deliver the needed informations, but it is not for free.
Whereas CoolProf is the open-source alternative for RefProf https://sourceforge.net/projects/coolpr … directory

While installing the CoolProf Libary, with the wrapper, i got some further problems. I will try first to figure everything out and check the help on http://www.coolprop.org/v4/

I will post my results later on.
Regards, Jesper


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