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

Mixing of Media

Mixing of Media

e.g. there is already a quite good MediaPackage for Air but i need for my model additional substance in it e.g NO2 NH3....
therefore my Question if there is a way to mix them? i can't connect together because the Media is declared in the connector.

Re: Mixing of Media

Generally it’s possible to define your own Medium with Media from Modelica Standard Library. You have to create a new package and there you can define your medium. The best way to find out, how to do, is to look at the free ThermoPower Library :
e.g.: ThermoPower.Media.FlueGas
( or  Modelica.Media.IdealGases.MixtureGases.FlueGasSixComponents)
Then in your model/connector you have to use the commands “replaceable package….” and “redeclare package ….” to use your own medium.
See e.g. :
ThermoPower.Gas.FlangeA,
ThermoPower.Gas.Mixer,
ThermoPower.Test.GasElements.TestGasMixer

(provided that the simulation tool is able to use Modelica.Media)

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