bluebonnet.fluids.water ======================= .. py:module:: bluebonnet.fluids.water .. autoapi-nested-parse:: PVT and viscosity for water from the correlations provided by McCain. Functions --------- .. autoapisummary:: bluebonnet.fluids.water.b_water_McCain bluebonnet.fluids.water.b_water_McCain_dp bluebonnet.fluids.water.compressibility_water_McCain bluebonnet.fluids.water.density_water_McCain bluebonnet.fluids.water.viscosity_water_McCain Module Contents --------------- .. py:function:: b_water_McCain(temperature: float, pressure: float | numpy.typing.NDArray[numpy.float64]) -> float | numpy.typing.NDArray[numpy.float64] Calculate the b-factor for water. :param temperature: water temperature in Fahrenheit :type temperature: float :param pressure: water pressure in psia :type pressure: np.ndarray :returns: **b_w** -- b-factor (reservoir bbl / standard bbl) :rtype: float .. rubric:: Examples >>> b_water_McCain(400, 3000) .. py:function:: b_water_McCain_dp(temperature: float, pressure: float | numpy.typing.NDArray[numpy.float64]) -> float | numpy.typing.NDArray[numpy.float64] Calculate the derivative of the b-factor for water with respect to pressure. :param temperature: water temperature in Fahrenheit :type temperature: float :param pressure: water pressure in psia :type pressure: float | NDArray :returns: **b_w_dp** -- derivative of b-factor (reservoir bbl / standard bbl) / psi :rtype: float .. rubric:: Examples >>> b_water_McCain_dp(400, 3000) .. py:function:: compressibility_water_McCain(temperature: float, pressure: float | numpy.typing.NDArray[numpy.float64], salinity: float) -> float | numpy.typing.NDArray[numpy.float64] Calculate the compressibility for water. :param temperature: water temperature in Fahrenheit :type temperature: float :param pressure: water pressure in psia :type pressure: float | NDArray :param salinity: salinity in weight percent total dissolved solids :type salinity: float :returns: **c_w** -- compressibility of water in 1/psi :rtype: float .. rubric:: Examples >>> density_water_McCain(400, 3000, 15) .. py:function:: density_water_McCain(temperature: float, pressure: float | numpy.typing.NDArray[numpy.float64], salinity: float) -> float | numpy.typing.NDArray[numpy.float64] Calculate the density for water. :param temperature: water temperature in Fahrenheit :type temperature: float :param pressure: water pressure in psia :type pressure: float | NDArray :param salinity: salinity in weight percent total dissolved solids :type salinity: float :returns: **rho_w** -- density in lb-mass / cu ft, :math:`\rho_w` :rtype: float .. rubric:: Examples >>> density_water_McCain(400, 3000, 15) .. py:function:: viscosity_water_McCain(temperature: float, pressure: float | numpy.typing.NDArray[numpy.float64], salinity: float) -> float | numpy.typing.NDArray[numpy.float64] Calculate the viscosity for water, Using McCain (1991). :param temperature: water temperature in Fahrenheit :type temperature: float :param pressure: water pressure in psia :type pressure: float :param salinity: salinity in weight percent total dissolved solids :type salinity: float :returns: **mu_w** -- viscosity in centipoise, :math:`\mu_w` :rtype: float .. rubric:: Examples >>> viscosity_water_McCain(400, 3000, 15) 0.2627774655403418