fluids

Classes for fluids

class ConstantWater(name='Water', cp=4182.0, mu=0.0004, rho=990.0, k=0.598)[source]

Bases: Fluid

Class for water with constant properties

__init__(name='Water', cp=4182.0, mu=0.0004, rho=990.0, k=0.598)[source]
class Fluid(name, isconstant=False, cp=None, mu=None, rho=None, k=None)[source]

Bases: object

Base class for fluids

__init__(name, isconstant=False, cp=None, mu=None, rho=None, k=None)[source]
get_cp(t=50)[source]
get_k(t=50)[source]
get_mu(t=50)[source]
get_rho(t=50)[source]
class Water(name='Water', isconstant=True)[source]

Bases: Fluid

Class for water with variable properties.

References

[1] Popiel, C. O., and J. Wojtkowiak.

“Simple formulas for thermophysical properties of liquid water for heat transfer calculations (from 0 C to 150 C).” Heat transfer engineering 19.3 (1998): 87-101.

__init__(name='Water', isconstant=True)[source]
get_cp(t=50)[source]

Returns the specific heat of water depending on the temperature according to the formula in [1].

get_k(t=50)[source]

Returns the thermal conductivity of water depending on the temperature according to the formula in [1].

get_mu(t=50)[source]

Returns the dynamic viscosity of water depending on the temperature according to the formula in [1].

get_rho(t=50)[source]

Returns the density of water depending on the temperature according to the formula in [1].