Corrected wrong diameter.

Bug fix to correct diameter of PEX pipes.
Replaced abs() function.

Replaced the abs() function in the assignment of the parameter
nSegHexTan as the return value of abs() is a Real which causes a type
error during model check.