# doc-cache created by Octave 9.2.0
# name: cache
# type: cell
# rows: 3
# columns: 13
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 4
Re2f


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 797
 Syntax:
 -- f=Re2f(Re[,eps][,fig])

 Re2f computes
  the Darcy friction f factor given
  the Reynolds number Re and
  the pipe's relative roughness eps.
 By default, pipe is assumed to be smooth.
  Relative roughness is reset to eps = 0.05, if eps > 0.05.
 If fig = true is given, a schematic Moody diagram
  is plotted as a graphical representation
  of the solution.
 Re2f is a main function of
  the internal-fluid-flow toolbox for GNU Octave.

 Examples:
 # Compute the Darcy friction factor f given
 # the Reynolds number Re = 120,000 and
 # the relative roughness eps = 0.001:
 f=Re2f(120e3,1e-3)

 # Compute the Darcy friction factor f given
 # the Reynolds number Re = 120,000
 # for a smooth pipe and
 # displays a schematic Moody diagram:
 f=Re2f(120e3,:,true)

 See also: f2Re, h2fRe.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 35
 Syntax:
 -- f=Re2f(Re[,eps][,fig])



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 4
f2Re


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1010
 Syntax:
 -- Re=f2Re(f[,eps][,fig])

 f2Re computes
  the Reynolds number Re given
  the Darcy friction factor f and
  the pipe's relative roughness eps for
  for laminar regime and,
  when possible, also
  for turbulent regime.
 By default, pipe is assumed to be smooth.
  Relative roughness is reset to eps = 0.05, if eps > 0.05.
 If fig = true is given, a schematic Moody diagram
  is plotted as a graphical representation
  of the solution.
 f2Re is a main function of
  the internal-fluid-flow toolbox for GNU Octave.

 Examples:
 # Compute Reynolds number Re given
 # the Darcy friction factor f = 0.028 and
 # the relative roughness eps = 0.001.
 # In this case, both laminar and turbulent
 # solutions are possible:
 Re=f2Re(2.8e-2,1e-3)

 # Compute the Reynolds number Re given
 # the Darcy friction factor f = 0.028
 # for a smooth pipe and
 # displays a schematic Moody diagram.
 # In this case, both turbulent and laminar
 # solutions are possible:
 Re=f2Re(2.8e-2,:,true)

 See also: Re2f, h2fRe.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 35
 Syntax:
 -- Re=f2Re(f[,eps][,fig])



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
h2fRe


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 2181
 Syntax:
 -- [Re,f]=h2fRe(h,D,:,:,eps,:[,L][,rho][,mu][,g][,fig])
 -- [Re,f]=h2fRe(h,:,v,:,eps,:[,L][,rho][,mu][,g][,fig])
 -- [Re,f]=h2fRe(h,:,:,Q,eps,:[,L][,rho][,mu][,g][,fig])
 -- [Re,f]=h2fRe(h,D,:,:,:,k[,L][,rho][,mu][,g][,fig])
 -- [Re,f]=h2fRe(h,:,v,:,:,k[,L][,rho][,mu][,g][,fig])
 -- [Re,f]=h2fRe(h,:,:,Q,:,k[,L][,rho][,mu][,g][,fig])

 h2fRe computes the Reynolds number Re and
  the Darcy friction factor f given
  the head loss h,
  the pipe's hydraulic diameter D or
  the flow speed v or
  the volumetric flow rate Q,
  the pipe's length L (default L = 100),
  the pipe's roughness k (default k = 0) or
  the pipe's relative roughness eps (default eps = 0),
  the fluid's density rho (default rho = 0.997),
  the fluid's dynamic viscosity mu (default mu = 0.0091),and
  the gravitational accelaration g (default g = 981).
 By default,pipe is assumed to be smooth.
  Relative roughness is reset to eps = 0.05,if eps > 0.05.
 Notice that default values are given in the cgs unit system and,
  if taken,all other parameters must as well
  be given in cgs units.
 If parameter fig = true is given
  a schematic Moody diagram
  is plotted as a graphical representation
  of the solution.
 h2fRe is a main function of
  the internal-fluid-flow toolbox for GNU Octave.

 Examples:
 # Compute the Reynolds number Re and
 # the Darcy friction factor f given
 # the head loss h = 40 cm,
 # the pipe's hydraulic diameter D = 10 cm,
 # length L = 25 m and
 # relative roughness eps = 0.0027
 # for water flow:
 [Re,f]=h2fRe(40,10,:,:,2.7e-3,:,2.5e3)

 # Compute the Reynolds number Re and
 # the Darcy friction factor f given
 # the head loss per meter h/L = 1.6 cm/m,
 # the volumetric flow rate Q = 8.6 L/s,
 # the fluid's density rho = 0.989 g/cc and
 # dynamic viscosity mu = 0.89 cP
 # for a smooth pipe and
 # show results on a schematic Moody diagram:
 [Re,f]=h2fRe(1.6,:,:,8.6e3,0,:,1,0.989,8.9e-3,:,true)

 # Compute the Reynolds number Re and
 # the Darcy friction factor f,given
 # the head loss h = 0.40 m,
 # the flow speed v = 1.1 m/s,
 # the pipe's length L = 25 m
 # for water flow for a smooth pipe:
 [Re,f]=h2fRe(40,:,1.1e2,:,:,0,2.5e3)

 See also: Re2f,f2Re.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
 Syntax:
 -- [Re,f]=h2fRe(h,D,:,:,eps,:[,L][,rho][,mu][,g][,fig])
 -- [Re,f]=...



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


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 922
 Syntax:
 -- [Re,f]=hDeps2fRe(h,D,L,eps,g,mu,rho[,fig])

 hDeps2fRe computes
  the Reynolds number Re and
  the Darcy friction factor f given
  the head loss h,
  the pipe's hydraulic diameter D,
  the pipe's length L,
  the pipe's relative roughness eps,
  the fluid's density rho,
  the fluid's dynamic viscosity mu, and
  the gravitational accelaration g.
 By default, pipe is assumed to be smooth, eps = 0.
 By default, the fluid is assumed to be water at 25 degC,
  rho = 0.997 kg/L and mu = 0.91 cP,
  and gravitational acceleration is assumed to be
  g = 9.81 m/s/s.
 Please, notice that these default values are given
  in the cgs unit system and, if taken,
  all other inputs must as well be given in cgs units.
 If fig = true is given, a schematic Moody diagram
  is plotted as a graphical representation
  of the solution.
 hDeps2fRe is an internal function of
  the internal-fluid-flow toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 55
 Syntax:
 -- [Re,f]=hDeps2fRe(h,D,L,eps,g,mu,rho[,fig])



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


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 912
 Syntax:
 -- [Re,f]=hQeps2fRe(h,Q,L,eps,g,mu,rho[,fig])

 hQeps2fRe computes
  the Reynolds number Re and
  the Darcy friction factor f given
  the head loss h,
  the volumetric flow Q,
  the pipe's length L,
  the pipe's relative roughness eps,
  the fluid's density rho,
  the fluid's dynamic viscosity mu, and
  the gravitational accelaration g.
 By default, pipe is assumed to be smooth, eps = 0.
 By default, the fluid is assumed to be water at 25 degC,
  rho = 0.997 kg/L and mu = 0.91 cP,
  and gravitational acceleration is assumed to be
  g = 9.81 m/s/s.
 Please, notice that these default values are given
  in the cgs unit system and, if taken,
  all other inputs must as well be given in cgs units.
 If fig = true is given, a schematic Moody diagram
  is plotted as a graphical representation
  of the solution.
 hQeps2fRe is an internal function of
  the internal-fluid-flow toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 55
 Syntax:
 -- [Re,f]=hQeps2fRe(h,Q,L,eps,g,mu,rho[,fig])



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


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 903
 Syntax:
 -- [Re,f]=hQthk2fRe(h,Q,L,thk,g,mu,rho[,fig])

 hQthk2fRe computes
  the Reynolds number Re and
  the Darcy friction factor f given
  the head loss h,
  the volumetric flow Q,
  the pipe's length L,
  the pipe's roughness thk,
  the fluid's density rho,
  the fluid's dynamic viscosity mu, and
  the gravitational accelaration g.
 By default, pipe is assumed to be smooth, thk = 0.
 By default, the fluid is assumed to be water at 25 degC,
  rho = 0.997 kg/L and mu = 0.91 cP,
  and gravitational acceleration is assumed to be
  g = 9.81 m/s/s.
 Please, notice that these default values are given
  in the cgs unit system and, if taken,
  all other inputs must as well be given in cgs units.
 If fig = true is given, a schematic Moody diagram
  is plotted as a graphical representation
  of the solution.
 hQthk2fRe is an internal function of
  the internal-fluid-flow toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 55
 Syntax:
 -- [Re,f]=hQthk2fRe(h,Q,L,thk,g,mu,rho[,fig])



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


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 900
 Syntax:
 -- [Re,f]=hveps2fRe(h,v,L,eps,g,mu,rho[,fig])

 hveps2fRe computes
  the Reynolds number Re and
  the Darcy friction factor f given
  the head loss h,
  the flow speed v,
  the pipe's length L,
  the relative roughness eps,
  the fluid's density rho,
  the fluid's dynamic viscosity mu, and
  the gravitational accelaration g.
 By default, pipe is assumed to be smooth, eps = 0.
 By default, the fluid is assumed to be water at 25 degC,
  rho = 0.997 kg/L and mu = 0.91 cP,
  and gravitational acceleration is assumed to be
  g = 9.81 m/s/s.
 Please, notice that these default values are given
  in the cgs unit system and, if taken,
  all other inputs must as well be given in cgs units.
 If fig = true is given, a schematic Moody diagram
  is plotted as a graphical representation
  of the solution.
 hveps2fRe is an internal function of
  the internal-fluid-flow toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 55
 Syntax:
 -- [Re,f]=hveps2fRe(h,v,L,eps,g,mu,rho[,fig])



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


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 898
 Syntax:
 -- [Re,f]=hvthk2fRe(h,v,L,thk,g,mu,rho[,fig])

 hvthk2fRe computes
  the Reynolds number Re and
  the Darcy friction factor f given
  the head loss h,
  the flow speed v,
  the pipe's length L,
  the pipe's roughness thk,
  the fluid's density rho,
  the fluid's dynamic viscosity mu, and
  the gravitational accelaration g.
 By default, pipe is assumed to be smooth, thk = 0.
 By default, the fluid is assumed to be water at 25 degC,
  rho = 0.997 kg/L and mu = 0.91 cP,
  and gravitational acceleration is assumed to be
  g = 9.81 m/s/s.
 Please, notice that these default values are given
  in the cgs unit system and, if taken,
  all other inputs must as well be given in cgs units.
 If fig = true is given, a schematic Moody diagram
  is plotted as a graphical representation
  of the solution.
 hvthk2fRe is an internal function of
  the internal-fluid-flow toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 55
 Syntax:
 -- [Re,f]=hvthk2fRe(h,v,L,thk,g,mu,rho[,fig])



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


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 319
 Syntax:
 -- laminar(t,w)

 laminar produces a line
  of color t and width w
  that relates the Reynolds number and
  the Darcy friction factor according to
  the Poiseuille condition for laminar flow
  on a schematic Moody diagram.
 laminar is an internal function of
  the internal-fluid-flow toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 25
 Syntax:
 -- laminar(t,w)



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


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 270
 Syntax:
 -- x=newtonraphson(f,x,tol)

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



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 37
 Syntax:
 -- x=newtonraphson(f,x,tol)



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 5
rough


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 244
 Syntax:
 -- rough(t,w)

 rough produces a line
  of color t and width w
  that represents the limit for
  the fully rough flow
  on a schematic Moody diagram.
 rough is an internal function of
  the internal-fluid-flow toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 23
 Syntax:
 -- rough(t,w)



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


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 243
 Syntax:
 -- smooth(t,w)

 smooth produces a line
  of color t and width w
  that represents the limit for
  the smooth pipes
  on a schematic Moody diagram.
 smooth is an internal function of
  the internal-fluid-flow toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 24
 Syntax:
 -- smooth(t,w)



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


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 365
 Syntax:
 -- turbulent(eps,t,w)

 turbulent produces a line
  of color t and width w
  that relates the Reynolds number and
  the Darcy friction factor according to
  the Colebrook-White equation
  for turbulent flow with relative roughness eps
  on a schematic Moody diagram.
 turbulent is an internal function of
  the internal-fluid-flow toolbox for GNU Octave.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 31
 Syntax:
 -- turbulent(eps,t,w)





