library(pipenostics)
# Consider pipes:
diameter <- c(998, 1395) # [mm]
wall_thikness <- c( 2, 5) # [mm]
# Then maximum possible normative neat loss according (Minenergo-325) for
# these pipe diameters are
loss_max <- c(218, 1040) # [kcal/m/h]
# The appropriate flux is
flux <- flux_loss(loss_max, diameter * 1e-3, wall_thikness)
print(flux)
# [1] 80.70238 275.00155 # [W/m^2]
stopifnot(
all.equal(loss_flux(flux, diameter * 1e-3, wall_thikness), loss_max, tolerance = 5e-6)
)
Run the code above in your browser using DataLab