mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-01 03:00:13 -04:00
Rearrangement of the wrappers - moved from wrappers to Web/coolprop/wrappers
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -8,6 +8,24 @@ Pre-compiled Binaries
|
||||
=====================
|
||||
Pre-compiled release binaries can be downloaded from :sfdownloads:`Csharp`. Development binaries coming from the buildbot server can be found at :bbbinaries:`Csharp`. Download the files appropriate to your system.
|
||||
|
||||
To Use
|
||||
------
|
||||
|
||||
Copy all the .cs files to a location you want. You will need to have a copy of some version of C#.
|
||||
|
||||
At the command prompt, run::
|
||||
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
|
||||
csc *.cs /platform:x86
|
||||
call Example
|
||||
|
||||
where you might need to update the path to visual studio depending on your version installed.
|
||||
|
||||
32-bit: Use `/platform:x86` to avoid PINVOKE errors!
|
||||
64-bit: Use `/platform:x64` to avoid PINVOKE errors!
|
||||
|
||||
Alternatively, you can add all the .cs files to a visual studio project.
|
||||
|
||||
User-Compiled Binaries
|
||||
======================
|
||||
|
||||
|
||||
@@ -8,7 +8,12 @@ Pre-compiled Binaries
|
||||
=====================
|
||||
Pre-compiled binaries can be downloaded from :sfdownloads:`Java`, which come from :bbbinaries:`the continuous development buildbot server <Java>`.
|
||||
|
||||
When the binaries are found, java should by executed () with
|
||||
Usage
|
||||
-----
|
||||
At the console, run::
|
||||
|
||||
javac *.java
|
||||
java Example
|
||||
|
||||
User-Compiled Binaries
|
||||
======================
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
REM ******** set the variables ************
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
|
||||
call "C:\Program Files\Microsoft Visual Studio 9.0\VC\vcvarsall.bat"
|
||||
|
||||
erase *_wrap.cpp
|
||||
|
||||
swig.exe -csharp -dllimport "CoolProp" -c++ -I../../include -outcurrentdir ../../src/CoolProp.i
|
||||
cl /c /I../../include /EHsc CoolProp_wrap.cxx
|
||||
|
||||
REM ******* compile all the sources ***************
|
||||
cl /c /MP3 /O2 /I../../include /EHsc /DNDEBUG /DCOOLPROP_LIB ../../src/*.cpp
|
||||
cl /c /MP3 /O2 /I../../include /EHsc /DNDEBUG /DCOOLPROP_LIB ../../src/Backends/*.cpp
|
||||
cl /c /MP3 /O2 /I../../include /EHsc /DNDEBUG /DCOOLPROP_LIB ../../src/Fluids/*.cpp
|
||||
cl /c /MP3 /O2 /I../../include /EHsc /DNDEBUG /DCOOLPROP_LIB ../../src/Tests/*.cpp
|
||||
|
||||
link /DLL CoolProp_wrap.obj *.obj /OUT:CoolProp.dll
|
||||
dumpbin /EXPORTS CoolProp.dll > exports.txt
|
||||
erase *.obj
|
||||
erase CoolProp_wrap.cxx
|
||||
erase CoolProp.lib
|
||||
erase CoolProp.exp
|
||||
|
||||
rem **** Make a zip file using 7-zip ***
|
||||
7z a -r Csharp.7z *.cs CoolProp.dll
|
||||
@@ -1,28 +0,0 @@
|
||||
Ian Bell, Ph.D. (ian.h.bell@gmail.com)
|
||||
November 2013
|
||||
|
||||
Info
|
||||
----
|
||||
These are the files needed for Csharp applications on Windows. A similar build process should be used for
|
||||
non-Windows application though no knowledge is available for non-Windows applications
|
||||
|
||||
To Use
|
||||
------
|
||||
|
||||
Copy all the .cs files to a location you want. You will need to have a copy of some version of C#.
|
||||
|
||||
At the command prompt, run::
|
||||
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
|
||||
csc *.cs /platform:x86
|
||||
call Example
|
||||
|
||||
where you might need to update the path to visual studio depending on your version installed. The `/platform:x86` is important to ensure that it uses 32-bit calling conventions to avoid PINVOKE errors!
|
||||
|
||||
Alternatively, you can add all the .cs files to a visual studio project.
|
||||
|
||||
Build
|
||||
-----
|
||||
The build batch file BuildCsharpDLL.bat should be run to generate the C# files. This requires SWIG!
|
||||
|
||||
Make sure you keep it in "x86" rather than "Any CPU" architecture so that it uses 32-bit calling conventions. Otherwise you will get PINVOKE errors!!!
|
||||
@@ -1,140 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProductVersion>9.0.30729</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{DA2EAA1B-8AED-423F-A86C-CF492C21EA21}</ProjectGuid>
|
||||
<OutputType>Exe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>ConsoleApplication1</RootNamespace>
|
||||
<AssemblyName>CoolProp.NET</AssemblyName>
|
||||
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<StartupObject>ConsoleApplication1.Program</StartupObject>
|
||||
<PublishUrl>publish\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>0</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<OutputPath>bin\x86\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<DebugType>full</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<OutputPath>bin\x86\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<Optimize>true</Optimize>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Xml.Linq">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data.DataSetExtensions">
|
||||
<RequiredTargetFramework>3.5</RequiredTargetFramework>
|
||||
</Reference>
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="CoolProp.cs" />
|
||||
<Compile Include="CoolPropPINVOKE.cs" />
|
||||
<Compile Include="Example.cs" />
|
||||
<Compile Include="phases.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="SWIGTYPE_p_double.cs" />
|
||||
<Compile Include="SWIGTYPE_p_Fluid.cs" />
|
||||
<Compile Include="SWIGTYPE_p_int.cs" />
|
||||
<Compile Include="unit_constants.cs" />
|
||||
<Compile Include="unit_systems.cs" />
|
||||
<Compile Include="_params.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework Client Profile</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Windows Installer 3.1</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WCFMetadata Include="Service References\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="CoolProp.dll">
|
||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||
</Content>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
</Target>
|
||||
<Target Name="AfterBuild">
|
||||
</Target>
|
||||
-->
|
||||
</Project>
|
||||
@@ -1,26 +0,0 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 10.00
|
||||
# Visual C# Express 2008
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CoolProp.NET", "CoolProp.NET.csproj", "{DA2EAA1B-8AED-423F-A86C-CF492C21EA21}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Debug|x86 = Debug|x86
|
||||
Release|Any CPU = Release|Any CPU
|
||||
Release|x86 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{DA2EAA1B-8AED-423F-A86C-CF492C21EA21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{DA2EAA1B-8AED-423F-A86C-CF492C21EA21}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{DA2EAA1B-8AED-423F-A86C-CF492C21EA21}.Debug|x86.ActiveCfg = Debug|x86
|
||||
{DA2EAA1B-8AED-423F-A86C-CF492C21EA21}.Debug|x86.Build.0 = Debug|x86
|
||||
{DA2EAA1B-8AED-423F-A86C-CF492C21EA21}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{DA2EAA1B-8AED-423F-A86C-CF492C21EA21}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{DA2EAA1B-8AED-423F-A86C-CF492C21EA21}.Release|x86.ActiveCfg = Release|x86
|
||||
{DA2EAA1B-8AED-423F-A86C-CF492C21EA21}.Release|x86.Build.0 = Release|x86
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
Binary file not shown.
@@ -1,260 +0,0 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 2.0.8
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class CoolProp {
|
||||
public static string get_global_param_string(string ParamName) {
|
||||
string ret = CoolPropPINVOKE.get_global_param_string(ParamName);
|
||||
if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static string get_fluid_param_string(string FluidName, string ParamName) {
|
||||
string ret = CoolPropPINVOKE.get_fluid_param_string(FluidName, ParamName);
|
||||
if (CoolPropPINVOKE.SWIGPendingException.Pending) throw CoolPropPINVOKE.SWIGPendingException.Retrieve();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double PropsS(string Output, string Name1, double Prop1, string Name2, double Prop2, string Ref) {
|
||||
double ret = CoolPropPINVOKE.PropsS(Output, Name1, Prop1, Name2, Prop2, Ref);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double Props(string Output, char Name1, double Prop1, char Name2, double Prop2, string Ref) {
|
||||
double ret = CoolPropPINVOKE.Props(Output, Name1, Prop1, Name2, Prop2, Ref);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double Props1(string Ref, string Output) {
|
||||
double ret = CoolPropPINVOKE.Props1(Ref, Output);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double IProps(int iOutput, int iName1, double Prop1, int iName2, double Prop2, int iFluid) {
|
||||
double ret = CoolPropPINVOKE.IProps(iOutput, iName1, Prop1, iName2, Prop2, iFluid);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int IsFluidType(string Ref, string Type) {
|
||||
int ret = CoolPropPINVOKE.IsFluidType(Ref, Type);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double DerivTerms(string Term, double T, double rho, string Ref) {
|
||||
double ret = CoolPropPINVOKE.DerivTerms(Term, T, rho, Ref);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int Phase(string Fluid, double T, double p, string Phase_str) {
|
||||
int ret = CoolPropPINVOKE.Phase(Fluid, T, p, Phase_str);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int Phase_Trho(string Fluid, double T, double p, string Phase_str) {
|
||||
int ret = CoolPropPINVOKE.Phase_Trho(Fluid, T, p, Phase_str);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int Phase_Tp(string Fluid, double T, double rho, string Phase_str) {
|
||||
int ret = CoolPropPINVOKE.Phase_Tp(Fluid, T, rho, Phase_str);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void set_phase(string Phase_str) {
|
||||
CoolPropPINVOKE.set_phase(Phase_str);
|
||||
}
|
||||
|
||||
public static double F2K(double T_F) {
|
||||
double ret = CoolPropPINVOKE.F2K(T_F);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double K2F(double T) {
|
||||
double ret = CoolPropPINVOKE.K2F(T);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int get_param_index(string param) {
|
||||
int ret = CoolPropPINVOKE.get_param_index(param);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int get_Fluid_index(string param) {
|
||||
int ret = CoolPropPINVOKE.get_Fluid_index(param);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int get_index_units(int param, string units) {
|
||||
int ret = CoolPropPINVOKE.get_index_units(param, units);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double rhosatL_anc(string Fluid, double T) {
|
||||
double ret = CoolPropPINVOKE.rhosatL_anc(Fluid, T);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double rhosatV_anc(string Fluid, double T) {
|
||||
double ret = CoolPropPINVOKE.rhosatV_anc(Fluid, T);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double psatL_anc(string Fluid, double T) {
|
||||
double ret = CoolPropPINVOKE.psatL_anc(Fluid, T);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double psatV_anc(string Fluid, double T) {
|
||||
double ret = CoolPropPINVOKE.psatV_anc(Fluid, T);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool enable_TTSE_LUT(string FluidName) {
|
||||
bool ret = CoolPropPINVOKE.enable_TTSE_LUT(FluidName);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool isenabled_TTSE_LUT(string FluidName) {
|
||||
bool ret = CoolPropPINVOKE.isenabled_TTSE_LUT(FluidName);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool disable_TTSE_LUT(string FluidName) {
|
||||
bool ret = CoolPropPINVOKE.disable_TTSE_LUT(FluidName);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool enable_TTSE_LUT_writing(string FluidName) {
|
||||
bool ret = CoolPropPINVOKE.enable_TTSE_LUT_writing(FluidName);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool isenabled_TTSE_LUT_writing(string FluidName) {
|
||||
bool ret = CoolPropPINVOKE.isenabled_TTSE_LUT_writing(FluidName);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool disable_TTSE_LUT_writing(string FluidName) {
|
||||
bool ret = CoolPropPINVOKE.disable_TTSE_LUT_writing(FluidName);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool set_TTSESat_LUT_size(string FluidName, int arg1) {
|
||||
bool ret = CoolPropPINVOKE.set_TTSESat_LUT_size(FluidName, arg1);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool set_TTSESinglePhase_LUT_size(string FluidName, int Np, int Nh) {
|
||||
bool ret = CoolPropPINVOKE.set_TTSESinglePhase_LUT_size(FluidName, Np, Nh);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool set_TTSESinglePhase_LUT_range(string FluidName, double hmin, double hmax, double pmin, double pmax) {
|
||||
bool ret = CoolPropPINVOKE.set_TTSESinglePhase_LUT_range(FluidName, hmin, hmax, pmin, pmax);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static bool get_TTSESinglePhase_LUT_range(string FluidName, SWIGTYPE_p_double hmin, SWIGTYPE_p_double hmax, SWIGTYPE_p_double pmin, SWIGTYPE_p_double pmax) {
|
||||
bool ret = CoolPropPINVOKE.get_TTSESinglePhase_LUT_range(FluidName, SWIGTYPE_p_double.getCPtr(hmin), SWIGTYPE_p_double.getCPtr(hmax), SWIGTYPE_p_double.getCPtr(pmin), SWIGTYPE_p_double.getCPtr(pmax));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int set_TTSE_mode(string FluidName, string Value) {
|
||||
int ret = CoolPropPINVOKE.set_TTSE_mode(FluidName, Value);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int set_reference_stateS(string Ref, string reference_state) {
|
||||
int ret = CoolPropPINVOKE.set_reference_stateS(Ref, reference_state);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int set_reference_stateD(string Ref, double T, double rho, double h0, double s0) {
|
||||
int ret = CoolPropPINVOKE.set_reference_stateD(Ref, T, rho, h0, s0);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static int get_standard_unit_system() {
|
||||
int ret = CoolPropPINVOKE.get_standard_unit_system();
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void set_standard_unit_system(int val) {
|
||||
CoolPropPINVOKE.set_standard_unit_system(val);
|
||||
}
|
||||
|
||||
public static double viscosity_dilute(string FluidName, double T) {
|
||||
double ret = CoolPropPINVOKE.viscosity_dilute(FluidName, T);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double viscosity_residual(string FluidName, double T, double rho) {
|
||||
double ret = CoolPropPINVOKE.viscosity_residual(FluidName, T, rho);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double conductivity_critical(string FluidName, double T, double rho) {
|
||||
double ret = CoolPropPINVOKE.conductivity_critical(FluidName, T, rho);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double conductivity_background(string FluidName, double T, double rho) {
|
||||
double ret = CoolPropPINVOKE.conductivity_background(FluidName, T, rho);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double conformal_Trho(string FluidName, string ReferenceFluidName, double T, double rho, SWIGTYPE_p_double Tconform, SWIGTYPE_p_double rhoconform) {
|
||||
double ret = CoolPropPINVOKE.conformal_Trho(FluidName, ReferenceFluidName, T, rho, SWIGTYPE_p_double.getCPtr(Tconform), SWIGTYPE_p_double.getCPtr(rhoconform));
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double HAProps(string OutputName, string Input1Name, double Input1, string Input2Name, double Input2, string Input3Name, double Input3) {
|
||||
double ret = CoolPropPINVOKE.HAProps(OutputName, Input1Name, Input1, Input2Name, Input2, Input3Name, Input3);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double HAProps_Aux(string OutputName, double T, double p, double W, string units) {
|
||||
double ret = CoolPropPINVOKE.HAProps_Aux(OutputName, T, p, W, units);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double IceProps(string Name, double T, double p) {
|
||||
double ret = CoolPropPINVOKE.IceProps(Name, T, p);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void UseVirialCorrelations(int flag) {
|
||||
CoolPropPINVOKE.UseVirialCorrelations(flag);
|
||||
}
|
||||
|
||||
public static void UseIsothermCompressCorrelation(int flag) {
|
||||
CoolPropPINVOKE.UseIsothermCompressCorrelation(flag);
|
||||
}
|
||||
|
||||
public static void UseIdealGasEnthalpyCorrelations(int flag) {
|
||||
CoolPropPINVOKE.UseIdealGasEnthalpyCorrelations(flag);
|
||||
}
|
||||
|
||||
public static void HAHelp() {
|
||||
CoolPropPINVOKE.HAHelp();
|
||||
}
|
||||
|
||||
public static int returnHumAirCode(string Code) {
|
||||
int ret = CoolPropPINVOKE.returnHumAirCode(Code);
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static double cair_sat(double T) {
|
||||
double ret = CoolPropPINVOKE.cair_sat(T);
|
||||
return ret;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,340 +0,0 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 2.0.8
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
class CoolPropPINVOKE {
|
||||
|
||||
protected class SWIGExceptionHelper {
|
||||
|
||||
public delegate void ExceptionDelegate(string message);
|
||||
public delegate void ExceptionArgumentDelegate(string message, string paramName);
|
||||
|
||||
static ExceptionDelegate applicationDelegate = new ExceptionDelegate(SetPendingApplicationException);
|
||||
static ExceptionDelegate arithmeticDelegate = new ExceptionDelegate(SetPendingArithmeticException);
|
||||
static ExceptionDelegate divideByZeroDelegate = new ExceptionDelegate(SetPendingDivideByZeroException);
|
||||
static ExceptionDelegate indexOutOfRangeDelegate = new ExceptionDelegate(SetPendingIndexOutOfRangeException);
|
||||
static ExceptionDelegate invalidCastDelegate = new ExceptionDelegate(SetPendingInvalidCastException);
|
||||
static ExceptionDelegate invalidOperationDelegate = new ExceptionDelegate(SetPendingInvalidOperationException);
|
||||
static ExceptionDelegate ioDelegate = new ExceptionDelegate(SetPendingIOException);
|
||||
static ExceptionDelegate nullReferenceDelegate = new ExceptionDelegate(SetPendingNullReferenceException);
|
||||
static ExceptionDelegate outOfMemoryDelegate = new ExceptionDelegate(SetPendingOutOfMemoryException);
|
||||
static ExceptionDelegate overflowDelegate = new ExceptionDelegate(SetPendingOverflowException);
|
||||
static ExceptionDelegate systemDelegate = new ExceptionDelegate(SetPendingSystemException);
|
||||
|
||||
static ExceptionArgumentDelegate argumentDelegate = new ExceptionArgumentDelegate(SetPendingArgumentException);
|
||||
static ExceptionArgumentDelegate argumentNullDelegate = new ExceptionArgumentDelegate(SetPendingArgumentNullException);
|
||||
static ExceptionArgumentDelegate argumentOutOfRangeDelegate = new ExceptionArgumentDelegate(SetPendingArgumentOutOfRangeException);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="SWIGRegisterExceptionCallbacks_CoolProp")]
|
||||
public static extern void SWIGRegisterExceptionCallbacks_CoolProp(
|
||||
ExceptionDelegate applicationDelegate,
|
||||
ExceptionDelegate arithmeticDelegate,
|
||||
ExceptionDelegate divideByZeroDelegate,
|
||||
ExceptionDelegate indexOutOfRangeDelegate,
|
||||
ExceptionDelegate invalidCastDelegate,
|
||||
ExceptionDelegate invalidOperationDelegate,
|
||||
ExceptionDelegate ioDelegate,
|
||||
ExceptionDelegate nullReferenceDelegate,
|
||||
ExceptionDelegate outOfMemoryDelegate,
|
||||
ExceptionDelegate overflowDelegate,
|
||||
ExceptionDelegate systemExceptionDelegate);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="SWIGRegisterExceptionArgumentCallbacks_CoolProp")]
|
||||
public static extern void SWIGRegisterExceptionCallbacksArgument_CoolProp(
|
||||
ExceptionArgumentDelegate argumentDelegate,
|
||||
ExceptionArgumentDelegate argumentNullDelegate,
|
||||
ExceptionArgumentDelegate argumentOutOfRangeDelegate);
|
||||
|
||||
static void SetPendingApplicationException(string message) {
|
||||
SWIGPendingException.Set(new System.ApplicationException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingArithmeticException(string message) {
|
||||
SWIGPendingException.Set(new System.ArithmeticException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingDivideByZeroException(string message) {
|
||||
SWIGPendingException.Set(new System.DivideByZeroException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingIndexOutOfRangeException(string message) {
|
||||
SWIGPendingException.Set(new System.IndexOutOfRangeException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingInvalidCastException(string message) {
|
||||
SWIGPendingException.Set(new System.InvalidCastException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingInvalidOperationException(string message) {
|
||||
SWIGPendingException.Set(new System.InvalidOperationException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingIOException(string message) {
|
||||
SWIGPendingException.Set(new System.IO.IOException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingNullReferenceException(string message) {
|
||||
SWIGPendingException.Set(new System.NullReferenceException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingOutOfMemoryException(string message) {
|
||||
SWIGPendingException.Set(new System.OutOfMemoryException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingOverflowException(string message) {
|
||||
SWIGPendingException.Set(new System.OverflowException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingSystemException(string message) {
|
||||
SWIGPendingException.Set(new System.SystemException(message, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
|
||||
static void SetPendingArgumentException(string message, string paramName) {
|
||||
SWIGPendingException.Set(new System.ArgumentException(message, paramName, SWIGPendingException.Retrieve()));
|
||||
}
|
||||
static void SetPendingArgumentNullException(string message, string paramName) {
|
||||
Exception e = SWIGPendingException.Retrieve();
|
||||
if (e != null) message = message + " Inner Exception: " + e.Message;
|
||||
SWIGPendingException.Set(new System.ArgumentNullException(paramName, message));
|
||||
}
|
||||
static void SetPendingArgumentOutOfRangeException(string message, string paramName) {
|
||||
Exception e = SWIGPendingException.Retrieve();
|
||||
if (e != null) message = message + " Inner Exception: " + e.Message;
|
||||
SWIGPendingException.Set(new System.ArgumentOutOfRangeException(paramName, message));
|
||||
}
|
||||
|
||||
static SWIGExceptionHelper() {
|
||||
SWIGRegisterExceptionCallbacks_CoolProp(
|
||||
applicationDelegate,
|
||||
arithmeticDelegate,
|
||||
divideByZeroDelegate,
|
||||
indexOutOfRangeDelegate,
|
||||
invalidCastDelegate,
|
||||
invalidOperationDelegate,
|
||||
ioDelegate,
|
||||
nullReferenceDelegate,
|
||||
outOfMemoryDelegate,
|
||||
overflowDelegate,
|
||||
systemDelegate);
|
||||
|
||||
SWIGRegisterExceptionCallbacksArgument_CoolProp(
|
||||
argumentDelegate,
|
||||
argumentNullDelegate,
|
||||
argumentOutOfRangeDelegate);
|
||||
}
|
||||
}
|
||||
|
||||
protected static SWIGExceptionHelper swigExceptionHelper = new SWIGExceptionHelper();
|
||||
|
||||
public class SWIGPendingException {
|
||||
[ThreadStatic]
|
||||
private static Exception pendingException = null;
|
||||
private static int numExceptionsPending = 0;
|
||||
|
||||
public static bool Pending {
|
||||
get {
|
||||
bool pending = false;
|
||||
if (numExceptionsPending > 0)
|
||||
if (pendingException != null)
|
||||
pending = true;
|
||||
return pending;
|
||||
}
|
||||
}
|
||||
|
||||
public static void Set(Exception e) {
|
||||
if (pendingException != null)
|
||||
throw new ApplicationException("FATAL: An earlier pending exception from unmanaged code was missed and thus not thrown (" + pendingException.ToString() + ")", e);
|
||||
pendingException = e;
|
||||
lock(typeof(CoolPropPINVOKE)) {
|
||||
numExceptionsPending++;
|
||||
}
|
||||
}
|
||||
|
||||
public static Exception Retrieve() {
|
||||
Exception e = null;
|
||||
if (numExceptionsPending > 0) {
|
||||
if (pendingException != null) {
|
||||
e = pendingException;
|
||||
pendingException = null;
|
||||
lock(typeof(CoolPropPINVOKE)) {
|
||||
numExceptionsPending--;
|
||||
}
|
||||
}
|
||||
}
|
||||
return e;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
protected class SWIGStringHelper {
|
||||
|
||||
public delegate string SWIGStringDelegate(string message);
|
||||
static SWIGStringDelegate stringDelegate = new SWIGStringDelegate(CreateString);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="SWIGRegisterStringCallback_CoolProp")]
|
||||
public static extern void SWIGRegisterStringCallback_CoolProp(SWIGStringDelegate stringDelegate);
|
||||
|
||||
static string CreateString(string cString) {
|
||||
return cString;
|
||||
}
|
||||
|
||||
static SWIGStringHelper() {
|
||||
SWIGRegisterStringCallback_CoolProp(stringDelegate);
|
||||
}
|
||||
}
|
||||
|
||||
static protected SWIGStringHelper swigStringHelper = new SWIGStringHelper();
|
||||
|
||||
|
||||
static CoolPropPINVOKE() {
|
||||
}
|
||||
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_get_global_param_string")]
|
||||
public static extern string get_global_param_string(string jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_get_fluid_param_string")]
|
||||
public static extern string get_fluid_param_string(string jarg1, string jarg2);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_PropsS")]
|
||||
public static extern double PropsS(string jarg1, string jarg2, double jarg3, string jarg4, double jarg5, string jarg6);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_Props")]
|
||||
public static extern double Props(string jarg1, char jarg2, double jarg3, char jarg4, double jarg5, string jarg6);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_Props1")]
|
||||
public static extern double Props1(string jarg1, string jarg2);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_IProps")]
|
||||
public static extern double IProps(int jarg1, int jarg2, double jarg3, int jarg4, double jarg5, int jarg6);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_IsFluidType")]
|
||||
public static extern int IsFluidType(string jarg1, string jarg2);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_DerivTerms")]
|
||||
public static extern double DerivTerms(string jarg1, double jarg2, double jarg3, string jarg4);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_Phase")]
|
||||
public static extern int Phase(string jarg1, double jarg2, double jarg3, string jarg4);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_Phase_Trho")]
|
||||
public static extern int Phase_Trho(string jarg1, double jarg2, double jarg3, string jarg4);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_Phase_Tp")]
|
||||
public static extern int Phase_Tp(string jarg1, double jarg2, double jarg3, string jarg4);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_set_phase")]
|
||||
public static extern void set_phase(string jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_F2K")]
|
||||
public static extern double F2K(double jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_K2F")]
|
||||
public static extern double K2F(double jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_get_param_index")]
|
||||
public static extern int get_param_index(string jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_get_Fluid_index")]
|
||||
public static extern int get_Fluid_index(string jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_get_index_units")]
|
||||
public static extern int get_index_units(int jarg1, string jarg2);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_rhosatL_anc")]
|
||||
public static extern double rhosatL_anc(string jarg1, double jarg2);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_rhosatV_anc")]
|
||||
public static extern double rhosatV_anc(string jarg1, double jarg2);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_psatL_anc")]
|
||||
public static extern double psatL_anc(string jarg1, double jarg2);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_psatV_anc")]
|
||||
public static extern double psatV_anc(string jarg1, double jarg2);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_enable_TTSE_LUT")]
|
||||
public static extern bool enable_TTSE_LUT(string jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_isenabled_TTSE_LUT")]
|
||||
public static extern bool isenabled_TTSE_LUT(string jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_disable_TTSE_LUT")]
|
||||
public static extern bool disable_TTSE_LUT(string jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_enable_TTSE_LUT_writing")]
|
||||
public static extern bool enable_TTSE_LUT_writing(string jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_isenabled_TTSE_LUT_writing")]
|
||||
public static extern bool isenabled_TTSE_LUT_writing(string jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_disable_TTSE_LUT_writing")]
|
||||
public static extern bool disable_TTSE_LUT_writing(string jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_set_TTSESat_LUT_size")]
|
||||
public static extern bool set_TTSESat_LUT_size(string jarg1, int jarg2);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_set_TTSESinglePhase_LUT_size")]
|
||||
public static extern bool set_TTSESinglePhase_LUT_size(string jarg1, int jarg2, int jarg3);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_set_TTSESinglePhase_LUT_range")]
|
||||
public static extern bool set_TTSESinglePhase_LUT_range(string jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_get_TTSESinglePhase_LUT_range")]
|
||||
public static extern bool get_TTSESinglePhase_LUT_range(string jarg1, HandleRef jarg2, HandleRef jarg3, HandleRef jarg4, HandleRef jarg5);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_set_TTSE_mode")]
|
||||
public static extern int set_TTSE_mode(string jarg1, string jarg2);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_set_reference_stateS")]
|
||||
public static extern int set_reference_stateS(string jarg1, string jarg2);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_set_reference_stateD")]
|
||||
public static extern int set_reference_stateD(string jarg1, double jarg2, double jarg3, double jarg4, double jarg5);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_get_standard_unit_system")]
|
||||
public static extern int get_standard_unit_system();
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_set_standard_unit_system")]
|
||||
public static extern void set_standard_unit_system(int jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_viscosity_dilute")]
|
||||
public static extern double viscosity_dilute(string jarg1, double jarg2);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_viscosity_residual")]
|
||||
public static extern double viscosity_residual(string jarg1, double jarg2, double jarg3);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_conductivity_critical")]
|
||||
public static extern double conductivity_critical(string jarg1, double jarg2, double jarg3);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_conductivity_background")]
|
||||
public static extern double conductivity_background(string jarg1, double jarg2, double jarg3);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_conformal_Trho")]
|
||||
public static extern double conformal_Trho(string jarg1, string jarg2, double jarg3, double jarg4, HandleRef jarg5, HandleRef jarg6);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_HAProps")]
|
||||
public static extern double HAProps(string jarg1, string jarg2, double jarg3, string jarg4, double jarg5, string jarg6, double jarg7);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_HAProps_Aux")]
|
||||
public static extern double HAProps_Aux(string jarg1, double jarg2, double jarg3, double jarg4, string jarg5);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_IceProps")]
|
||||
public static extern double IceProps(string jarg1, double jarg2, double jarg3);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_UseVirialCorrelations")]
|
||||
public static extern void UseVirialCorrelations(int jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_UseIsothermCompressCorrelation")]
|
||||
public static extern void UseIsothermCompressCorrelation(int jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_UseIdealGasEnthalpyCorrelations")]
|
||||
public static extern void UseIdealGasEnthalpyCorrelations(int jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_HAHelp")]
|
||||
public static extern void HAHelp();
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_returnHumAirCode")]
|
||||
public static extern int returnHumAirCode(string jarg1);
|
||||
|
||||
[DllImport("CoolProp", EntryPoint="CSharp_cair_sat")]
|
||||
public static extern double cair_sat(double jarg1);
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace ConsoleApplication1
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
double T, rho, h;
|
||||
T = CoolProp.Props1("R410A","Tcrit");
|
||||
|
||||
Console.Write("The critical temperature of R410A is: " + T + " K\n");
|
||||
|
||||
rho = CoolProp.Props("D",'T',298.15,'P',101.325,"Air");
|
||||
Console.Write("Density of air at STP is "+rho+" kg/m3\n");
|
||||
|
||||
h = CoolProp.Props("D",'T',275,'Q',1.0,"R290");
|
||||
Console.Write("The saturated vapor enthalpy of Propane at 275 K is: "+h+" kJ/kg\n");
|
||||
|
||||
Console.Write("Enter to quit");
|
||||
Console.ReadLine();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 2.0.8
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_Fluid {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_Fluid(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_Fluid() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_Fluid obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 2.0.8
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_double {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_double(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_double() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_double obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
@@ -1,27 +0,0 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 2.0.8
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
public class SWIGTYPE_p_int {
|
||||
private HandleRef swigCPtr;
|
||||
|
||||
internal SWIGTYPE_p_int(IntPtr cPtr, bool futureUse) {
|
||||
swigCPtr = new HandleRef(this, cPtr);
|
||||
}
|
||||
|
||||
protected SWIGTYPE_p_int() {
|
||||
swigCPtr = new HandleRef(null, IntPtr.Zero);
|
||||
}
|
||||
|
||||
internal static HandleRef getCPtr(SWIGTYPE_p_int obj) {
|
||||
return (obj == null) ? new HandleRef(null, IntPtr.Zero) : obj.swigCPtr;
|
||||
}
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 2.0.8
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public enum _params {
|
||||
iB,
|
||||
iT,
|
||||
iP,
|
||||
iD,
|
||||
iC,
|
||||
iC0,
|
||||
iO,
|
||||
iU,
|
||||
iH,
|
||||
iS,
|
||||
iA,
|
||||
iG,
|
||||
iQ,
|
||||
iV,
|
||||
iL,
|
||||
iI,
|
||||
iMM,
|
||||
iTcrit,
|
||||
iTtriple,
|
||||
iTreduce,
|
||||
iPtriple,
|
||||
iPcrit,
|
||||
iRhocrit,
|
||||
iRhoreduce,
|
||||
iAccentric,
|
||||
iDpdT,
|
||||
iDrhodT_p,
|
||||
iTmin,
|
||||
iDipole,
|
||||
iPhase,
|
||||
iPHASE_LIQUID,
|
||||
iPHASE_GAS,
|
||||
iPHASE_SUPERCRITICAL,
|
||||
iPHASE_TWOPHASE,
|
||||
iODP,
|
||||
iGWP20,
|
||||
iGWP100,
|
||||
iGWP500,
|
||||
iCritSplineT,
|
||||
iHcrit,
|
||||
iScrit
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 2.0.8
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public enum phases {
|
||||
iLiquid,
|
||||
iSupercritical,
|
||||
iGas,
|
||||
iTwoPhase
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 2.0.8
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public enum unit_constants {
|
||||
UNIT_KPA,
|
||||
UNIT_PA,
|
||||
UNIT_BAR,
|
||||
UNIT_KG_M3,
|
||||
UNIT_KG_L
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
/* ----------------------------------------------------------------------------
|
||||
* This file was automatically generated by SWIG (http://www.swig.org).
|
||||
* Version 2.0.8
|
||||
*
|
||||
* Do not make changes to this file unless you know what you are doing--modify
|
||||
* the SWIG interface file instead.
|
||||
* ----------------------------------------------------------------------------- */
|
||||
|
||||
|
||||
public enum unit_systems {
|
||||
UNIT_SYSTEM_SI,
|
||||
UNIT_SYSTEM_KSI,
|
||||
UNIT_SYSTEM_KSI_MOLAR,
|
||||
UNIT_SYSTEM_SI_MOLAR
|
||||
}
|
||||
@@ -1,26 +0,0 @@
|
||||
[
|
||||
{
|
||||
"pre" : "swig -csharp -dllimport \"CoolProp\" -c++ -outdir Csharp -o Csharp/CoolProp_wrap.cxx -I../../include ../../src/CoolProp.i",
|
||||
"sources" : ["Csharp/CoolProp_wrap.cxx"],
|
||||
"platform" : ["Windows"],
|
||||
"compiler" : "VS+",
|
||||
"bitness" : 32,
|
||||
"c_flags" : "/MP3 /O2 /EHsc /I../../include",
|
||||
"link_type" : "DLL",
|
||||
"link_fname" : "CoolProp.dll",
|
||||
"link_flags" : "",
|
||||
"post" : ""
|
||||
},
|
||||
{
|
||||
"pre" : "swig -csharp -dllimport \"CoolProp\" -c++ -outdir Csharp -o Csharp/CoolProp_wrap.cxx -I../../include ../../src/CoolProp.i",
|
||||
"sources" : ["Csharp/CoolProp_wrap.cxx"],
|
||||
"platform" : ["Windows"],
|
||||
"compiler" : "VS+",
|
||||
"bitness" : 64,
|
||||
"c_flags" : "/MP3 /O2 /EHsc /I../../include",
|
||||
"link_type" : "DLL",
|
||||
"link_fname" : "CoolProp.dll",
|
||||
"link_flags" : "",
|
||||
"post" : ""
|
||||
}
|
||||
]
|
||||
@@ -1,162 +0,0 @@
|
||||
Microsoft (R) COFF/PE Dumper Version 9.00.30729.01
|
||||
Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
|
||||
|
||||
Dump of file CoolProp.dll
|
||||
|
||||
File Type: DLL
|
||||
|
||||
Section contains the following exports for CoolProp.dll
|
||||
|
||||
00000000 characteristics
|
||||
536F9ABF time date stamp Sun May 11 17:43:59 2014
|
||||
0.00 version
|
||||
1 ordinal base
|
||||
136 number of functions
|
||||
136 number of names
|
||||
|
||||
ordinal hint RVA name
|
||||
|
||||
1 0 00005DA0 _CSharp_AbstractState_Q@4
|
||||
2 1 00005AD0 _CSharp_AbstractState_T@4
|
||||
3 2 000058F0 _CSharp_AbstractState_Tmax@4
|
||||
4 3 00006DA0 _CSharp_AbstractState_alpha0@4
|
||||
5 4 00007460 _CSharp_AbstractState_alphar@4
|
||||
6 5 00004B40 _CSharp_AbstractState_calc_melt_T_p@8
|
||||
7 6 000049E0 _CSharp_AbstractState_calc_melt_p_T@8
|
||||
8 7 00004CA0 _CSharp_AbstractState_calc_melt_rho_T@8
|
||||
9 8 000050E0 _CSharp_AbstractState_clear@4
|
||||
10 9 00006BC0 _CSharp_AbstractState_conductivity@4
|
||||
11 A 00006520 _CSharp_AbstractState_cpmolar@4
|
||||
12 B 00006610 _CSharp_AbstractState_cvmolar@4
|
||||
13 C 00007100 _CSharp_AbstractState_d2alpha0_dDelta2@4
|
||||
14 D 00007220 _CSharp_AbstractState_d2alpha0_dDelta_dTau@4
|
||||
15 E 00007340 _CSharp_AbstractState_d2alpha0_dTau2@4
|
||||
16 F 000077C0 _CSharp_AbstractState_d2alphar_dDelta2@4
|
||||
17 10 000078E0 _CSharp_AbstractState_d2alphar_dDelta_dTau@4
|
||||
18 11 00007A00 _CSharp_AbstractState_d2alphar_dTau2@4
|
||||
19 12 00006EC0 _CSharp_AbstractState_dalpha0_dDelta@4
|
||||
20 13 00006FE0 _CSharp_AbstractState_dalpha0_dTau@4
|
||||
21 14 00007580 _CSharp_AbstractState_dalphar_dDelta@4
|
||||
22 15 000076A0 _CSharp_AbstractState_dalphar_dTau@4
|
||||
23 16 00005F80 _CSharp_AbstractState_delta@4
|
||||
24 17 00004EF0 _CSharp_AbstractState_factory@8
|
||||
25 18 000057B0 _CSharp_AbstractState_first_partial_deriv@16
|
||||
26 19 000069D0 _CSharp_AbstractState_fugacity_coefficient@8
|
||||
27 1A 00006160 _CSharp_AbstractState_gas_constant@4
|
||||
28 1B 000055B0 _CSharp_AbstractState_get_reducing@4
|
||||
29 1C 00006250 _CSharp_AbstractState_hmolar@4
|
||||
30 1D 000068E0 _CSharp_AbstractState_isobaric_expansion_coefficient@4
|
||||
31 1E 000067F0 _CSharp_AbstractState_isothermal_compressibility@4
|
||||
32 1F 000056B0 _CSharp_AbstractState_keyed_output@8
|
||||
33 20 00006070 _CSharp_AbstractState_molar_mass@4
|
||||
34 21 00005CB0 _CSharp_AbstractState_p@4
|
||||
35 22 000059E0 _CSharp_AbstractState_pmax@4
|
||||
36 23 00005BC0 _CSharp_AbstractState_rhomolar@4
|
||||
37 24 000053C0 _CSharp_AbstractState_set_mass_fractions@8
|
||||
38 25 000052D0 _CSharp_AbstractState_set_mole_fractions@8
|
||||
39 26 00006340 _CSharp_AbstractState_smolar@4
|
||||
40 27 00006700 _CSharp_AbstractState_speed_sound@4
|
||||
41 28 00006CB0 _CSharp_AbstractState_surface_tension@4
|
||||
42 29 00005E90 _CSharp_AbstractState_tau@4
|
||||
43 2A 00006430 _CSharp_AbstractState_umolar@4
|
||||
44 2B 000051E0 _CSharp_AbstractState_update@24
|
||||
45 2C 000054B0 _CSharp_AbstractState_using_mole_fractions@4
|
||||
46 2D 00006AD0 _CSharp_AbstractState_viscosity@4
|
||||
47 2E 00007BB0 _CSharp_CoolProp_SimpleState_T_get@4
|
||||
48 2F 00007B80 _CSharp_CoolProp_SimpleState_T_set@12
|
||||
49 30 00007C70 _CSharp_CoolProp_SimpleState_hmolar_get@4
|
||||
50 31 00007C40 _CSharp_CoolProp_SimpleState_hmolar_set@12
|
||||
51 32 00007C10 _CSharp_CoolProp_SimpleState_p_get@4
|
||||
52 33 00007BE0 _CSharp_CoolProp_SimpleState_p_set@12
|
||||
53 34 00007B50 _CSharp_CoolProp_SimpleState_rhomolar_get@4
|
||||
54 35 00007B20 _CSharp_CoolProp_SimpleState_rhomolar_set@12
|
||||
55 36 00007CD0 _CSharp_CoolProp_SimpleState_smolar_get@4
|
||||
56 37 00007CA0 _CSharp_CoolProp_SimpleState_smolar_set@12
|
||||
57 38 00007D30 _CSharp_CoolProp_SimpleState_umolar_get@4
|
||||
58 39 00007D00 _CSharp_CoolProp_SimpleState_umolar_set@12
|
||||
59 3A 00002C90 _CSharp_DoubleVector_Add@12
|
||||
60 3B 000033F0 _CSharp_DoubleVector_AddRange@8
|
||||
61 3C 00002C70 _CSharp_DoubleVector_Clear@4
|
||||
62 3D 000045A0 _CSharp_DoubleVector_Contains@12
|
||||
63 3E 000034A0 _CSharp_DoubleVector_GetRange@12
|
||||
64 3F 00004650 _CSharp_DoubleVector_IndexOf@12
|
||||
65 40 000037A0 _CSharp_DoubleVector_Insert@16
|
||||
66 41 00003930 _CSharp_DoubleVector_InsertRange@12
|
||||
67 42 00004720 _CSharp_DoubleVector_LastIndexOf@12
|
||||
68 43 00004810 _CSharp_DoubleVector_Remove@12
|
||||
69 44 00003AF0 _CSharp_DoubleVector_RemoveAt@8
|
||||
70 45 00003C50 _CSharp_DoubleVector_RemoveRange@12
|
||||
71 46 00003F10 _CSharp_DoubleVector_Repeat@12
|
||||
72 47 000040A0 _CSharp_DoubleVector_Reverse__SWIG_0@4
|
||||
73 48 00004110 _CSharp_DoubleVector_Reverse__SWIG_1@12
|
||||
74 49 00004390 _CSharp_DoubleVector_SetRange@12
|
||||
75 4A 00002D00 _CSharp_DoubleVector_capacity@4
|
||||
76 4B 00003120 _CSharp_DoubleVector_getitem@8
|
||||
77 4C 00002FC0 _CSharp_DoubleVector_getitemcopy@8
|
||||
78 4D 00002D30 _CSharp_DoubleVector_reserve@8
|
||||
79 4E 00003290 _CSharp_DoubleVector_setitem@16
|
||||
80 4F 00002CD0 _CSharp_DoubleVector_size@4
|
||||
81 50 000010D0 _CSharp_LongDoubleVector_Add@8
|
||||
82 51 000018B0 _CSharp_LongDoubleVector_AddRange@8
|
||||
83 52 000010B0 _CSharp_LongDoubleVector_Clear@4
|
||||
84 53 00001960 _CSharp_LongDoubleVector_GetRange@12
|
||||
85 54 00001C60 _CSharp_LongDoubleVector_Insert@12
|
||||
86 55 00001E00 _CSharp_LongDoubleVector_InsertRange@12
|
||||
87 56 00001FC0 _CSharp_LongDoubleVector_RemoveAt@8
|
||||
88 57 00002120 _CSharp_LongDoubleVector_RemoveRange@12
|
||||
89 58 000023E0 _CSharp_LongDoubleVector_Repeat@8
|
||||
90 59 00002590 _CSharp_LongDoubleVector_Reverse__SWIG_0@4
|
||||
91 5A 00002600 _CSharp_LongDoubleVector_Reverse__SWIG_1@12
|
||||
92 5B 00002880 _CSharp_LongDoubleVector_SetRange@12
|
||||
93 5C 00001180 _CSharp_LongDoubleVector_capacity@4
|
||||
94 5D 000015D0 _CSharp_LongDoubleVector_getitem@8
|
||||
95 5E 00001440 _CSharp_LongDoubleVector_getitemcopy@8
|
||||
96 5F 000011B0 _CSharp_LongDoubleVector_reserve@8
|
||||
97 60 00001740 _CSharp_LongDoubleVector_setitem@12
|
||||
98 61 00001150 _CSharp_LongDoubleVector_size@4
|
||||
99 62 00008710 _CSharp_PropsSI__SWIG_0@32
|
||||
100 63 00008A80 _CSharp_PropsSI__SWIG_1@36
|
||||
101 64 00008E70 _CSharp_PropsSI__SWIG_2@28
|
||||
102 65 00004E00 _CSharp_delete_AbstractState@4
|
||||
103 66 00007E90 _CSharp_delete_CoolProp_SimpleState@4
|
||||
104 67 000048F0 _CSharp_delete_DoubleVector@4
|
||||
105 68 00002A90 _CSharp_delete_LongDoubleVector@4
|
||||
106 69 00009500 _CSharp_get_debug_level@0
|
||||
107 6A 000085A0 _CSharp_get_input_pair_long_desc@4
|
||||
108 6B 00008430 _CSharp_get_input_pair_short_desc@4
|
||||
109 6C 00008180 _CSharp_get_parameter_index@4
|
||||
110 6D 00007F60 _CSharp_get_parameter_information@8
|
||||
111 6E 000082F0 _CSharp_match_pair@20
|
||||
112 6F 00007D60 _CSharp_new_CoolProp_SimpleState@0
|
||||
113 70 00002D60 _CSharp_new_DoubleVector__SWIG_0@0
|
||||
114 71 00002DB0 _CSharp_new_DoubleVector__SWIG_1@4
|
||||
115 72 00002E30 _CSharp_new_DoubleVector__SWIG_2@4
|
||||
116 73 000011E0 _CSharp_new_LongDoubleVector__SWIG_0@0
|
||||
117 74 00001230 _CSharp_new_LongDoubleVector__SWIG_1@4
|
||||
118 75 000012B0 _CSharp_new_LongDoubleVector__SWIG_2@4
|
||||
119 76 000095E0 _CSharp_set_debug_level@4
|
||||
120 77 000096A0 _CSharp_set_error_string@4
|
||||
121 78 000097F0 _CSharp_set_warning_string@4
|
||||
122 79 000159F0 _F2K@8
|
||||
123 7A 000159D0 _K2F@8
|
||||
124 7B 00016770 _Props1@8
|
||||
125 7C 00015E40 _Props1SI@8
|
||||
126 7D 00016580 _Props@32
|
||||
127 7E 00016730 _PropsS@32
|
||||
128 7F 00015C00 _PropsSI@32
|
||||
129 80 00015F70 _PropsSIZ@40
|
||||
130 81 00001070 _SWIGRegisterExceptionArgumentCallbacks_CoolProp@12
|
||||
131 82 00001000 _SWIGRegisterExceptionCallbacks_CoolProp@44
|
||||
132 83 000010A0 _SWIGRegisterStringCallback_CoolProp@4
|
||||
133 84 00015A10 _get_debug_level@0
|
||||
134 85 00015DD0 _get_param_index@4
|
||||
135 86 000159B0 _redirect_stdout@4
|
||||
136 87 00015A20 _set_debug_level@4
|
||||
|
||||
Summary
|
||||
|
||||
6000 .data
|
||||
95000 .rdata
|
||||
8000 .reloc
|
||||
7F000 .text
|
||||
@@ -1,3 +0,0 @@
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
|
||||
csc *.cs /platform:x86
|
||||
call Example
|
||||
@@ -1,31 +0,0 @@
|
||||
Building
|
||||
========
|
||||
|
||||
Requirements
|
||||
------------
|
||||
SWIG (http://www.swig.org/)
|
||||
A compiler (the Visual Studio 2010 C++ Express version should be fine)
|
||||
|
||||
To Build
|
||||
--------
|
||||
Run the script build_x64.bat - adjust the paths if necessary to the include folders for your java installation
|
||||
|
||||
If on 32-bit windows, run the build_win32.bat file
|
||||
|
||||
Each script will put the DLL in the corresponding folder (win32 for 32-bit, x64 for 64-bit)
|
||||
|
||||
Running
|
||||
=======
|
||||
At the console, run::
|
||||
|
||||
javac *.java
|
||||
java runme
|
||||
|
||||
which should output::
|
||||
|
||||
702.820647167934
|
||||
|
||||
Hiccups
|
||||
=======
|
||||
If the bin folder of the installation for java is not on the path, you may need to add it.
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
[
|
||||
{
|
||||
"pre" : "swig -java -c++ -outdir Java -o Java/CoolProp_wrap.cxx -I../../include ../../src/CoolProp.i",
|
||||
"sources" : ["Java/CoolProp_wrap.cxx"],
|
||||
"platform" : ["Windows"],
|
||||
"compiler" : "VS10.0",
|
||||
"bitness" : 32,
|
||||
"c_flags" : "/MP3 /O2 /EHsc /I../../include /I\"C:/Program Files/Java/jdk1.7.0_40/include\" /I\"C:/Program Files/Java/jdk1.7.0_40/include/win32\" ",
|
||||
"link_type" : "DLL",
|
||||
"link_fname" : "CoolProp.dll",
|
||||
"link_flags" : "",
|
||||
"post" : ""
|
||||
},
|
||||
{
|
||||
"pre" : "swig -java -c++ -outdir Java -I../../include ../../src/CoolProp.i",
|
||||
"platform" : ["Windows"],
|
||||
"compiler" : "VS10.0",
|
||||
"bitness" : 64,
|
||||
"c_flags" : "/MP3 /O2 /EHsc /I../../include /I\"C:/Program Files/Java/jdk1.7.0_40/include\" /I\"C:/Program Files/Java/jdk1.7.0_40/include/win32\" ",
|
||||
"link_type" : "DLL",
|
||||
"link_fname" : "CoolProp.dll",
|
||||
"link_flags" : "",
|
||||
"post" : "erase *.obj "
|
||||
}
|
||||
]
|
||||
@@ -1,22 +0,0 @@
|
||||
|
||||
@echo on
|
||||
erase CoolProp.dll
|
||||
REM ******** set the variables ************
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
|
||||
call "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"
|
||||
|
||||
REM ******* compile all the sources ***************
|
||||
swig -java -c++ -outcurrentdir -I../../include ../../src/CoolProp.i
|
||||
cl /c /MP3 /I../../include /I"C:\Program Files\Java\jdk1.7.0_40\include" /I"C:\Program Files\Java\jdk1.7.0_40\include\win32" /EHsc *.cxx
|
||||
cl /c /MP3 /I../../include /I"C:\Program Files\Java\jdk1.7.0_40\include" /I"C:\Program Files\Java\jdk1.7.0_40\include\win32" /EHsc ../../src/*.cpp
|
||||
cl /c /MP3 /I../../include /I"C:\Program Files\Java\jdk1.7.0_40\include" /I"C:\Program Files\Java\jdk1.7.0_40\include\win32" /EHsc ../../src/Backends/*.cpp
|
||||
cl /c /MP3 /I../../include /I"C:\Program Files\Java\jdk1.7.0_40\include" /I"C:\Program Files\Java\jdk1.7.0_40\include\win32" /EHsc ../../src/Fluids/*.cpp
|
||||
cl /c /MP3 /I../../include /I"C:\Program Files\Java\jdk1.7.0_40\include" /I"C:\Program Files\Java\jdk1.7.0_40\include\win32" /EHsc ../../src/Tests/*.cpp
|
||||
|
||||
link /DLL *.obj /OUT:CoolProp.dll
|
||||
dumpbin /EXPORTS CoolProp.dll > exports.txt
|
||||
mkdir win32
|
||||
move CoolProp.dll win32
|
||||
erase *.obj
|
||||
erase *.exp
|
||||
erase *.lib
|
||||
@@ -1,17 +0,0 @@
|
||||
@echo on
|
||||
erase CoolProp.dll
|
||||
REM ******** set the variables ************
|
||||
call "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64
|
||||
call "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat" amd64
|
||||
|
||||
REM ******* compile all the sources ***************
|
||||
swig -java -c++ -outcurrentdir ../../CoolProp/CoolProp.i
|
||||
cl /c /I../../CoolProp /I"C:\Program Files\Java\jdk1.7.0_40\include" /I"C:\Program Files\Java\jdk1.7.0_40\include\win32" /EHsc *.cxx
|
||||
cl /c /MP3 /I../../CoolProp /I"C:\Program Files\Java\jdk1.7.0_40\include" /I"C:\Program Files\Java\jdk1.7.0_40\include\win32" /EHsc ../../CoolProp/*.cpp
|
||||
link /DLL *.obj /OUT:CoolProp.dll
|
||||
dumpbin /EXPORTS CoolProp.dll > exports_x64.txt
|
||||
mkdir x64
|
||||
move CoolProp.dll x64
|
||||
erase *.obj
|
||||
erase *.exp
|
||||
erase *.lib
|
||||
@@ -1,122 +0,0 @@
|
||||
Microsoft (R) COFF/PE Dumper Version 10.00.40219.01
|
||||
Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
|
||||
|
||||
Dump of file CoolProp.dll
|
||||
|
||||
File Type: DLL
|
||||
|
||||
Section contains the following exports for CoolProp.dll
|
||||
|
||||
00000000 characteristics
|
||||
536FA972 time date stamp Sun May 11 18:46:42 2014
|
||||
0.00 version
|
||||
1 ordinal base
|
||||
96 number of functions
|
||||
96 number of names
|
||||
|
||||
ordinal hint RVA name
|
||||
|
||||
1 0 000130A0 _Java_CoolPropJNI_AbstractState_1Q@20
|
||||
2 1 00012DA0 _Java_CoolPropJNI_AbstractState_1T@20
|
||||
3 2 00012BA0 _Java_CoolPropJNI_AbstractState_1Tmax@20
|
||||
4 3 000141B0 _Java_CoolPropJNI_AbstractState_1alpha0@20
|
||||
5 4 00014990 _Java_CoolPropJNI_AbstractState_1alphar@20
|
||||
6 5 00011BF0 _Java_CoolPropJNI_AbstractState_1calc_1melt_1T_1p@28
|
||||
7 6 00011A60 _Java_CoolPropJNI_AbstractState_1calc_1melt_1p_1T@28
|
||||
8 7 00011D80 _Java_CoolPropJNI_AbstractState_1calc_1melt_1rho_1T@28
|
||||
9 8 000122F0 _Java_CoolPropJNI_AbstractState_1clear@20
|
||||
10 9 00013FB0 _Java_CoolPropJNI_AbstractState_1conductivity@20
|
||||
11 A 000138A0 _Java_CoolPropJNI_AbstractState_1cpmolar@20
|
||||
12 B 000139A0 _Java_CoolPropJNI_AbstractState_1cvmolar@20
|
||||
13 C 000145A0 _Java_CoolPropJNI_AbstractState_1d2alpha0_1dDelta2@20
|
||||
14 D 000146F0 _Java_CoolPropJNI_AbstractState_1d2alpha0_1dDelta_1dTau@20
|
||||
15 E 00014840 _Java_CoolPropJNI_AbstractState_1d2alpha0_1dTau2@20
|
||||
16 F 00014D80 _Java_CoolPropJNI_AbstractState_1d2alphar_1dDelta2@20
|
||||
17 10 00014ED0 _Java_CoolPropJNI_AbstractState_1d2alphar_1dDelta_1dTau@20
|
||||
18 11 00015020 _Java_CoolPropJNI_AbstractState_1d2alphar_1dTau2@20
|
||||
19 12 00014300 _Java_CoolPropJNI_AbstractState_1dalpha0_1dDelta@20
|
||||
20 13 00014450 _Java_CoolPropJNI_AbstractState_1dalpha0_1dTau@20
|
||||
21 14 00014AE0 _Java_CoolPropJNI_AbstractState_1dalphar_1dDelta@20
|
||||
22 15 00014C30 _Java_CoolPropJNI_AbstractState_1dalphar_1dTau@20
|
||||
23 16 000132A0 _Java_CoolPropJNI_AbstractState_1delta@20
|
||||
24 17 00012010 _Java_CoolPropJNI_AbstractState_1factory@16
|
||||
25 18 00012A30 _Java_CoolPropJNI_AbstractState_1first_1partial_1deriv@32
|
||||
26 19 00013DA0 _Java_CoolPropJNI_AbstractState_1fugacity_1coefficient@24
|
||||
27 1A 000134A0 _Java_CoolPropJNI_AbstractState_1gas_1constant@20
|
||||
28 1B 000127F0 _Java_CoolPropJNI_AbstractState_1get_1reducing@20
|
||||
29 1C 000135A0 _Java_CoolPropJNI_AbstractState_1hmolar@20
|
||||
30 1D 00013CA0 _Java_CoolPropJNI_AbstractState_1isobaric_1expansion_1coefficient@20
|
||||
31 1E 00013BA0 _Java_CoolPropJNI_AbstractState_1isothermal_1compressibility@20
|
||||
32 1F 00012920 _Java_CoolPropJNI_AbstractState_1keyed_1output@24
|
||||
33 20 000133A0 _Java_CoolPropJNI_AbstractState_1molar_1mass@20
|
||||
34 21 00012FA0 _Java_CoolPropJNI_AbstractState_1p@20
|
||||
35 22 00012CA0 _Java_CoolPropJNI_AbstractState_1pmax@20
|
||||
36 23 00012EA0 _Java_CoolPropJNI_AbstractState_1rhomolar@20
|
||||
37 24 000125F0 _Java_CoolPropJNI_AbstractState_1set_1mass_1fractions@32
|
||||
38 25 000124F0 _Java_CoolPropJNI_AbstractState_1set_1mole_1fractions@32
|
||||
39 26 000136A0 _Java_CoolPropJNI_AbstractState_1smolar@20
|
||||
40 27 00013AA0 _Java_CoolPropJNI_AbstractState_1speed_1sound@20
|
||||
41 28 000140B0 _Java_CoolPropJNI_AbstractState_1surface_1tension@20
|
||||
42 29 000131A0 _Java_CoolPropJNI_AbstractState_1tau@20
|
||||
43 2A 000137A0 _Java_CoolPropJNI_AbstractState_1umolar@20
|
||||
44 2B 000123F0 _Java_CoolPropJNI_AbstractState_1update@40
|
||||
45 2C 000126F0 _Java_CoolPropJNI_AbstractState_1using_1mole_1fractions@20
|
||||
46 2D 00013EB0 _Java_CoolPropJNI_AbstractState_1viscosity@20
|
||||
47 2E 00015200 _Java_CoolPropJNI_CoolProp_1SimpleState_1T_1get@20
|
||||
48 2F 000151D0 _Java_CoolPropJNI_CoolProp_1SimpleState_1T_1set@28
|
||||
49 30 000152C0 _Java_CoolPropJNI_CoolProp_1SimpleState_1hmolar_1get@20
|
||||
50 31 00015290 _Java_CoolPropJNI_CoolProp_1SimpleState_1hmolar_1set@28
|
||||
51 32 00015260 _Java_CoolPropJNI_CoolProp_1SimpleState_1p_1get@20
|
||||
52 33 00015230 _Java_CoolPropJNI_CoolProp_1SimpleState_1p_1set@28
|
||||
53 34 000151A0 _Java_CoolPropJNI_CoolProp_1SimpleState_1rhomolar_1get@20
|
||||
54 35 00015170 _Java_CoolPropJNI_CoolProp_1SimpleState_1rhomolar_1set@28
|
||||
55 36 00015320 _Java_CoolPropJNI_CoolProp_1SimpleState_1smolar_1get@20
|
||||
56 37 000152F0 _Java_CoolPropJNI_CoolProp_1SimpleState_1smolar_1set@28
|
||||
57 38 00015380 _Java_CoolPropJNI_CoolProp_1SimpleState_1umolar_1get@20
|
||||
58 39 00015350 _Java_CoolPropJNI_CoolProp_1SimpleState_1umolar_1set@28
|
||||
59 3A 000116F0 _Java_CoolPropJNI_DoubleVector_1add@28
|
||||
60 3B 00011610 _Java_CoolPropJNI_DoubleVector_1capacity@20
|
||||
61 3C 000116D0 _Java_CoolPropJNI_DoubleVector_1clear@20
|
||||
62 3D 00011730 _Java_CoolPropJNI_DoubleVector_1get@24
|
||||
63 3E 00011690 _Java_CoolPropJNI_DoubleVector_1isEmpty@20
|
||||
64 3F 00011660 _Java_CoolPropJNI_DoubleVector_1reserve@28
|
||||
65 40 00011850 _Java_CoolPropJNI_DoubleVector_1set@32
|
||||
66 41 000115C0 _Java_CoolPropJNI_DoubleVector_1size@20
|
||||
67 42 00011030 _Java_CoolPropJNI_LongDoubleVector_1add@28
|
||||
68 43 00010F50 _Java_CoolPropJNI_LongDoubleVector_1capacity@20
|
||||
69 44 00011010 _Java_CoolPropJNI_LongDoubleVector_1clear@20
|
||||
70 45 000110E0 _Java_CoolPropJNI_LongDoubleVector_1get@24
|
||||
71 46 00010FD0 _Java_CoolPropJNI_LongDoubleVector_1isEmpty@20
|
||||
72 47 00010FA0 _Java_CoolPropJNI_LongDoubleVector_1reserve@28
|
||||
73 48 00011220 _Java_CoolPropJNI_LongDoubleVector_1set@32
|
||||
74 49 00010F00 _Java_CoolPropJNI_LongDoubleVector_1size@20
|
||||
75 4A 00015E80 _Java_CoolPropJNI_PropsSI_1_1SWIG_10@40
|
||||
76 4B 00016350 _Java_CoolPropJNI_PropsSI_1_1SWIG_11@52
|
||||
77 4C 000168D0 _Java_CoolPropJNI_PropsSI_1_1SWIG_12@60
|
||||
78 4D 00011F10 _Java_CoolPropJNI_delete_1AbstractState@16
|
||||
79 4E 00015510 _Java_CoolPropJNI_delete_1CoolProp_1SimpleState@16
|
||||
80 4F 00011970 _Java_CoolPropJNI_delete_1DoubleVector@16
|
||||
81 50 00011350 _Java_CoolPropJNI_delete_1LongDoubleVector@16
|
||||
82 51 00017250 _Java_CoolPropJNI_get_1debug_1level@8
|
||||
83 52 00017760 _Java_CoolPropJNI_get_1global_1param_1string@12
|
||||
84 53 00015D00 _Java_CoolPropJNI_get_1input_1pair_1long_1desc@12
|
||||
85 54 00015B80 _Java_CoolPropJNI_get_1input_1pair_1short_1desc@12
|
||||
86 55 00015880 _Java_CoolPropJNI_get_1parameter_1index@12
|
||||
87 56 000155F0 _Java_CoolPropJNI_get_1parameter_1information@16
|
||||
88 57 00015A30 _Java_CoolPropJNI_match_1pair@32
|
||||
89 58 000153B0 _Java_CoolPropJNI_new_1CoolProp_1SimpleState@8
|
||||
90 59 000114F0 _Java_CoolPropJNI_new_1DoubleVector_1_1SWIG_10@8
|
||||
91 5A 00011550 _Java_CoolPropJNI_new_1DoubleVector_1_1SWIG_11@16
|
||||
92 5B 00010E30 _Java_CoolPropJNI_new_1LongDoubleVector_1_1SWIG_10@8
|
||||
93 5C 00010E90 _Java_CoolPropJNI_new_1LongDoubleVector_1_1SWIG_11@16
|
||||
94 5D 00017350 _Java_CoolPropJNI_set_1debug_1level@12
|
||||
95 5E 00017420 _Java_CoolPropJNI_set_1error_1string@12
|
||||
96 5F 000175C0 _Java_CoolPropJNI_set_1warning_1string@12
|
||||
|
||||
Summary
|
||||
|
||||
6000 .data
|
||||
98000 .rdata
|
||||
8000 .reloc
|
||||
97000 .text
|
||||
@@ -1,108 +0,0 @@
|
||||
Microsoft (R) COFF/PE Dumper Version 10.00.40219.01
|
||||
Copyright (C) Microsoft Corporation. All rights reserved.
|
||||
|
||||
|
||||
Dump of file CoolProp.dll
|
||||
|
||||
File Type: DLL
|
||||
|
||||
Section contains the following exports for CoolProp.dll
|
||||
|
||||
00000000 characteristics
|
||||
52FDF51A time date stamp Fri Feb 14 11:51:06 2014
|
||||
0.00 version
|
||||
1 ordinal base
|
||||
79 number of functions
|
||||
79 number of names
|
||||
|
||||
ordinal hint RVA name
|
||||
|
||||
1 0 000D8980 Java_CoolPropJNI_COOLPROP_1OK_1get
|
||||
2 1 000D9920 Java_CoolPropJNI_CubicInterp
|
||||
3 2 000DAC90 Java_CoolPropJNI_DerivTerms
|
||||
4 3 000DB1E0 Java_CoolPropJNI_F2K
|
||||
5 4 000DD050 Java_CoolPropJNI_HAHelp
|
||||
6 5 000DCAE0 Java_CoolPropJNI_HAProps
|
||||
7 6 000DCD60 Java_CoolPropJNI_HAProps_1Aux
|
||||
8 7 000DAAD0 Java_CoolPropJNI_IProps
|
||||
9 8 000DCEE0 Java_CoolPropJNI_IceProps
|
||||
10 9 000DAB90 Java_CoolPropJNI_IsFluidType
|
||||
11 A 000DB240 Java_CoolPropJNI_K2F
|
||||
12 B 000D9CF0 Java_CoolPropJNI_Kronecker_1delta
|
||||
13 C 000D8940 Java_CoolPropJNI_M_1PI_1get
|
||||
14 D 000D95E0 Java_CoolPropJNI_MatInv_12
|
||||
15 E 000DADD0 Java_CoolPropJNI_Phase
|
||||
16 F 000DB030 Java_CoolPropJNI_Phase_1Tp
|
||||
17 10 000DAF00 Java_CoolPropJNI_Phase_1Trho
|
||||
18 11 000DA4D0 Java_CoolPropJNI_Props
|
||||
19 12 000DA9C0 Java_CoolPropJNI_Props1
|
||||
20 13 000DA8B0 Java_CoolPropJNI_Props1SI
|
||||
21 14 000DA280 Java_CoolPropJNI_PropsS
|
||||
22 15 000DA660 Java_CoolPropJNI_PropsSI
|
||||
23 16 000D9820 Java_CoolPropJNI_QuadInterp
|
||||
24 17 000DD020 Java_CoolPropJNI_UseIdealGasEnthalpyCorrelations
|
||||
25 18 000DCFF0 Java_CoolPropJNI_UseIsothermCompressCorrelation
|
||||
26 19 000DCFC0 Java_CoolPropJNI_UseVirialCorrelations
|
||||
27 1A 000D89C0 Java_CoolPropJNI_ValidNumber
|
||||
28 1B 000DD110 Java_CoolPropJNI_cair_1sat
|
||||
29 1C 000DC860 Java_CoolPropJNI_conductivity_1background
|
||||
30 1D 000DC780 Java_CoolPropJNI_conductivity_1critical
|
||||
31 1E 000DC940 Java_CoolPropJNI_conformal_1Trho
|
||||
32 1F 000DBC40 Java_CoolPropJNI_disable_1TTSE_1LUT
|
||||
33 20 000DBE20 Java_CoolPropJNI_disable_1TTSE_1LUT_1writing
|
||||
34 21 000D9C80 Java_CoolPropJNI_double_1equal
|
||||
35 22 000DBB00 Java_CoolPropJNI_enable_1TTSE_1LUT
|
||||
36 23 000DBCE0 Java_CoolPropJNI_enable_1TTSE_1LUT_1writing
|
||||
37 24 000D8DA0 Java_CoolPropJNI_format
|
||||
38 25 000DB2A0 Java_CoolPropJNI_fromSI
|
||||
39 26 000DB5A0 Java_CoolPropJNI_get_1Fluid_1index
|
||||
40 27 000DC140 Java_CoolPropJNI_get_1TTSESinglePhase_1LUT_1range
|
||||
41 28 000DB790 Java_CoolPropJNI_get_1debug_1level
|
||||
42 29 000D8C50 Java_CoolPropJNI_get_1file_1contents
|
||||
43 2A 000D9F30 Java_CoolPropJNI_get_1fluid_1param_1string
|
||||
44 2B 000D9D50 Java_CoolPropJNI_get_1global_1param_1string
|
||||
45 2C 000DB640 Java_CoolPropJNI_get_1index_1units
|
||||
46 2D 000DB500 Java_CoolPropJNI_get_1param_1index
|
||||
47 2E 000DC570 Java_CoolPropJNI_get_1standard_1unit_1system
|
||||
48 2F 000D9720 Java_CoolPropJNI_interp1d
|
||||
49 30 000DBBA0 Java_CoolPropJNI_isenabled_1TTSE_1LUT
|
||||
50 31 000DBD80 Java_CoolPropJNI_isenabled_1TTSE_1LUT_1writing
|
||||
51 32 000D9BF0 Java_CoolPropJNI_max3
|
||||
52 33 000D9B60 Java_CoolPropJNI_min3
|
||||
53 34 000D97B0 Java_CoolPropJNI_powInt
|
||||
54 35 000DB980 Java_CoolPropJNI_psatL_1anc
|
||||
55 36 000DBA40 Java_CoolPropJNI_psatV_1anc
|
||||
56 37 000DB6F0 Java_CoolPropJNI_redirect_1stdout
|
||||
57 38 000DD070 Java_CoolPropJNI_returnHumAirCode
|
||||
58 39 000DB800 Java_CoolPropJNI_rhosatL_1anc
|
||||
59 3A 000DB8C0 Java_CoolPropJNI_rhosatV_1anc
|
||||
60 3B 000D9630 Java_CoolPropJNI_root_1sum_1square
|
||||
61 3C 000DBEC0 Java_CoolPropJNI_set_1TTSESat_1LUT_1size
|
||||
62 3D 000DC030 Java_CoolPropJNI_set_1TTSESinglePhase_1LUT_1range
|
||||
63 3E 000DBF70 Java_CoolPropJNI_set_1TTSESinglePhase_1LUT_1size
|
||||
64 3F 000DC260 Java_CoolPropJNI_set_1TTSE_1mode
|
||||
65 40 000DB7D0 Java_CoolPropJNI_set_1debug_1level
|
||||
66 41 000DB160 Java_CoolPropJNI_set_1phase
|
||||
67 42 000DC460 Java_CoolPropJNI_set_1reference_1stateD
|
||||
68 43 000DC360 Java_CoolPropJNI_set_1reference_1stateS
|
||||
69 44 000DC5B0 Java_CoolPropJNI_set_1standard_1unit_1system
|
||||
70 45 000D9A70 Java_CoolPropJNI_solve_1cubic
|
||||
71 46 000D9300 Java_CoolPropJNI_strjoin
|
||||
72 47 000D8A10 Java_CoolPropJNI_strlstrip
|
||||
73 48 000D8B30 Java_CoolPropJNI_strrstrip
|
||||
74 49 000D8F00 Java_CoolPropJNI_strsplit
|
||||
75 4A 000D8BC0 Java_CoolPropJNI_strstrip
|
||||
76 4B 000DB3D0 Java_CoolPropJNI_toSI
|
||||
77 4C 000D9120 Java_CoolPropJNI_upper
|
||||
78 4D 000DC5E0 Java_CoolPropJNI_viscosity_1dilute
|
||||
79 4E 000DC6A0 Java_CoolPropJNI_viscosity_1residual
|
||||
|
||||
Summary
|
||||
|
||||
29000 .data
|
||||
2B000 .pdata
|
||||
D4000 .rdata
|
||||
7000 .reloc
|
||||
293000 .text
|
||||
7000 data
|
||||
2000 text
|
||||
Reference in New Issue
Block a user