- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » How to use Humid Air from Externalmedia
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
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » How to use Humid Air from Externalmedia