mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-21 03:48:08 -05:00
Tiny changes to example files for C# and Java so they will run - still need to be updated though
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -91,14 +91,14 @@ namespace ConsoleApplication1
|
||||
Console.Write(" " + "\n");
|
||||
Console.Write("************ BRINES AND SECONDARY WORKING FLUIDS *************" + "\n");
|
||||
Console.Write(" " + "\n");
|
||||
Console.Write("Density of 50% (mass) ethylene glycol/water at 300 K, 101.325 kPa: " + CoolProp.Props("D", 'T', 300, 'P', 101.325, "EG-50%") + "kg/m^3" + "\n");
|
||||
Console.Write("Viscosity of Therminol D12 at 350 K, 101.325 kPa: " + CoolProp.Props("V", 'T', 350, 'P', 101.325, "TD12") + "Pa-s" + "\n");
|
||||
Console.Write("Density of 50% (mass) ethylene glycol/water at 300 K, 101.325 kPa: " + CoolProp.Props("D", 'T', 300, 'P', 101.325, "INCOMP::EG-50%") + "kg/m^3" + "\n");
|
||||
Console.Write("Viscosity of Therminol D12 at 350 K, 101.325 kPa: " + CoolProp.Props("V", 'T', 350, 'P', 101.325, "INCOMP::TD12") + "Pa-s" + "\n");
|
||||
|
||||
Console.Write(" " + "\n");
|
||||
Console.Write("************ HUMID AIR PROPERTIES *************" + "\n");
|
||||
Console.Write(" " + "\n");
|
||||
Console.Write("Humidity ratio of 50% rel. hum. air at 300 K, 101.325 kPa: " + CoolProp.HAProps("W", "T", 300, "P", 101.325, "R", 0.5) + " kg_w/kg_da" + "\n");
|
||||
Console.Write("Relative humidity from last calculation: " + CoolProp.HAProps("R", "T", 300, "P", 101.325, "W", CoolProp.HAProps("W", "T", 300, "P", 101.325, "R", 0.5)) + "(fractional)" + "\n");
|
||||
Console.Write("Relative humidity from last calculation: " + CoolProp.HAProps("R", "T", 300, "P", 101.325, "W", CoolProp.HAPropsSI("W", "T", 300, "P", 101.325, "R", 0.5)) + "(fractional)" + "\n");
|
||||
|
||||
//Console.Write("Enter to quit");
|
||||
//Console.ReadLine();
|
||||
|
||||
@@ -89,8 +89,8 @@ public class Example {
|
||||
System.out.println(" ");
|
||||
System.out.println("************ BRINES AND SECONDARY WORKING FLUIDS *************");
|
||||
System.out.println(" ");
|
||||
System.out.println("Density of 50% (mass) ethylene glycol/water at 300 K, 101.325 kPa: " + CoolProp.Props("D", 'T', 300, 'P', 101.325, "EG-50%") + "kg/m^3");
|
||||
System.out.println("Viscosity of Therminol D12 at 350 K, 101.325 kPa: " + CoolProp.Props("V", 'T', 350, 'P', 101.325, "TD12") + "Pa-s");
|
||||
System.out.println("Density of 50% (mass) ethylene glycol/water at 300 K, 101.325 kPa: " + CoolProp.Props("D", 'T', 300, 'P', 101.325, "INCOMP::EG-50%") + "kg/m^3");
|
||||
System.out.println("Viscosity of Therminol D12 at 350 K, 101.325 kPa: " + CoolProp.Props("V", 'T', 350, 'P', 101.325, "INCOMP::TD12") + "Pa-s");
|
||||
|
||||
System.out.println(" ");
|
||||
System.out.println("************ HUMID AIR PROPERTIES *************");
|
||||
|
||||
Reference in New Issue
Block a user