This substance property library provides the possibility to import REFPROP fluids and mixtures. The mediums are imported by copying the FLD-file into the library data-path, usually found at: "C:\ProgramData\TLK-Thermo GmbH\TILMedia\<version>\Refprop". Note that the ProgramData is a hidden Windows folder. Therefore, it might be necessary to enable the display of hidden files in the windows folder options.
To access the properties of the copied FLD-file, it is recommended to create a user-defined substance record. A new substance record is easily created by duplicating the substance record of an existing medium (e.g. "TILMedia.VLEFluidTypes.TILMedia_R134a"). To assign the REFPROP-medium, the VLEFluidName
parameter has to be changed to "Refprop.NameOfTheFLDFile".
An example of a user-defined substance record is shown below:
record User_defined_substance_record "e.g. duplicated from TILMedia.VLEFluidTypes.TILMedia_R134a"
extends TILMedia.VLEFluidTypes.GUIBaseVLEFluid(
final fixedMixingRatio=false,
final nc_propertyCalculation=1,
final vleFluidNames={"Refprop.NameOfTheFLDFile"},
final mixingRatio_propertyCalculation={1});
end User_defined_substance_record;
Furthermore, it is possible to create user-defined mixtures of substances by changing the VLEFluidName
to a list of substance names (e.g. {"Refprop.PROPANE.FLD","Refprop.ISOBUTAN.FLD","Refprop.CO2.FLD"}) and assigning the composition of the mixture by the mixingRatio_propertyCalculation
parameter (e.g. {0.65,0.3,0.05}). It is possible to hand over the relative composition, since the mixing ratio is standardized.
For more information on the substance records see the substance record documentation.