omdl  v0.9.5
OpenSCAD Mechanical Design Library
utility_pipe_pvc.scad
Go to the documentation of this file.
1 //! [utility_pipe] Polyvinyl chloride pipe; pvc; sch40 sch80 sch120.
2 /***************************************************************************//**
3  \file
4  \author Roy Allen Sutton
5  \date 2024
6 
7  \copyright
8 
9  This file is part of [omdl] (https://github.com/royasutton/omdl),
10  an OpenSCAD mechanical design library.
11 
12  The \em omdl is free software; you can redistribute it and/or modify
13  it under the terms of the [GNU Lesser General Public License]
14  (http://www.gnu.org/licenses/lgpl.html) as published by the Free
15  Software Foundation; either version 2.1 of the License, or (at
16  your option) any later version.
17 
18  The \em omdl is distributed in the hope that it will be useful,
19  but WITHOUT ANY WARRANTY; without even the implied warranty of
20  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
21  Lesser General Public License for more details.
22 
23  You should have received a copy of the GNU Lesser General Public
24  License along with the \em omdl; if not, write to the Free Software
25  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
26  02110-1301, USA; or see <http://www.gnu.org/licenses/>.
27 
28  \details
29 
30  \amu_define group_name (pvc)
31  \amu_define group_brief ([utility_pipe] Polyvinyl chloride pipe; pvc; sch40 sch80 sch120.)
32 
33  \amu_include (include/amu/pgid_path_pstem_pg.amu)
34  \amu_text parent (${parent}_Utility_Pipe)
35 *******************************************************************************/
36 
37 //----------------------------------------------------------------------------//
38 
39 /***************************************************************************//**
40  \amu_include (include/amu/group_in_parent_start.amu)
41  \amu_include (include/amu/includes_required.amu)
42 
43  \details
44 
45  \amu_copy (files="diagrams/pipe_ot.svg" types="html,latex")
46  \amu_text
47  (
48  \image html ${PATH_NAME}/diagrams/pipe_ot.svg "parameters"
49  \image latex ${PATH_NAME}/diagrams/pipe_ot.svg "parameters"
50  )
51 
52  \amu_define output_scad (false)
53  \amu_define output_console (false)
54 
55  \amu_define title (Polyvinyl chloride pipe)
56  \amu_define notes_table ()
57 
58  \amu_include (include/amu/scope_table.amu)
59 
60  \note The measurements in the table above are shown with:
61  \c length_unit_base="in". These measurements will
62  convert when the base units are changed. See \ref units_length
63  for more information on setting the base units.
64 
65  | References: |
66  |:--------------------|
67  | pvc |
68  | sch40 sch80 sch120 |
69 
70 *******************************************************************************/
71 
72 //! <map> pvc structural data table columns map.
73 //! \hideinitializer
75 [
76  ["ns", "nominal size"],
77  ["ns_mm", "nominal size"],
78  ["od_in", "outside diameter"],
79  ["od_mm", "outside diameter"],
80  ["t_40", "wall thickness in"],
81  ["t_80", "wall thickness in"],
82  ["t_120", "wall thickness in"]
83 ];
84 
85 //! <table> pvc structural data table rows.
86 //! \hideinitializer
88 [
89  [ "1/8", "3",l_in( 0.41),l_mm( 10.29),l_in(0.068),l_in(0.095), undef],
90  [ "1/4", "6",l_in( 0.54),l_mm( 13.72),l_in(0.088),l_in(0.119), undef],
91  [ "3/8", "10",l_in( 0.68),l_mm( 17.15),l_in(0.091),l_in(0.126), undef],
92  [ "1/2", "15",l_in( 0.84),l_mm( 21.34),l_in(0.109),l_in(0.147),l_in(0.170)],
93  [ "3/4", "20",l_in( 1.05),l_mm( 26.67),l_in(0.113),l_in(0.154),l_in(0.170)],
94  [ "1", "25",l_in( 1.32),l_mm( 33.40),l_in(0.113),l_in(0.179),l_in(0.200)],
95  ["1-1/4", "32",l_in( 1.66),l_mm( 42.20),l_in(0.140),l_in(0.191),l_in(0.215)],
96  ["1-1/2", "40",l_in( 1.90),l_mm( 48.30),l_in(0.145),l_in(0.200),l_in(0.225)],
97  [ "2", "50",l_in( 2.38),l_mm( 60.30),l_in(0.154),l_in(0.218),l_in(0.250)],
98  ["2-1/2", "65",l_in( 2.88),l_mm( 73.00),l_in(0.203),l_in(0.276),l_in(0.300)],
99  [ "3", "80",l_in( 3.50),l_mm( 89.00),l_in(0.216),l_in(0.300),l_in(0.350)],
100  ["3-1/2", "90",l_in( 4.00),l_mm(102.00),l_in(0.226),l_in(0.318), undef],
101  [ "4","100",l_in( 4.50),l_mm(114.00),l_in(0.237),l_in(0.337),l_in(0.437)],
102  [ "5","125",l_in( 5.56),l_mm(141.00),l_in(0.258),l_in(0.375), undef],
103  [ "6","150",l_in( 6.63),l_mm(168.00),l_in(0.280),l_in(0.432),l_in(0.562)],
104  [ "8","200",l_in( 8.63),l_mm(219.00),l_in(0.322),l_in(0.500), undef],
105  [ "10","250",l_in(10.75),l_mm(273.00),l_in(0.365),l_in(0.593), undef],
106  [ "12","300",l_in(12.75),l_mm(324.00),l_in(0.406),l_in(0.687), undef],
107  [ "14","350",l_in(14.00),l_mm(355.60),l_in(0.437),l_in(0.750), undef],
108  [ "16","400",l_in(16.00),l_mm(406.40),l_in(0.500),l_in(0.843), undef],
109  [ "18","450",l_in(18.00),l_mm(457.20),l_in(0.562),l_in(0.937), undef],
110  [ "20","500",l_in(20.00),l_mm(508.00),l_in(0.593),l_in(1.031), undef],
111  [ "24","600",l_in(24.00),l_mm(610.00),l_in(0.687),l_in(1.218), undef]
112 ];
113 
114 //! @}
115 //! @}
116 
117 //----------------------------------------------------------------------------//
118 // openscad-amu auxiliary scripts
119 //----------------------------------------------------------------------------//
120 
121 /*
122 BEGIN_SCOPE table;
123  BEGIN_OPENSCAD;
124  include <omdl-base.scad>;
125  include <database/component/structural/utility_pipe_pvc.scad>;
126 
127  // temporary override for table presentation.
128  // function l_mm(v) = round_s(length(v,"mm"), 4);
129 
130  length_unit_base = "in";
131 
132  n = true; // number
133  hi = true; // include heading id
134  ht = true; // include heading description
135 
136  tr = dtr_structural_utility_pipe_pvc;
137  tc = dtc_structural_utility_pipe_pvc;
138 
139  table_write( tr, tc, number=n, heading_id=hi, heading_text=ht );
140 
141  // end_include
142  END_OPENSCAD;
143 
144  BEGIN_MFSCRIPT;
145  include --path "${INCLUDE_PATH}" {var_init,var_gen_term}.mfs;
146  include --path "${INCLUDE_PATH}" scr_make_mf.mfs;
147  END_MFSCRIPT;
148 END_SCOPE;
149 */
150 
151 //----------------------------------------------------------------------------//
152 // end of file
153 //----------------------------------------------------------------------------//
dtr_structural_utility_pipe_pvc
dtc_structural_utility_pipe_pvc
function l_in(v)
Shorthand length conversion for inches.
function l_mm(v)
Shorthand length conversion for millimeters.