PVC Pipe and Fittings Library: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
 
(155 intermediate revisions by 4 users not shown)
Line 1: Line 1:
=Pipes=
=Basics=
The dimensions of the PVC pipes can be found here [[PVC_Pipe]].
Wikipedia on Nominal Pipe Size (NPS) [https://en.wikipedia.org/wiki/Nominal_Pipe_Size],


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.
This is a library of all the current PVC Pipe and Fittings that have been made in freecad for OSE. Many fittings can be created using [[OSE Piping Workbench]].


Rationale: This is the same way FreeCAD places a new cylinder. We mimic the FreeCAD behavior for UI consistancy.
= Pipe dimensions used in literature =
* 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.


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.
=Basic Parts=
== Macros ==
*1.5" elbow -
To create Pipes 40 and 80 Schedule PVC pipes use [[File:create-pipe.fcmacro]].
*2" coupler - [[File:2inchcoupler.fcstd]]


[[File:pvc-pipe-gui-screenshot.png|thumb]]
=Parts Generated Using the OSE Piping Workbench + Other=
[[File:pvc-pipe-cad-screenshot.png|thumb]]


=Elbows=
<gallery perrow=6>
File:3elbow.png |'''3" PVC Elbow'''. Standard height of 4.75" as in [https://www.mcmaster.com/2389K29/]. - size:20kb - FreeCAD -[[File:3"-pvc-elbow.fcstd]],


Useful links: [https://www.aetnaplastics.com/site_media/media/attachments/aetna_product_aetnaproduct/204/PVC%20Sch%2040%20Fittings%20Dimensions.pdf]
File:toiletparts.png| '''Toilet Parts''' - Includes closet flange, 3" elbow with 2" heel, long 3" elbow - [[File:toiletparts.fcstd]]


==90° - Elbows ==
File:rotatabletrap.png |'''1.5" rotatable trap''' -  FreeCAD -[[File:15rottrap.fcstd]]
Described by 3 dimensions:
pipe size, schedule, G,H,M. Other dimensions are derived from NPS pipe-dimensions.


One can create 90° with alpha°-elbow macro. Just set alpha=90° and J = H.
I do not know why my parameter list uses "H" for 90°-elbows and "J" for
other elbows.


=== Macro ===
File:2doublesanteetee.png |'''2" sanitary tee''' -  FreeCAD -[[File:2doublesantee.fcstd]]
To create an 90° elbow, run [[File:create-elbow-90.FCMacro]].


[[File:pvc-elbow-90-gui-screenshot.png|thumb]]
File:2doublefixtee.png |'''2" double fixture tee''' - Nibco site - [https://catalog.nibco.com/rfcconfirmation?name=all-categories&xcartid=27675] FreeCAD -[[File:2doublefixtee.fcstd]]
[[File:pvc-elbow-90-cad-screenshot.png|thumb]]


==alpha° - Elbows ==
alpha, pipe size, schedule, H,J,M. Other dimensions are derived from NPS pipe-dimensions.


== Macro ===
File:3to15bushing.png |'''3" to 1.5" reducer bushing''' - FreeCAD -[[File:3to15bushing.fcstd]]
To create an elbow with an arbitrary alpha from 0° to 180°, run [[File:create-elbow-alpha.FCMacro]].


[[File:pvc-elbow-alpha-gui-screenshot.png|thumb]]
File:3wye.png |'''3" wye''' - size:80kb - FreeCAD -[[File:3wye.fcstd]]
[[File:pvc-elbow-alpha-cad-screenshot.png|thumb]]


= Couplings =
File:345streetbend.png |'''3" 45 degree street elbow''' - size:80kb - FreeCAD -[[File:345streetbend.fcstd]]
=== General (Centric) ===


A general coupling is used to create reducer and simple couplings.
File:1FKHDAF.png|'''1.5" 45 degree street elbow''' - size:80kb - FreeCAD -[[File:1545streetbend.fcstd]]


The general coupling is described by 9 dimensions: POD, PID, POD1, PID1, X1, X2, N, M, M1. The dimensions POD, PID, POD1, and PID1 are derived from the pipe sizes.
File:15elbow.png |'''1.5" elbow''' - size:30kb - FreeCAD -[[File:15elbow.fcstd]]
The are abbreviations of '''P'''ipe '''O'''uter '''D'''iameter and '''P'''ipe '''I'''nner '''D'''iameter.
The dimensions X1 and X2 are not official dimension names.  


File:2tee.png |'''2 inch tee''' - size: 25k  - FreeCAD -[[File:2tee.fcstd]]
File:create-pipe-cad-screenshot.png |'''SCH40 1"  PVC pipe''' - size:5kb - FreeCAD -[[File:pipe-test.fcstd]],
File:create-elbow-cad-screenshot.png |'''Elbow test file.''' Here alpha° is 45°. - size:21kb - FreeCAD -[[File:elbow-test.fcstd]],
File:create-coupling-cad-screenshot.png |'''1"-1/2" coupling test file''' - size:17kb - FreeCAD -[[File:coupling-test.fcstd]]
File:create-bushing-cad-screenshot.png |'''1"-1/2" bushing''' - size:21kb - FreeCAD -[[File:bushing-test.fcstd]]
File:create-tee-cad-screenshot.png |'''1" tee test file''' - size:28kb - FreeCAD -[[File:tee-test.fcstd]]
File:create-cross-cad-screenshot.png |'''1" cross test file''' - size:34kb - FreeCAD -[[File:cross-test.fcstd]]
File:create-corner-cad-screenshot.png |'''1" outer corner test file''' - size:30kb - FreeCAD -[[File:corner-test.fcstd]]
</gallery>


=Library of STEP Downloads from McMaster Carr=


[[File:coupling-calculations.png]]
Comparable in size to generated parts - except for some parts which are way too heavy.
<gallery perrow=6>


The offset a1 is calculated in such a way, that the thinest part of the middle section is not smaller that walls on of the sockets on both sides.
Lengths a2, a3, a4 and angle b1 are derived from the dimensions and are only used to calculate a1.


=== Simple Coupling ===
File:elbow.png |'''1" PVC Elbow''' - size:19kb - FreeCAD -[[File:1"-pvc-elbow.fcstd]],
A general coupling is described by 10 Dimensions: POD1, PID1, L, M, N. The dimensions POD1 and PID1 are not from a official specifications.
They are derived from pipe size and schedule.


[[File:simple-coupling.png]]
File:elbowcomp.jpg |Note slight difference compared to generated - 0.15" wall for generated, 0.12 for downloaded.


===Reducer===
File:1"-pvc-tee.jpg |'''1" PVC Tee''' - size:25kb - FreeCAD -[[File:1"-pvc-tee.fcstd]],
The reducer coupling is described by 8 Dimensions: 4 Pipe dimensions (they follows from pipe sizes and schedule), L, M, M1, and N.


[[File:coupling-dimensions.png]]
File:1"-pvc-valve.jpg |'''1" PVC Valve''' - size:500kb - FreeCAD -[[File:1"-pvc-valve.fcstd]],


=Notations=
File:1"-34"-reducer.jpg |'''1"-3/4" PVC Bushing''' - size:13kb - FreeCAD -[[File:1"-34"-reducer.fcstd]],
* 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=
File:1"-cross.jpg |'''1" PVC Cross''' - size:13kb - FreeCAD -[[File:1"-cross.fcstd]],
"O.D." = "Average I.D."+2"Min. Wall"


=Tees=
File:2"-elbow.jpg |'''2" PVC Elbow''' - size:157kb - FreeCAD -[[File:2"-elbow.fcstd]],
== Almost General Tees  ==
Described by parameters G, G1, G2, H, H1, H2, M, M1, and pipe dimensions. As pipe dimensions we use POD, POD1, PID, PID1.


[[File:tee-dimensions.png]]
File:2"-tee.png |'''2" PVC Tee''' -157k - STEP -[https://www.mcmaster.com/#2389k23/=1bcgk5c] - FreeCAD - [[File:2"-pvc-tee.fcstd]]


== Simple Tees ==
File:2"-elbow-short.png |'''2" PVC Elbow - Short Nonstandard''' - size:4kb - STEP -[https://www.mcmaster.com/#4881k26/=1bcheo0] - FreeCAD - [[File:2"-pvc-tee-short.fcstd]] (file misnamed)
Described by parameters G, G1, H, H1, L, M, and pipe dimensions. As pipe dimensions we use POD, POD.


[[File:simple-tee-dimensions.png]]
File:2"-3"-bushing.jpg |'''2"-3" bushing''' - size:161kb - STEP -[https://www.mcmaster.com/#2389k53/=1bchs2a] - FreeCAD - [[File:2"-3"-bushing.fcstd]]


=Gallery=
File:3"-2"-reducer.jpg |'''2"-3" reducer. Note difference between a reducer and a bushing (last one)''' - size:161kb - Menards -[https://www.menards.com/main/plumbing/rough-plumbing/pipe-tubing-hoses-fittings-accessories/fittings/pvc-fittings/nibco-reg-3x2-reducing-pvc-coupling-dwv/p-1444449202566-c-8557.htm?tid=-6388088944482732916&ipos=4] - FreeCAD - [[File:3"-2"-reducer.fcstd]]
<gallery perrow=6>
File:pvc-pipe-cad-screenshot.png |'''SCH80 1" PVC pipe''' - size:4kb - FreeCAD -[[File:pvc-pipe-test.fcstd]],
File:pvc-elbow-90-cad-screenshot.png |'''90°-elbow test file''' - size:17kb - FreeCAD -[[File:pvc-elbow-90-test.fcstd]],
File:pvc-elbow-alpha-cad-screenshot.png |'''alpha°-elbow test file. Here alpha° is 45°.''' - size:19kb - FreeCAD -[[File:pvc-elbow-alpha-test.fcstd]],
File:pvc-tee-cad-screenshot.png |'''Tee test file''' - size:24kb - FreeCAD -[[File:pvc-tee-test.fcstd]]
File:pvc-coupling-cad-screenshot.png |'''Coupling test file''' - size:12kb - FreeCAD -[[File:pvc-coupling-test.fcstd]]


</gallery>
File:3"-2"-reducer.jpg |'''2"-1" reducer.''' - size:10kb - STEP -[https://www.mcmaster.com/#4880k338/=1bemizt] - FreeCAD - [[File:2"-1"-PVC-reducer.fcstd]]


=Macros=


Macros are now in a git repository [https://github.com/rkrenzler/ose-piping-library].
</gallery>
The elbow macro depends now on other files. See README.md for installation instructions.


== Tee ==
= FAQ =
Run [[File:create-tee.fcmacro]] and select a part from the table.
[[File:pvc-tee-gui-screenshot.png|thumb]]
[[File:pvc-tee-cad-screenshot.png|thumb]]
 
== How to create a pipe macro ==
Steps to create GUI:
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.
# 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.
* 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.
*: 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.
** Also with things such as part baking/[[FDM 3D Print Annealing | annealing]], composite filaments, and SLA or SLS Printers, very durable parts can be made.  Granted i agree proper testing, and potentially getting "Listed" or whatever the [[Building Code]] / [[Insurance]] stuff would need
[[Category: Materials]] [[Category: Plumbing]]

Latest revision as of 19:16, 25 August 2023

Basics

This is a library of all the current PVC Pipe and Fittings that have been made in freecad for OSE. Many fittings can be created using OSE Piping Workbench.

Pipe dimensions used in literature

  • 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.

Basic Parts

Parts Generated Using the OSE Piping Workbench + Other

Library of STEP Downloads from McMaster Carr

Comparable in size to generated parts - except for some parts which are way too heavy.

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.
    • Also with things such as part baking/ annealing, composite filaments, and SLA or SLS Printers, very durable parts can be made. Granted i agree proper testing, and potentially getting "Listed" or whatever the Building Code / Insurance stuff would need