PVC Pipe and Fittings Library: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
 
(47 intermediate revisions by 4 users not shown)
Line 1: Line 1:
=Basics=
=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]].
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]].


=Pipes=
= Pipe dimensions used in literature =
 
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],
 
A pipe is described by its outer diameter '''OD''', its wall thickness '''Thk''' and its height<ref>We use height instead of length  in order to make a pipe similar to a FreeCAD cylinder. These particular choice of pipe dimensions make it more compatible with pipes from flamingo workbench.</ref> H.
 
[[File:pipe-dimensions.png]]
 
=== Workbench ===
 
To create a pipe, click [[File:CreatePipe.svg]] in OSE piping workbench.
Adjust CSV '''pipe.csv''' in ''tables'' directory within workbench directory to add new pipe dimensions to the list.
 
[[File:create-pipe-screenshot.png|thumb]]
[[File:create-pipe-cad-screenshot.png|thumb]]
 
== Notations used by others ==
* O.D. - outer diameter.
* O.D. - outer diameter.
* Average I.D. - average inner diameter (why average?). This dimension determines the size of the pipe.  
* Average I.D. - average inner diameter (why average?). This dimension determines the size of the pipe.  
Line 26: Line 9:
* Schedule - determines (indirectly) the thickness of the wall.
* Schedule - determines (indirectly) the thickness of the wall.


=Elbows=
=Basic Parts=
*1.5" elbow -
*2" coupler - [[File:2inchcoupler.fcstd]]


Useful links: [https://www.aetnaplastics.com/site_media/media/attachments/aetna_product_aetnaproduct/204/PVC%20Sch%2040%20Fittings%20Dimensions.pdf]
=Parts Generated Using the OSE Piping Workbench + Other=


== 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]],
An elbow is described by an angle alpha, outer pipe diameter POD, inner pipe diameter PID, H, J, M.
 
[[File:elbow-dimensions.png]]
 
=== Workbench ===
 
To create elbow click [[File:CreateElbow.svg]] in OSE piping workbench.
To add a new elbows, adjust '''elbow.csv''' in ''tables'' directory within workbench directory.
 
[[File:create-elbow-screenshot.png|thumb]]
[[File:create-elbow-cad-screenshot.png|thumb]]
 
= Couplings =
 
A (general) coupling is described by dimensions: POD, POD1, PID, PID1, L, M, M1, N. The dimensions POD1 and PID1 are not from a official specifications.
They are derived from pipe size and schedule. In a reducer coupling, the pipe dimensions on one side POD and PID differ from on the other side POD1 and PID1.
 
[[File:coupling-dimensions.png]]


=== Workbench ===
File:toiletparts.png| '''Toilet Parts''' - Includes closet flange, 3" elbow with 2" heel, long 3" elbow - [[File:toiletparts.fcstd]]
To create a coupling click [[File:CreateCoupling.svg]] in OSE piping workbench.  
To add a new coupling to the part list, adjust '''coupling.csv''' in ''tables'' directory within workbench directory.


[[File:create-coupling-screenshot.png|thumb]]
File:rotatabletrap.png |'''1.5" rotatable trap''' -  FreeCAD -[[File:15rottrap.fcstd]]
[[File:create-coupling-cad-screenshot.png|thumb]]


= Bushings =


Bushings are described by dimensions N, L and pipe dimensions. As pipe dimensions we use PID, PID1, and POD1.
File:2doublesanteetee.png |'''2" sanitary tee''' -  FreeCAD -[[File:2doublesantee.fcstd]]


[[File:bushing-dimensions.png]]
File:2doublefixtee.png |'''2" double fixture tee''' - Nibco site - [https://catalog.nibco.com/rfcconfirmation?name=all-categories&xcartid=27675] FreeCAD -[[File:2doublefixtee.fcstd]]


=== Macro ===


To create a bushing, click [[File:CreateBushing.svg]] in OSE piping workbench.  
File:3to15bushing.png |'''3" to 1.5" reducer bushing''' - FreeCAD -[[File:3to15bushing.fcstd]]
To add a new coupling to the part list, adjust '''bushing.csv''' in ''tables'' directory within workbench directory.


[[File:create-bushing-screenshot.png|thumb]]
File:3wye.png |'''3" wye''' - size:80kb - FreeCAD -[[File:3wye.fcstd]]
[[File:create-bushing-cad-screenshot.png|thumb]]


=Tees=
File:345streetbend.png |'''3" 45 degree street elbow''' - size:80kb - FreeCAD -[[File:345streetbend.fcstd]]


== Almost General Tees  ==
File:1FKHDAF.png|'''1.5" 45 degree street elbow''' - size:80kb - FreeCAD -[[File:1545streetbend.fcstd]]


Described by parameters G, G1, G2, H, H1, H2, M, M1, and pipe dimensions. As pipe dimensions we use POD, POD1, PID, and PID1.
File:15elbow.png |'''1.5" elbow''' - size:30kb - FreeCAD -[[File:15elbow.fcstd]]


[[File:tee-dimensions.png]]
File:2tee.png |'''2 inch tee''' - size: 25k  - FreeCAD -[[File:2tee.fcstd]]
 
 
=== Workbench ===
To create a tee click [[File:CreateTee.svg]] in OSE piping workbench.
To add a new tee to the part list, adjust '''tee.csv''' in ''tables'' directory within workbench directory.
 
[[File:create-tee-screenshot.png|thumb]]
[[File:create-tee-cad-screenshot.png|thumb]]
 
= Cross =
 
== Almost General Cross ==
 
Described by dimensions G, G1, G2, G3, H, H1, H2, H3, M, M1, and pipe dimensions. As pipe dimensions we use POD, POD1, PID, and PID1.
 
[[File:cross-dimensions.png]]
 
 
 
=== Workbench ===
To create a tee click [[File:CreateCross.svg]] in OSE piping workbench.
To add a new cross to the part list, adjust '''cross.csv''' in ''tables'' directory within workbench directory.
 
[[File:create-cross-screenshot.png|thumb]]
[[File:create-cross-cad-screenshot.png|thumb]]
 
= Corners =
 
== "Outer" Corner ==
An outer<ref>I use the word ''outer'', to emphasize that the pipes are put inside the corner.</ref> corner are described by dimensions G, H, M and pipe dimensions. As pipe dimensions we use POD and PID.
[[File:outer-corner-dimensions.png]]
 
=== Workbench ===
To create a corner click [[File:CreateOuterCorner.svg]] in OSE piping workbench.
To add a new corner to the part list, adjust '''outer-corner.csv''' in ''tables'' directory within workbench directory.
 
[[File:create-corner-screenshot.png|thumb]]
[[File:create-corner-cad-screenshot.png|thumb]]
 
=Genaerated Library Parts=
 
<gallery perrow=6>
File:create-pipe-cad-screenshot.png |'''SCH40 1"  PVC pipe''' - size:5kb - FreeCAD -[[File:pipe-test.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-elbow-cad-screenshot.png |'''Elbow test file.''' Here alpha° is 45°. - size:21kb - FreeCAD -[[File:elbow-test.fcstd]],
Line 131: Line 50:


=Library of STEP Downloads from McMaster Carr=
=Library of STEP Downloads from McMaster Carr=
Comparable in size to generated parts - except for some parts which are way too heavy.
Comparable in size to generated parts - except for some parts which are way too heavy.
<gallery perrow=6>
<gallery perrow=6>


File:elbow.png |'''1" PVC Elbow''' - size:19kb - FreeCAD -[[File:1"-pvc-elbow.fcstd]],
File:elbow.png |'''1" PVC Elbow''' - size:19kb - FreeCAD -[[File:1"-pvc-elbow.fcstd]],
Line 148: Line 69:
File:2"-elbow.jpg |'''2" PVC Elbow''' - size:157kb - FreeCAD -[[File:2"-elbow.fcstd]],
File:2"-elbow.jpg |'''2" PVC Elbow''' - size:157kb - FreeCAD -[[File:2"-elbow.fcstd]],


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


File:2"-tee-short.jpg |'''2" PVC Tee - Short Nonstandard''' - size:4kb - STEP -[https://www.mcmaster.com/#4881k26/=1bcheo0] - FreeCAD - [[File:2"-pvc-tee-short.fcstd]]
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)


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


</gallery>
</gallery>
= OSE Piping Workbench =
[[File:OsePipingWorkbenchIcon.svg]]
The installation is easier than the installation of Macros.
$ mkdir ~/.FreeCAD/Mod
$ cd ~/.FreeCAD/Mod
$ git clone https://github.com/rkrenzler/ose-piping-workbench.git
Implemented are:
* pipe
* coupling
* outer corner
[[File:OsePiningWorkbenchScreenshot.png|600px]]
=Macros=
Macros are now in a git repository for the macros is [https://github.com/rkrenzler/ose-piping-library https://github.com/rkrenzler/ose-piping-library]. The CSV tables with parameters can be found in
[https://github.com/rkrenzler/ose-piping-library-data https://github.com/rkrenzler/ose-piping-library-data]
FreeCAD community provides a little tutorials for  [https://www.freecadweb.org/wiki/Macros creation] and [https://www.freecadweb.org/wiki/How_to_install_macros installation] of macros.
== Installation ==
The video isntructions are here [https://youtu.be/9FlW4C4nk68].
<html><iframe width="560" height="315" src="https://www.youtube.com/embed/9FlW4C4nk68" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></html>
# Download ose-piping-library from [https://github.com/rkrenzler/ose-piping-library-data]. To run the macros you only need the content of the directory '''macros'''. The '''macros''' directory contains macro files with extension .FCMacro, drawing with dimensions .png and some .csv tables with part parameters for testing. The more realistic .CSV tables can be downloaded from [https://github.com/rkrenzler/ose-piping-library-data].
# Determine the directory where FreeCAD looks for macros: Menu "Edit"->"Preferences"->"Macro". Look at the settings "Macro path". It is for example "/home/ose-developer/.FreeCAD/Macro/".
#: [[File:freecad-macro-directory.png]]
# Now copy all files from the downloaded '''macros''' directory to the FreeCAD macro directory. In this example "/home/ose-developer/.FreeCAD/Macro/".
# Select a FreeCAD menu item "Macro"->"Macros..." then select the corresponding macro -- it startart with "create-..." and click "Create".
== 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.
== Remarks about the coupling macro ==
To create a simple coupling or a reduced we internally use a more general coupling.
This 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.
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:coupling-calculations.png]]
The offset a1 is calculated in such a way, that the thinest part of the middle section is not thinner than the walls on of the both sockets.
Lengths a2, a3, a4 and angle b1 are derived from the dimensions and are only used to calculate a1.


= FAQ =
= FAQ =
Line 239: Line 86:
* 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/anealing, composite filaments, and SLA or SLS Printers, very durable parts can be made
** 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
 
 
 
 
 
=See Also=
 
*
 
 
 
 
=Useful Links=


*
[[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