# doc-cache created by Octave 9.2.0
# name: cache
# type: cell
# rows: 3
# columns: 18
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
adiabSat


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 794
 Syntax:

 -- [Tadiab,Wadiab]=adiabSat(h[,fig])

 adiabSat computes
  the adiabatic saturation temperature Tadiab (in K) and
  the adiabatic saturation humidity Wadiab (in Kg/kg of dry air) given
  the specific enthalpy h (in J/kg of dry air).
 If fig = true is given, a schematic psychrometric chart
  is plotted as a graphical representation
  of the solution.
 psychro is a main function of
  the psychrometrics toolbox for GNU Octave.

 Examples:
 # Compute the adiabatic saturation temperature given
 # the specific enthalpy is 82.4 kJ/kg of dry air and
 # plot a graphical representation of the
 # answer in a schematic psychrometric chart.

 [Tadiab,Wadiab]=adiabSat(h=82.4e3,true) # parameters and returns in SI units

 See also: psychro, dewTemp, humidity, satPress, enthalpy, volume.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
bissection


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 265
 Syntax:

 -- x2=bissection(f,x1,x2)

 bissection computes the root of
  a function f(x) between x1 and x2
  within a given tolerance tol for f(x)
  using the method of bissection.
 bissection is an internal function of
  the psychrometrics toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
buildChart


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 177
 Syntax:

 -- buildChart()

 buildChart computes data for
  a schematic psychrometric chart.
 buildChart is an internal function of
  the psychrometrics toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
buildEnthalpy


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 354
 Syntax:

 -- [T,W]=buildEnthalpy(h)

 buildEnthalpy generates a two column matrix of
  humidity and dry bulb temperature
  with given constant specific enthalpy h (in J/kg).
 By default, constant specific enthalpy curves
  are ploted with red dash-doted thin lines.
 buildEnthalpy is an internal function of
  the psychrometrics toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
buildHumidity


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 345
 Syntax:

 -- [T,W]=buildHumidity(phi)

 buildHumidity generates a two column matrix of
  humidity and dry bulb temperature
  with given constant relative humidity phi.
 By default, constant relative humidity curves
  are ploted with black solid thin lines.
 buildHumidity is an internal function of
  the psychrometrics toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 11
buildVolume


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 354
 Syntax:

 -- [T,W]=buildVolume(v)

 plotVolume generates a two column matrix of
  humidity and dry bulb temperature
  with given constant specific volume v (in cu. m/kg).
 By default, constant specific volume curves
  are ploted with with green dash-doted thin lines.
 buildVolume is an internal function of
  the psychrometrics toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 16
buildWetBulbTemp


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 366
 Syntax:

 -- [T,W]=buildWetBulbTemp(Twet)

 buildWetBulbTemp generates two column matrix of
  humidity and dry bulb temperature
  with given constant wet bulb temperature Twet (in K).
 By default, constant specific volume curves
  are ploted with with blue solid thin lines.
 buildWetBulbTemp is an internal function of
  the psychrometrics toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
constants


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 153
 constants privides
  the parameters
  for adjusted functions
  satPress and dewTemp.
 constants is part of
  the psychrometrics toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 constants privides
  the parameters
  for adjusted functions
  satPress and ...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
dewTemp


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 483
 Syntax:

 -- Tdew=dewTemp(pw)

 dewTemp computes
  the dew point temperature Tdew (in K)
  of humid air given
  the water vapor pressure pw (in Pa).
 dewTemp is an internal function of
  the psychrometrics toolbox for GNU Octave.

 Examples:
 # Compute the dew temperature
 # of humid air given
 # the water vapor pressure is 1 kPa.

 pw=1e3; # water vapor pressure in Pa
 Tdew=dewTemp(pw) # dew temperature in K

 See also: psychro, humidity, satPress, enthalpy, volume, adiabSat.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
doPlot


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 360
 Syntax:

 -- doPlot()

 doPlot plots
  a schematic psychrometric chart with
  previously computed curves with
  constant dry bulb temperature,
  constant specific volume,
  constant specific enthalpy and
  constant relative humidity.
 Edition of this file is highly not advised.
 doPlot is an internal function of
  the psychrometrics toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
enthalpy


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 558
 Syntax:

 -- h=enthalpy(Tdry,W)

 enthalpy computes
  the specific enthalpy h (in J/kg of dry air)
  of humid air given
  the dry bulb temperature Tdry (in K) and
  the humidity W (in kg/kg of dry air).
 enthalpy is an internal function of
  the psychrometrics toolbox for GNU Octave.

 Examples:
 # Compute the specific enthalpy given
 # the dry bulb temperature is 25 °C and
 # the humidity is 7 g/kg of dry air.

 h=enthalpy(Tdry=25+273.15,W=7e-3) # parameters and returns in SI units

 See also: psychro, dewTemp, humidity, satPress, volume, adiabSat.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
humidity


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 639
 Syntax:

 -- W=humidity(pw[,p])

 humidity computes
  the humidity W (in kg/kg of dry air)
  of humid air given
  the water vapor pressure pw (in Pa) and
  the total pressure p (in Pa).
 By default, total pressure is assumed
  to be the atmospheric pressure
  at sea level (p = 101325).
 humidity is an internal function of
  the psychrometrics toolbox for GNU Octave.

 Examples:
 # Compute the humidity of humid air
 # at atmospheric pressure given
 # water vapor pressure is 1 kPa
 # at 1 atm total pressure.

 W=humidity(pw=1e3) # parameters and returns in SI units

 See also: psychro, dewTemp, satPress, enthalpy, volume, adiabSat.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 9
humidity2


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 373
 Syntax:

 -- W=humidity2(Wsatwet,Tdry,Twet)

 humidity2 computes
  the humidity W (in kg/kg of dry air)
  of humid air given
  the saturation humidity Wsatwet (in kg/kg of dry air) at wet bulb temperature,
  the dry bulb temperature Tdry (in K) and
  the wet bulb temperature Twet (in K).
 humidity2 is an internal function of
  the psychrometrics toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 13
newtonraphson


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 279
 Syntax:

 -- x=newtonraphson(f,x,tol)

 newtonraphson computes the root of
  a function f(x) from a guess value x
  within a given tolerance tol fo f(x)
  using the method of Newton-Raphson.
 newtonraphson is an internal function of
  the psychrometrics toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
plotData


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 196
 plotData privides
  the data for a schematic
  air-water vapor psychrometric chart.
 Edition of this file is highly not advised.
 plotData is part of
  the psychrometrics toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 plotData privides
  the data for a schematic
  air-water vapor psychrometric...



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
psychro


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 3604
 Syntax:

 -- [~,~,~,~,W,~,~,~,h,v]=psychro(Tdry=300,Twet=295)
 -- [~,~,~,Tadiab,~,~,Wsatwet,Wadiab]=psychro(Tdry=298,:,:,:,:,:,phi=0.50,true)
 -- [Tdry,Twet,Tdew,~,~,~,~,~,~,~,phi,pw]=psychro(:,:,:,:,h=40e3,v=0.85)
 -- [Tdry,~,~,~,~,~,~,~,~,~,~,~,psat,psatwet,rho]=psychro(:,:,:,:,h=55e3,v=0.87,:,true)

 psychro computes
  the dry bulb temperature Tdry (in K),
  the wet bulb temperature Twet (in K),
  the dew point temperature Tdew (in K),
  the adiabatic saturation temperature Tadiab (in K),
  the humidit W (in kg/kg of dry air),
  the saturation humidity Wsat (in kg/kg of dry air),
  the saturation humidity at the wet bulb temperature Wsatwet (in kg/kg of dry air),
  the adiabatic saturation humidity Wadiab (in kg/kg of dry air),
  the specific enthalpy h (in J/kg of dry air),
  the specific volume v (in cu. m/kg of dry air),
  the the relative humidity phi,
  the water vapor pressure pw (in Pa),
  the water saturation pressure psat (in Pa),
  the saturation pressure at the wet bulb temperature psatwet (in Pa) and
  the density rho (in kg/cu. m) given
  any two parameters among
  the dry bulb temperature Tdry (in K),
  the wet bulb temperature Twet (in K),
  the dew point temperature Tdew (in K),
  the humidit W (in kg/kg of dry air),
  the specific enthalpy h (in J/kg of dry air),
  the specific volume v (in cu. m/kg of dry air) and
  the the relative humidity phi,
  except the combination of water vapor pressure and
  dew point temperature, which are not independent.
 Unknowns must be indicated by default value syntax.
 If fig = true is given, a schematic psychrometric chart
  is plotted as a graphical representation
  of the solution.
 psychro is a main function of
  the psychrometrics toolbox for GNU Octave.

 Examples:
 # Compute the dry bulb temperature,
 # the wet bulb temperature,
 # the dew point temperature,
 # the adiabatic saturation temperature,
 # the humidity,
 # the saturation humidity,
 # the saturation humidity at wet bulb temperature,
 # the adiabatic saturation humidity,
 # the specific enthalpy,
 # the specific volume,
 # the relative humidity,
 # the water vapor pressure,
 # the saturation pressure,
 # the saturation pressure at wet bulb temperature and
 # the density given
 # the dew point temperature is 22 °C and
 # the relative humidity is 29 %:
 [Tdry,Twet,Tdew,Tadiab,W,Wsat,Wsatwet,Wadiab,h,v,phi,pw,psat,psatwet,rho]=...
 psychro(:,:,Tdew=22+273.15,:,:,:,phi=0.29) # parameters and returns in SI units

 # 8.5 cubic meters of humid air at
 # dry bulb temperature of 293 K and
 # wet bulb temperature of 288 K
 # is subjected to two cycles of
 # heating to 323 and adiabatic saturation.
 # Compute the energy and water vapor demands.
 # Assume the amount of dry air is constant.

 # All parameters and returns in SI units
 # The initial condition is
 [~,~,~,~,W1,~,~,~,h1,v1]=psychro(Tdry1=293,Twet1=288,:,:,:,:,:,true)
 
 # The thermodynamic state after the first heating is
 [~,~,~,~,~,~,~,~,h2,v2]=psychro(Tdry2=323,:,:,W2=W1,:,:,:,true)
 
 # The thermodynamic state the after first adiabatic saturation is
 [Tdry3,W3]=adiabSat(h3=h2)
 [~,~,~,~,~,~,~,~,~,v3]=psychro(Tdry3,:,:,W3)
 
 # The thermodynamic state after the second heating is
 [~,~,~,~,~,~,~,~,h4,v4]=psychro(Tdry4=323,:,:,W4=W3,:,:,:,true)
 
 # The thermodynamic state the after second adiabatic saturation is
 [Tdry5,W5]=adiabSat(h5=h4)
 [~,~,~,~,~,~,~,~,~,v5]=psychro(Tdry5,:,:,W5)
 
 # The energy and water vapor demands are
 (h5-h1)*(8.5/v1) # demand of energy
 (W5-W1)*(8.5/v1) # demand of water vapor

 See also: humidity, satPress, enthalpy, volume, adiabSat.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
satPress


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 465
 Syntax:

 -- psat=satPress(Tdry)

 satPress computes
  the saturation pressure psat (in pa)
  of humid air given
  the dry bulb temperature Tdry (in K).
 satPress is an internal function of
  the psychrometrics toolbox for GNU Octave.

 Examples:
 # Compute the saturation pressure given
 # the dry bulb temperature is 25 °C.

 psat=satPress(Tdry=25+273.15) # parameters and returns in SI units

 See also: psychro, dewTemp, humidity, enthalpy, volume, adiabSat.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 6
volume


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 714
 Syntax:

 -- v=volume(Tdry,W[,p])

 volume computes
  the specific volume (in cu. m/kg of dry air)
  of humid air given
  the dry bulb temperature Tdry (in K),
  the humidity W (in kg/kg of dry air) and
  the total pressure p (in Pa).
 By default, total pressure is assumed
  to be the atmospheric pressure
  at sea level (p = 101325).
 volume is an internal function of
  the psychrometrics toolbox for GNU Octave.

 Examples:
 # Compute the specific volume given
 # the dry bulb temperature is 25 °C and
 # the humidity is 7 g/kg of dry air
 # at 1 atm total pressure.

 v=volume(Tdry=25+273.15,W=7e-3) # parameters and returns in SI units

 See also: psychro, dewTemp, humidity, satPress, enthalpy, adiabSat.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 8
 Syntax:





