PVC Pipe and Fittings Library: Difference between revisions
(→Elbows) |
(→Macros) |
||
Line 41: | Line 41: | ||
Macros are now in a git repository [https://github.com/rkrenzler/ose-piping-library]. | Macros are now in a git repository [https://github.com/rkrenzler/ose-piping-library]. | ||
The elbow macro depends now on other files. See README.md for installation instructions. | |||
== Pipes == | == Pipes == | ||
To create Pipes 40 and 80 Schedule PVC pipes [[File:create-pipe.fcmacro]] | To create Pipes 40 and 80 Schedule PVC pipes [[File:create-pipe.fcmacro]]. | ||
[[File:pvc-pipe-gui-screenshot.png|thumb]] | [[File:pvc-pipe-gui-screenshot.png|thumb]] | ||
Line 48: | Line 50: | ||
== Elbows == | == Elbows == | ||
Run [[File:create-elbow-90.FCMacro]] with parameters G, H and M from a table. | Run [[File:create-elbow-90.FCMacro]] with parameters OD, ID, G, H and M from a table. | ||
This macro depends now on other files from [https://github.com/rkrenzler/ose-piping-library]. | |||
[[File:pvc-elbow-90-gui-screenshot.png|thumb]] | [[File:pvc-elbow-90-gui-screenshot.png|thumb]] | ||
Line 54: | Line 57: | ||
== Tee == | == Tee == | ||
Run [[File:create-tee.fcmacro]] and select a part from the table | Run [[File:create-tee.fcmacro]] and select a part from the table. | ||
[[File:pvc-tee-gui-screenshot.png|thumb]] | [[File:pvc-tee-gui-screenshot.png|thumb]] | ||
[[File:pvc-tee-cad-screenshot.png|thumb]] | [[File:pvc-tee-cad-screenshot.png|thumb]] | ||
Line 62: | Line 65: | ||
The original instruction are taken from [https://wiki.qt.io/QtCreator_and_PySide] but I (Ruslan) have problems with them. I adjusted them to FreeCAD. | The original instruction are taken from [https://wiki.qt.io/QtCreator_and_PySide] but I (Ruslan) have problems with them. I adjusted them to FreeCAD. | ||
# Create with QT Designer a Dialog based on QDialog class. Save the name for example add-nps-pvc-pipe-dialog.ui | # Create with QT Designer a Dialog based on QDialog class. Save the name for example add-nps-pvc-pipe-dialog.ui. | ||
# Convert add-nps-pvc-pipe-dialog.ui to python code running | # Convert add-nps-pvc-pipe-dialog.ui to python code running | ||
#: pyside-uic add-nps-pvc-pipe-dialog.ui -o pipe-dialog.py | #: pyside-uic add-nps-pvc-pipe-dialog.ui -o pipe-dialog.py |
Revision as of 22:26, 30 December 2017
Pipes
The dimensions of the PVC pipes can be found here PVC_Pipe. Wikipedia on Nominal Pipe Size (NPS) [1],
We will use following guide line for position of a pipe: put one end (base) of the pipe onto the x-y plane. The center of the base has coordinate (0,0,0). The other end points to the positive direction of the z-axis.
Rationale: This is the same way FreeCAD places a new cylinder. We mimic the FreeCAD behavior for UI consistancy.
The default pipe length is 1ft. This is an arbitrary choice. When I use a macro, it will store the last length used by the user.
Elbows
Useful links: [2]
90° - degree elbows
Described by 3 dimensions: size, G,H,M. Other dimensions are derived from NPS pipe-dimensions.
Notations
- O.D. - outer diameter.
- Average I.D. - average inner diameter (why average?). This dimension determines the size of the pipe.
- Min. Wall - thickness of the pipe wall.
- Schedule - determines (indirectly) the thickness of the wall.
Notes
"O.D." = "Average I.D."+2"Min. Wall"
Tees
Described by
G, G1, H, H1, L, M, Some other dimensions are taken from the pipe dimensions.
Gallery
SCH80 1" PVC pipe - size:4kb - FreeCAD -File:Pvc-pipe-test.fcstd,
Elbow test file - size:17kb - FreeCAD -File:Pvc-elbow-90-test.fcstd,
Tee test file - size:24kb - FreeCAD -File:Pvc-tee-test.fcstd
Macros
Macros are now in a git repository [3]. The elbow macro depends now on other files. See README.md for installation instructions.
Pipes
To create Pipes 40 and 80 Schedule PVC pipes File:Create-pipe.fcmacro.
Elbows
Run File:Create-elbow-90.FCMacro with parameters OD, ID, G, H and M from a table. This macro depends now on other files from [4].
Tee
Run File:Create-tee.fcmacro and select a part from the table.
How to create a pipe macro
Steps to create GUI: The original instruction are taken from [5] but I (Ruslan) have problems with them. I adjusted them to FreeCAD.
- Create with QT Designer a Dialog based on QDialog class. Save the name for example add-nps-pvc-pipe-dialog.ui.
- Convert add-nps-pvc-pipe-dialog.ui to python code running
- pyside-uic add-nps-pvc-pipe-dialog.ui -o pipe-dialog.py
- or call
- pyside-uic --indent=0 add-nps-pvc-pipe-dialog.ui -o pipe-dialog.py
- to use tabs as indention.
- If you use the FreeCAD macro editor, pay attention that the indention of pyside-uic and of the editor are the same.
- Insert content of the methods setupUi(self, Dialog) and retranslateUi(self, Dialog) from pipe-dialog.py (How can I insert here a block of python code?) into your macro file.
FAQ
- Do we really want to 3D-print pipe fittings? Somehow I have doubt about mechanical properties of the 3D-printed products.
- Yes. For high pressure applications - 300 PSI - we would have to be very careful. For low pressure, such as 5 PSI, it's not a problem. Eventually, we want to refine printing techniques where our fittings can do what standard schedule 80 ABS fittings can do.