{
"cells": [
{
"cell_type": "markdown",
"id": "42307e24",
"metadata": {},
"source": [
"# Using the BYU TPL Python Package for Properties\n",
"Engineering calculations require values for the thermophysical properties of the compounds considered. For example, viscosity and density are needed in pipe flow problems, and the critical temperature and pressure are required for equation of state calculations. Properties are found in multiple compilations including handbooks, textbooks, and databases. \n",
"\n",
"To make homework more time efficient, the Thermophysical Properties Laboratory (TPL) at BYU has created a Python package with properties for some common chemicals of interest. The BYU TPL produces the DIPPR® database which is the gold standard for thermophysical properties for industry. This project is funded by an consortium of companies in the chemical engineering field under the auspices of AIChE®. DIPPR® offers a free \"Sample\" database which is the origin of the properties for this Python package. The exception is air whose properties come from other sources (acknowledged in the documentation for the package) as DIPPR® properties for air are not available without a license.\n",
"\n",
"The steps to downloading and using the package are below.\n"
]
},
{
"cell_type": "markdown",
"id": "8d21fe75",
"metadata": {},
"source": [
"## Download the Package from GitHub\n",
"\n",
"1. Navigate to https://github.com/thomasknotts/byutpl\n",
"2. Click on the green button labeled \"Code\"\n",
"3. Select \"Download ZIP\"\n",
"4. Unzip the file.\n",
"5. Rename the unzipped folder from `byutpl-main` to `byutpl` for convenience. You will use this folder below.\n",
"\n",
"## Install the Package\n",
"Importing the package requires the `byutpl` folder (renamed from `byutpl-main`) to be placed in a location where Python can find it. This can be done multiple ways, and two are described below.\n",
"### Option 1: \n",
"Place the `byutpl` folder in the same folder as the Python or Jupyter notebook file under development. Call the following commands, which tell the system to search the current directory for packages, at the beginning of the Python file.\n",
"```\n",
"import sys\n",
"sys.path.append(\".\")\n",
"```"
]
},
{
"cell_type": "markdown",
"id": "d8e2666f",
"metadata": {},
"source": [
"### Option 2:\n",
"Place the `byutpl` folder in the default package repository on the computer. If Anaconda was used to install Python then this is likely in `C:\\ProgramData\\anaconda3\\Lib\\site-packages` or `C:\\Users\\YourUserName\\anaconda3\\Lib\\site-packages`.\n",
"\n",
"There are actually several locations where the `byutpl` folder may be placed. You can find these using the following commands. \n",
"```\n",
"import sys\n",
"sys.path\n",
"```\n",
"The results of the last command is a list of folders on the computer that python searches for packages. Place `byutpl` in any of these locations."
]
},
{
"cell_type": "markdown",
"id": "e218a7f2",
"metadata": {},
"source": [
"## Import the Properties Packages\n",
"This example uses Option 1 above before importing the property packages."
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "1e00d912",
"metadata": {},
"outputs": [],
"source": [
"import sys\n",
"sys.path.append(\".\")\n",
"import byutpl.properties.water as wtr\n",
"import byutpl.properties.benzene as bzn\n",
"import byutpl.properties.air as air"
]
},
{
"cell_type": "markdown",
"id": "7c93cce5",
"metadata": {},
"source": [
"#### Hint: If this doesn't work, recheck that you have the ``byutpl`` folder in the same location as your Python file and *restart the kernal*."
]
},
{
"cell_type": "markdown",
"id": "b942ca49",
"metadata": {},
"source": [
"## Examples\n",
"Liquid density of water, in kg/m3, at 300 K."
]
},
{
"cell_type": "code",
"execution_count": 2,
"id": "f6321dc3",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"996.5085063084287"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"wtr.ldn(300)"
]
},
{
"cell_type": "markdown",
"id": "6305d087",
"metadata": {},
"source": [
"Liquid density of benzene, in kg/m3, at 300 K."
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "17427e8a",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"871.1319626628384"
]
},
"execution_count": 3,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"bzn.ldn(300)"
]
},
{
"cell_type": "markdown",
"id": "a9106d41",
"metadata": {},
"source": [
"Liquid heat capacity of water, in J mol-1 K-1, at 300 K."
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "72ae3ec8",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"75.35580999999999"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"wtr.lcp(300)"
]
},
{
"cell_type": "markdown",
"id": "1d16279a",
"metadata": {},
"source": [
"Liquid heat capacity of benzene, in J mol-1 K-1, at 300 K."
]
},
{
"cell_type": "code",
"execution_count": 5,
"id": "6a022f9b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"136.4638"
]
},
"execution_count": 5,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"bzn.lcp(300)"
]
},
{
"cell_type": "markdown",
"id": "e56dbd5b",
"metadata": {},
"source": [
"Liquid viscosity of water, in Pa$\\cdot$s, at 300 K."
]
},
{
"cell_type": "code",
"execution_count": 6,
"id": "aef4c225",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.0008764544531585072"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"wtr.lvs(300)"
]
},
{
"cell_type": "markdown",
"id": "646d01af",
"metadata": {},
"source": [
"Liquid viscosity of benzene, in Pa$\\cdot$s, at 300 K."
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "5e7e768b",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"0.000585876484725513"
]
},
"execution_count": 7,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"bzn.lvs(300)"
]
},
{
"cell_type": "markdown",
"id": "e14617c3",
"metadata": {},
"source": [
"Display the units of liquid heat capacity."
]
},
{
"cell_type": "code",
"execution_count": 8,
"id": "b7f538ca",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"'J mol**-1 K**-1'"
]
},
"execution_count": 8,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"wtr.unit('lcp')"
]
},
{
"cell_type": "markdown",
"id": "255797ed",
"metadata": {},
"source": [
"## More Information\n",
"The complete list of properties and functions in the package, along with documention on parameters and units, can be seen using the Python ``help`` function as shown below."
]
},
{
"cell_type": "code",
"execution_count": 9,
"id": "4f23a2ca",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Help on module byutpl.properties.water in byutpl.properties:\n",
"\n",
"NAME\n",
" byutpl.properties.water\n",
"\n",
"DESCRIPTION\n",
" This library contains functions for the properties of water.\n",
" The values come from the DIPPR(R) Sample database [1], \n",
" and the DIPPR(R) abbreviations are used. Vapor properties that are \n",
" dependent on pressure are obtained using the Soave-Redlich-Kwong equation\n",
" of state.\n",
" \n",
" This module is part of the byutpl package. Import the module using\n",
" \n",
" import byutpl.properties.water as wtr\n",
" \n",
" When imported in this way, constant properties can be called as \n",
" \n",
" wtr.acen\n",
" \n",
" which returns the acentric factor. Temperature dependent properties\n",
" can be called as\n",
" \n",
" wtr.vtc(t)\n",
" \n",
" which returns the vapor thermal conductivity at `t` where `t` is \n",
" temperature in units of K. Temperature and pressure dependent properties\n",
" can be called as\n",
" \n",
" wtr.vcp(t,p)\n",
" \n",
" which returns the vapor heat capacity at `t` and `p` where \n",
" `t` is temperature in units of K and `p` is pressure in units of Pa.\n",
" \n",
" A complete list of properties, and the associated units, are found \n",
" below. \n",
" \n",
" Function Return Value Input Value(s) \n",
" --------- -------------------------------------- ----------------- \n",
" tc critical temperature in K none \n",
" pc critical pressure in Pa none \n",
" vc critical volume in m**3/mol none \n",
" zc critical compress. factor (unitless) none \n",
" mw molecular weight in kg/mol none \n",
" acen acentric factor (unitless) none \n",
" ldn(t) liquid density in kg/m**3 temperature in K \n",
" lcp(t) liquid heat capacity in J/(mol*K) temperature in K \n",
" ltc(t) liquid thermal conductivity in W/(m*K) temperature in K \n",
" vp(t) liquid vapor pressure in Pa temperature in K \n",
" hvp(t) heat of vaporization in J/mol temperature in K \n",
" lpr(t) liquid Prandtl number (unitless) temperature in K \n",
" lvs(t) liquid viscosity in Pa*s temperature in K \n",
" lnu(t) liquid kinematic viscosity in m**2/s temperature in K \n",
" tsat(p) temperature at saturation in K pressure in Pa \n",
" vvs(t) vapor (steam) viscosity in Pa*s temperature in K \n",
" vtc(t) vapor (steam) therm. conduct. in W/(m*K) temperature in K \n",
" vdn(t,p) vapor (steam) density in kg/m**3 temperature in K\n",
" pressure in Pa\n",
" vcp(t,p) vapor (steam) isobaric heat capacity temperature in K\n",
" in J/(mol*K) pressure in Pa\n",
" vnu(t,p) vapor (steam) kinematic viscosity temperature in K\n",
" in m**2/s pressure in Pa \n",
" vpr(t,p) vapor (steam) Prandtl number (unitless) temperature in K\n",
" pressure in Pa \n",
" \n",
" References\n",
" ----------\n",
" .. [1] W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
"\n",
"FUNCTIONS\n",
" ftsat(t, p)\n",
" function supplied to fsolve in tsat function \n",
" \n",
" Function supplied to fsolve (in the f(x)=0 form) to solve for the \n",
" temperature at saturation for a given pressure. This \n",
" function is of little use to users. Users should use \n",
" the function tsat.\n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the function. It is\n",
" the \"x\" value for which fsolve solves.\n",
" \n",
" p : float\n",
" The pressure (Pa) at which the saturated temperature is desired.\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The value of the function supplied to fsolve. This value will be \n",
" zero if 't' is the saturated temperature for `p`. \n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" hvp(t)\n",
" heat of vaporization of water \n",
" \n",
" Heat of vaporization of water from the DIPPR(R) correlation\n",
" (Correlation A: DIPPR Equation 106; valid from 273.16 - 647.096 K;\n",
" uncertainty: < 1%)\n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the heat of vaporization of\n",
" water.\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The heat of vaporization (J/mol) of water at `t`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" lcp(t)\n",
" liquid heat capacity of water \n",
" \n",
" Liquid heat capacity of water from the DIPPR(R) correlation\n",
" (Correlation A: DIPPR Equation 100; valid from 273.16 - 533.15 K;\n",
" uncertainty: < 1%)\n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the liquid heat capacity\n",
" of water.\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The value of the liquid heat capacity (J mol**-1 K**-1) of water at\n",
" `t`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" ldn(t)\n",
" liquid density of water \n",
" \n",
" Liquid density of water from the DIPPR(R) correlation.\n",
" (Correlation C: DIPPR Equation 119; valid from 273.16 - 647.096 K;\n",
" uncertainty: < 0.2%)\n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the liquid density of water.\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The value of the liquid density (kg/m**3) of water at `t`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" lnu(t)\n",
" liquid kinematic viscosity of water \n",
" \n",
" Liquid kinematic viscosity of water calculated from the lvs and ldn\n",
" functions in this module.\n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the liquid kinematic \n",
" viscosity of water.\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The liquid kinematic viscosity (m**2/s) of water at `t`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" lpr(t)\n",
" Prandtl number of liquid water \n",
" \n",
" Prandtl number of liquid water calculated from the lcp, lvs, and ltc\n",
" functions in this module.\n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the Prandtl number of\n",
" liquid water.\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The Prandtl number (dimensionless) of liquid water at `t`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" ltc(t)\n",
" liquid thermal conductivity of water \n",
" \n",
" Liquid thermal conductivity of water from the DIPPR(R) correlation\n",
" (Correlation A: DIPPR Equation 100; valid from 273.16 - 633.15 K;\n",
" uncertainty: < 1%)\n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the liquid thermal\n",
" conductivity of water.\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The liquid thermal conductivity (W m**-1 K**-1) of water at `t`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" lvs(t)\n",
" liquid viscosity of water \n",
" \n",
" Liquid viscosity of water from the DIPPR(R) correlation\n",
" (Correlation A: DIPPR Equation 101; valid from 273.16 - 647.096 K;\n",
" uncertainty: < 3%)\n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the liquid viscosity of\n",
" water.\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The liquid viscosity (Pa*s) of water at `t`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" tsat(p)\n",
" saturated temperature for water\n",
" \n",
" Saturation temperature of water for a given pressure 'p'. It is\n",
" the temperature for which the following equation is true:\n",
" vp(t)= `p`\n",
" where vp is the function in this module and t is the value\n",
" this function (tsat) returns.\n",
" \n",
" Parameters\n",
" ----------\n",
" p : float\n",
" The pressure (Pa) at which to find the saturated temperature.\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The temperature (K) of water at saturation at pressure `p`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" unit(key)\n",
" Returns the units of `key` \n",
" \n",
" Returns the units of the constant or function in this module identified\n",
" by 'key'\n",
" \n",
" Parameters\n",
" ----------\n",
" key : string\n",
" The name of the constant or function in this module for which the\n",
" units are needed.\n",
" \n",
" Returns\n",
" -------\n",
" string\n",
" The units for the constant or function identified by `key`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" vcp(t, p)\n",
" vapor heat capacity water (steam)\n",
" \n",
" Heat capacity of vapor water (steam) calculated from the DIPPR(R) \n",
" correlation for ideal gas heat capacity and the residual property\n",
" from the Soave-Redlich-Kwong equation of state.\n",
" (ICP Correlation A: DIPPR Equation 107; valid from 100 - 2273.15 K;\n",
" uncertainty: < 3%)\n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the heat \n",
" capacity of vapor water (steam).\n",
" \n",
" p : float\n",
" The pressure (Pa) at which to evaluate the heat capacity\n",
" of vapor water (steam).\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The heat capacity (J/(mol*K)) of vapor water (steam)\n",
" at `t` and `p`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" vdn(t, p)\n",
" vapor density of water (steam) \n",
" \n",
" The vapor density of water (density of steam) at temperature `t` and\n",
" pressure `p` from the Soave-Redlich-Kwong equation of state. This \n",
" will not be as accurate as the value from the steam tables.\n",
" (valid from 273.16 - 1073.15 K; uncertainty at saturation:\n",
" < 0.1% at 300 K, < 1.5% at 400 K, < 3% at 500 K, < 10% at 600 K)\n",
" \n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the vapor density of water\n",
" (the density of steam).\n",
" \n",
" p : float\n",
" The pressure (Pa) at which to evaluate the vapor density of water\n",
" (the density of steam).\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The vapor density of water (kg/m**3) (the density of steam) at `t`\n",
" and `p`.\n",
" \n",
" vnu(t, p)\n",
" vapor kinematic viscosity of water (steam)\n",
" \n",
" Kinematic viscosity of vapor water (steam) calculated from the vvs and\n",
" vdn functions in this module. The calculation uses the Soave-Redlich-\n",
" Kwong equation of state for the vapor density which is not as accurate\n",
" as the values from the the steam tables.\n",
" (valid from 273.16 - 647.096 K; uncertainty at saturation:\n",
" < 0.1% at 300 K, < 1.5% at 400 K, < 3% at 500 K, < 10% at 600 K)\n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the kinematic \n",
" viscosity of vapor water (steam).\n",
" \n",
" p : float\n",
" The pressure (Pa) at which to evaluate the kinematic viscosity\n",
" of vapor water (steam).\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The kinematic viscosity (m**2/s) of vapor water (steam)\n",
" at `t` and `p`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" vp(t)\n",
" liquid vapor pressure of water \n",
" \n",
" Liquid vapor pressure of water from the DIPPR(R) correlation\n",
" (Correlation A: DIPPR Equation 101; valid from 273.16 - 647.096 K;\n",
" uncertainty: < 0.2%)\n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the liquid vapor pressure of\n",
" water.\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The liquid vapor pressure (Pa) of water at `t`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" vpr(t, p)\n",
" Prandtl number of vapor water (steam)\n",
" \n",
" Prandtl number of vapor water (steam) calculated from the vcp, vvs, \n",
" and vtc functions in this module. The calculation uses the Soave-\n",
" Redlich-Kwong equation of state to correct the ideal gas heat capacity\n",
" to the real gas at `t` and `p`. This is not as accurate as the values\n",
" from the the steam tables.\n",
" (valid from 273.16 - 647.096 K; uncertainty at saturation:\n",
" < 0.1% at 300 K, < 1.5% at 400 K, < 3% at 500 K, < 10% at 600 K)\n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the Prandtl number of vapor\n",
" water (steam).\n",
" \n",
" p : float\n",
" The pressure (Pa) at which to evaluate the Prandtl number of vapor\n",
" water (steam).\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The Prandtl number (dimensionless) of vapor water (steam) at `t`\n",
" and `p`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" vtc(t)\n",
" thermal conductivity of vaporized water (steam) \n",
" \n",
" The vapor thermal conductivity of water (the thermal conductivity of steam)\n",
" at temperature `t` from the DIPPR(R) correlation.\n",
" (Correlation A: DIPPR Equation 102; valid from 273.16 - 1073.15 K;\n",
" uncertainty: < 3%)\n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the vapor thermal conductivity\n",
" of water (the thermal conductivity of steam).\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The vapor thermal conductivity of water (W m**-1 K**-1) \n",
" (the thermal conductivity of steam) at `t`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
" \n",
" vvs(t)\n",
" viscosity of vaporized water (steam) \n",
" \n",
" Vapor viscosity of water (the viscosity of steam) at temperature `t`\n",
" from the DIPPR(R) correlation.\n",
" (Correlation A: DIPPR Equation 102; valid from 273.16 - 1073.15 K;\n",
" uncertainty: < 3%)\n",
" \n",
" Parameters\n",
" ----------\n",
" t : float\n",
" The temperature (K) at which to evaluate the vapor viscosity of water\n",
" (the viscosity of steam).\n",
" \n",
" Returns\n",
" -------\n",
" float\n",
" The vapor viscosity of water (Pa*s) (the viscosity of steam) at `t`.\n",
" \n",
" References\n",
" ----------\n",
" .. W. V. Wilding, T. A. Knotts, N. F. Giles, R. L. Rowley, J. L. Oscarson, \n",
" DIPPR® Data Compilation of Pure Chemical Properties, Design Institute\n",
" for Physical Properties, AIChE, New York, NY (2017).\n",
"\n",
"DATA\n",
" acen = 0.344861\n",
" mw = 0.01801528\n",
" pc = 22064000.0\n",
" tc = 647.096\n",
" vc = 5.59472e-05\n",
" zc = 0.229\n",
"\n",
"FILE\n",
" c:\\users\\tak6\\box\\1 classes\\chen376\\skills\\properties\\byutpl\\properties\\water.py\n",
"\n",
"\n"
]
}
],
"source": [
"help(wtr)"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
}
},
"nbformat": 4,
"nbformat_minor": 5
}