denisgomes / psi

Pipe Stress Infinity (PSI) - The pipe stress analysis and design software.
https://openpipestress.com
Other
25 stars 3 forks source link

Implement All Piping Elements #17

Open denisgomes opened 4 years ago

denisgomes commented 4 years ago

Implement reducers, bends, rigids and all other elements. Pipe reducers are similar to bends in that their internal geometry is defined by a curve (brep). The bezier curve can be used to model a straight line in the case of the reducer with several approximating edges. This approach is also true for bend where a curve is approximated using multiple edges.

A reducer is approximated using multiple run elements. The internal run elements each have a slightly different diameter to account for the change in size of the reducer. The diameter of each run is the average of the large OD at node i and the smaller OD at node j.

When a model is analyzed, a solver pre-processor routine is responsible for creating the intermediate run nodes and elements attributable to each of the edges underlying the reducer and bend elements. Once the solve is completed, the temporary run elements and nodes are removed with the exception of the nodes for which a result is required. Once such case is the mid node of a bend element.

When a model is defined, the wirerep does not contain any bezier curves. Only during the solver pre-processor step is the curve actually created to define the run elements.