- Index
- » Users
- » MCMATH
- » Profile
Posts
Posts
Thank you matth. I can now call a function properly according to pressure and enthalpy but I would like also call a pT function for a superheated vapour but I think it is not possible because it is written that pTx is a dummy function.
Could you confirm me this "problem" ?
Thank you
Hi,
I've been trying to built a compressor model using R134a as refrigerant but I cannot not calculate the density of the refrigerant when using Modelica.Medium.R134a.R134a_ph library.
I don't know how to declare the dendity function, especially how to declare nX in the following model ? Indeed I tried different ways but I always have a message error.
model test
package Medium = Modelica.Media.R134a.R134a_ph;
parameter Medium.AbsolutePressure p = 300000;
parameter Medium.SpecificEnthalpy h = 420000;
Real rho;
equation
rho = Medium.density(Medium.setState_phX(p, h,fill(0,Medium.nX)));
end test;
Thank you very much for your help
- Index
- » Users
- » MCMATH
- » Profile