Pipe Geometry Extractor

Pipe Geometry Extractor Popular

By 497 downloads

Download (zip, 3.41 MB)

Pipe Geometry Extractor Ver 1.5.zip

Pipe Geometry Extractor

Flownex allows the user to specify pipe diameters and wall thicknesses as “Geometry” inputs where the user has to specify the specific values, or as “Schedule” inputs where a nominal diameter and schedule is selected.

Pipe diameters and wall thicknesses are often used in engineering calculations such as to calculate the pipe flow cross sectional area or the wetted internal surface area, or the maximum allowable working pressure of a pipe. External pipe surface heat transfer would require the pipe diameter (internal) and the wall thickness as well as the pipe length.

For power users who need to read pipe diameters and wall thicknesses from these pipe elements in order to perform further calculations in a script as discussed above or simply transfer this information to another element, this task is unfortunately not as simple as one would expect. Flownex uses two different property fields to store diameter information – one for the geometry inputs and one for the schedule input and they are completely independent. The problem for the user is that if you read the Diameter (geometry) field but the Pipe Schedule is specified, you will end up with the wrong diameter. Similarly, the user could specify the Schedule input option, and then the Diameter (from schedule) property field would yield the wrong information. The same problem exists for the pipe wall thickness.

Unfortunately Flownex does not offer a simple straightforward way for the user to obtain the correct diameter and wall thickness from a single field each. To assist with this, a simple script was developed which reads both diameters and both wall thickness fields as well as the geometry specification option - whether the geometrical diameter and wall thickness are specified or if the geometry is defined via a nominal diameter and schedule. It then provides the user with one result field for the correct diameter and the correct wall thickness.

The attached example Flownex project demonstrates the geometry extraction from a pipe and sending that information to a user script for further calculation.