diff --git a/Web/fluid_properties/Incompressibles.rst b/Web/fluid_properties/Incompressibles.rst index 3d5b950f..15d4c9a3 100644 --- a/Web/fluid_properties/Incompressibles.rst +++ b/Web/fluid_properties/Incompressibles.rst @@ -432,7 +432,7 @@ which can be used to model absorption chillers. For slurry ice, the concentration :math:`x` refers to the solid content and the heat capacity includes the heat of fusion. It might be necessary to adjust the solid content during heat transfer. The implementation is based on the data -available in `SecCool `_, +available in `SecCool `_, which was originally recorded at the Danish Technological Institute `(DTI) `_. @@ -444,4 +444,30 @@ which was originally recorded at the Danish Technological Institute `(DTI) ` - is also available for download. \ No newline at end of file + is also available for download. + + +Adding New Fluids +----------------- + +To add a fluid to the backend for incompressible fluids, you have to have the tabulated +property data available. Pure fluids are added to the ``PureFluids.py`` and binary +mixtures, like aqueous mixtures, have to be added to the ``SolutionFLuids.py``. + +The basic state variable for incompressible fluids is temperature, which should be provided +as a one-dimensional numpy array with length :math:`N`. For pure fluids, all properties should match +this temperature array in size since there is a 1-to-1 relation between the temperature points +and the other quantities. + +For binary mixtures, you also need a composition vector to define the data points properly. +This composition vector is also a one-dimensional numpy array of the lenghth :math:`M` and forms the +second axis for your property space with :math:`N \times M` data points. + +Note that all properties have to have the same grid in terms of temperature and composition. + +Once you haver added your fluid data, you can regenrate the JSON files with the fitted +parameters by running the script located at ``dev/incompressible_liquids/all_incompressibles.py``. +Your new fluid is now part of the codebase and should be available to all CoolProp functions as +soon as you recompile the sources. + +