{"id":19824901,"url":"https://github.com/dennis-van-gils/python-fluidprop","last_synced_at":"2025-09-05T21:40:39.652Z","repository":{"id":239238629,"uuid":"798975616","full_name":"Dennis-van-Gils/python-fluidprop","owner":"Dennis-van-Gils","description":"Easy access to thermodynamic fluid properties as a function of temperature and pressure. With a minimal command-line interface.","archived":false,"fork":false,"pushed_at":"2024-05-13T21:35:09.000Z","size":26,"stargazers_count":10,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-06T13:05:06.279Z","etag":null,"topics":["command-line-tool","coolprop","data-analysis","fluids","thermodynamic-properties"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Dennis-van-Gils.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGELOG.rst","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS.rst","dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"Dennis-van-Gils","patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2024-05-10T21:40:52.000Z","updated_at":"2025-04-23T21:05:36.000Z","dependencies_parsed_at":"2025-05-01T13:44:55.833Z","dependency_job_id":"bdff5c4b-bcc0-43ad-a5b6-ff796347b2be","html_url":"https://github.com/Dennis-van-Gils/python-fluidprop","commit_stats":null,"previous_names":["dennis-van-gils/python-fluidprop"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Dennis-van-Gils/python-fluidprop","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dennis-van-Gils%2Fpython-fluidprop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dennis-van-Gils%2Fpython-fluidprop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dennis-van-Gils%2Fpython-fluidprop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dennis-van-Gils%2Fpython-fluidprop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Dennis-van-Gils","download_url":"https://codeload.github.com/Dennis-van-Gils/python-fluidprop/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Dennis-van-Gils%2Fpython-fluidprop/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273826614,"owners_count":25175232,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-05T02:00:09.113Z","response_time":402,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["command-line-tool","coolprop","data-analysis","fluids","thermodynamic-properties"],"created_at":"2024-11-12T11:06:26.539Z","updated_at":"2025-09-05T21:40:39.621Z","avatar_url":"https://github.com/Dennis-van-Gils.png","language":"Python","funding_links":["https://github.com/sponsors/Dennis-van-Gils"],"categories":[],"sub_categories":[],"readme":"|pypi| |python| |black| |license|\n\n.. |pypi| image:: https://img.shields.io/pypi/v/fluidprop\n    :target: https://pypi.org/project/fluidprop\n.. |python| image:: https://img.shields.io/pypi/pyversions/fluidprop\n    :target: https://pypi.org/project/fluidprop\n.. |black| image:: https://img.shields.io/badge/code%20style-black-000000.svg\n    :target: https://github.com/psf/black\n.. |license| image:: https://img.shields.io/badge/License-MIT-purple.svg\n    :target: https://github.com/Dennis-van-Gils/python-dvg-devices/blob/master/LICENSE.txt\n\nfluidprop\n=========\nEasy access to thermodynamic fluid properties as a function of temperature and\npressure. Comes with a minimal command-line interface for quick inspection.\nProvides class ``FluidProperties()`` useful for working out dataseries in your\nown scripts.\n\n- Github: https://github.com/Dennis-van-Gils/python-fluidprop\n- PyPI: https://pypi.org/project/fluidprop\n\nInstallation::\n\n    pip install fluidprop\n\nor if you're on macOS or Linux, try::\n\n    pip3 install fluidprop\n\nRaison d'être\n-------------\n\nScience advances every year and with it the accuracy of tabulated/parametrized\nfluid properties. Don't reinvent the wheel by coding your own equation-of-state\nmodels from the literature. Or copy-pasting possibly outdated values from the\ninternet.\n\nEOS models\n----------\n\nThermodynamic properties are provided by CoolProp, the open-source alternative\nto `NIST refprop \u003chttps://www.nist.gov/srd/refprop\u003e`_, with most of the\ncalculations relying on the same equation-of-state (EOS) models as refprop.\n\n* http://www.coolprop.org/\n* http://pubs.acs.org/doi/abs/10.1021/ie4033999\n\nCommand-line interface\n======================\n\nYou can run this module from the terminal with::\n\n    python -m fluidprop\n\nor if you're on macOS or Linux, try::\n\n    python3 -m fluidprop\n\nIt will show a minimal command-line interface which guides the user to enter a\nfluid, temperature and pressure. It will print out its thermodynamic properties\nas a table to the terminal.\n\nBONUS for the Rayleigh-Bénard convection community. Running::\n\n    python -m rbc\n\nwill show a command-line interface acting as a 'pocket calculator' to calculate\nthe Rayleigh and other numbers based on the user input.\n\nExample output of `fluidprop`::\n\n    https://github.com/Dennis-van-Gils/python-fluidprop\n    Thermodynamic properties by CoolProp v6.6.0\n    http://pubs.acs.org/doi/abs/10.1021/ie4033999\n\n    All known fluids:\n        0 | 1-Butene             41 | MD4M                 82 | R1233zd(E)\n        1 | Acetone              42 | MDM                  83 | R1234yf\n        2 | Air                  43 | Methane              84 | R1234ze(E)\n        3 | Ammonia              44 | Methanol             85 | R1234ze(Z)\n        4 | Argon                45 | MethylLinoleate      86 | R124\n        5 | Benzene              46 | MethylLinolenate     87 | R1243zf\n        6 | CarbonDioxide        47 | MethylOleate         88 | R125\n        7 | CarbonMonoxide       48 | MethylPalmitate      89 | R13\n        8 | CarbonylSulfide      49 | MethylStearate       90 | R134a\n        9 | cis-2-Butene         50 | MM                   91 | R13I1\n       10 | CycloHexane          51 | n-Butane             92 | R14\n       11 | Cyclopentane         52 | n-Decane             93 | R141b\n       12 | CycloPropane         53 | n-Dodecane           94 | R142b\n       13 | D4                   54 | n-Heptane            95 | R143a\n       14 | D5                   55 | n-Hexane             96 | R152A\n       15 | D6                   56 | n-Nonane             97 | R161\n       16 | Deuterium            57 | n-Octane             98 | R21\n       17 | Dichloroethane       58 | n-Pentane            99 | R218\n       18 | DiethylEther         59 | n-Propane           100 | R22\n       19 | DimethylCarbonate    60 | n-Undecane          101 | R227EA\n       20 | DimethylEther        61 | Neon                102 | R23\n       21 | Ethane               62 | Neopentane          103 | R236EA\n       22 | Ethanol              63 | Nitrogen            104 | R236FA\n       23 | EthylBenzene         64 | NitrousOxide        105 | R245ca\n       24 | Ethylene             65 | Novec649            106 | R245fa\n       25 | EthyleneOxide        66 | o-Xylene            107 | R32\n       26 | Fluorine             67 | OrthoDeuterium      108 | R365MFC\n       27 | HeavyWater           68 | OrthoHydrogen       109 | R40\n       28 | Helium               69 | Oxygen              110 | R404A\n       29 | HFE143m              70 | p-Xylene            111 | R407C\n       30 | Hydrogen             71 | ParaDeuterium       112 | R41\n       31 | HydrogenChloride     72 | ParaHydrogen        113 | R410A\n       32 | HydrogenSulfide      73 | Propylene           114 | R507A\n       33 | IsoButane            74 | Propyne             115 | RC318\n       34 | IsoButene            75 | R11                 116 | SES36\n       35 | Isohexane            76 | R113                117 | SulfurDioxide\n       36 | Isopentane           77 | R114                118 | SulfurHexafluoride\n       37 | Krypton              78 | R115                119 | Toluene\n       38 | m-Xylene             79 | R116                120 | trans-2-Butene\n       39 | MD2M                 80 | R12                 121 | Water\n       40 | MD3M                 81 | R123                122 | Xenon\n\n    Enter fluid number: 121\n    Enter temperature | T ['C]  : 20\n    Enter pressure    | P [bar] : a\n    Enter pressure    | P [atm] : 1\n\n    ------------------------------------------------------------\n    Liquid: Water (H₂O)\n    @ Temperature | T =   20.000 'C = 293.150 K\n    @ Pressure    | P =    1.013 bar\n    ------------------------------------------------------------\n        Molecular weight       | MW      = 18.01527    g/mol\n        Density                | rho     = 9.982e+02   kg/m^3\n        Kinematic viscosity    | nu      = 1.003e-06   m^2/s\n        Dynamic   viscosity    | eta     = 1.002e-03   kg/(m s)\n        Thermal exp. coeff.    | alpha   = 2.068e-04   1/K\n        Thermal diffusivity    | kappa   = 1.432e-07   m^2/s\n        Thermal conductivity   | lambda_ = 5.980e-01   W/(m K)\n        Isobaric  heat capac.  | Cp      = 4.184e+03   J/(kg K)\n        Isochoric heat capac.  | Cv      = 4.157e+03   J/(kg K)\n        Isothermal compress.   | comp    = 4.589e-10   1/Pa\n        Prandtl                | Pr      = 7.008\n    ------------------------------------------------------------\n\nWhen asked to enter the temperature in ``['C]``, you can *once* enter a single\ncharacter instead to change the input unit to::\n\n    k | [K]     Kelvin                  K - 273.15 'C\n    f | ['F]    Degrees Fahrenheit      ('F - 32) * 5 / 9 'C\n\nWhen asked to enter the pressure in ``[bar]``, you can *once* enter a single\ncharacter instead to change the input unit to::\n\n    a | [atm]   Atmosphere              = 1.01325 bar\n    m | [mmHg]  Millimeter mercury      ≈ 1 atm / 760\n    p | [psi]   Pounds per square inch  = 1 / 14.504 bar\n    t | [torr]  Torr                    = 1 atm / 760\n\nFluidProperties()\n=================\n\nThis class evaluates thermodynamic fluid properties of the given fluid at the\ngiven temperature(s) in ``['C]`` and pressure(s) in ``[bar]``. The results are\nstored as properties to this class as ``numpy.ndarray`` arrays. Useful for\nworking out dataseries.\n\nExample:\n\n.. code-block:: python\n\n    from fluidprop import FluidProperties\n\n    fluid = FluidProperties(\"Water\", 20, 1)\n    print(fluid.rho)  # [998.2065435]\n\n    fluid = FluidProperties(\"Water\", [20, 21, 22], 1)\n    print(fluid.rho)  # [998.2065435  997.99487638 997.77288644]\n\nList of stored properties::\n\n    coolprop_name (str): CoolProp name of the fluid.\n\n    formula       (str): Chemical formula of the fluid.\n\n    MW      (float)  : Molecular weight               [kg/mol]\n\n    T       (ndarray): Evaluated temperature          [K]\n\n    P       (ndarray): Evaluated pressure             [Pa]\n\n    rho     (ndarray): Density                        [kg/m^3]\n\n    nu      (ndarray): Kinematic viscosity            [m^2/s]\n\n    eta     (ndarray): Dynamic/shear viscosity        [kg/(m s)]\n\n    alpha   (ndarray): Thermal expansion coefficient  [1/K]\n\n    kappa   (ndarray): Thermal diffusivity            [m^2/s]\n\n    lambda_ (ndarray): Thermal conductivity           [W/(m K)]\n\n    Cp      (ndarray): Isobaric heat capacity         [J/(kg K)]\n\n    Cv      (ndarray): Isochoric heat capacity        [J/(kg K)]\n\n    comp    (ndarray): Isothermal compressibility     [1/Pa]\n\n    Pr      (ndarray): Prandtl number                 [-]\n\nDennis van Gils, 13-05-2024\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennis-van-gils%2Fpython-fluidprop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdennis-van-gils%2Fpython-fluidprop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdennis-van-gils%2Fpython-fluidprop/lists"}