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

How to use Humid Air from Externalmedia

How to use Humid Air from Externalmedia

Hallo everyone

I am now using CoolProp from ExternalMedia for the fluid property calculation. for single substance such as CO2 it works well.
But now I need to use humid air. I am confused, because I don't know how to call the Humid air in Modelica.

for CO2 I just need to define:

package CO2CoolProp "CoolProp model of CO2"
  extends ExternalMedia.Media.CoolPropMedium(mediumName = "CarbonDioxide", substanceNames = {"CO2|debug=0|calc_transport=1"}, ThermoStates = Modelica.Media.Interfaces.Choices.IndependentVariables.ph);
end CO2CoolProp;

an it worked.

but when i do the same for humid air:

model HumidAirCoolProp
  extends ExternalMedia.Media.CoolPropMedium(
  mediumName = "HumidAir",
  substanceNames = {"moist air"},
  ThermoStates = Modelica.Media.Interfaces.Choices.IndependentVariables.ph);
end HumidAirCoolProp;

when the simulation runs, it tells me:
terminate called after throwing an instance of 'ValueError'
  what():  Bad Fluid name [moist air] - not a CoolProp fluid

dose anyone know how to use the Humid air from Coolprop in OpenModelica

best regards

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