omdl  v0.9.5
OpenSCAD Mechanical Design Library
utility_pipe_ip.scad
Go to the documentation of this file.
1 //! [utility_pipe] Iron pipe; ip; steel.
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 (ip)
31  \amu_define group_brief ([utility_pipe] Iron pipe; ip; steel.)
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 (Iron 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  | ip |
68  | steel |
69 
70 *******************************************************************************/
71 
72 //! <map> ip 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 schedule 40"],
81  ["t_80", "wall thickness schedule 40"],
82  ["t_160", "wall thickness schedule 40"],
83  ["t_xx", "wall thickness schedule 40"]
84 ];
85 
86 //! <table> ip structural data table rows.
87 //! \hideinitializer
89 [
90  [ "1/2", "15",l_in( 0.840),l_mm( 21.0),l_in(0.109),l_in(0.147),l_in(0.187),l_in(0.294)],
91  [ "3/4", "20",l_in( 1.050),l_mm( 27.0),l_in(0.113),l_in(0.154),l_in(0.218),l_in(0.308)],
92  [ "1", "25",l_in( 1.315),l_mm( 33.0),l_in(0.133),l_in(0.179),l_in(0.250),l_in(0.358)],
93  ["1-1/4", "32",l_in( 1.660),l_mm( 42.0),l_in(0.140),l_in(0.191),l_in(0.250),l_in(0.382)],
94  ["1-1/2", "40",l_in( 1.900),l_mm( 48.3),l_in(0.145),l_in(0.200),l_in(0.281),l_in(0.400)],
95  [ "2", "50",l_in( 2.375),l_mm( 60.3),l_in(0.154),l_in(0.218),l_in(0.343),l_in(0.436)],
96  ["2-1/2", "65",l_in( 2.875),l_mm( 73.0),l_in(0.203),l_in(0.276),l_in(0.375),l_in(0.552)],
97  [ "3", "80",l_in( 3.500),l_mm( 89.0),l_in(0.216),l_in(0.300),l_in(0.438),l_in(0.600)],
98  ["3-1/2", "90",l_in( 4.000),l_mm(102.0),l_in(0.216),l_in(0.300), undef, undef],
99  [ "4","100",l_in( 4.500),l_mm(114.0),l_in(0.237),l_in(0.337),l_in(0.531),l_in(0.674)],
100  [ "5","125",l_in( 5.563),l_mm(141.0),l_in(0.258),l_in(0.375),l_in(0.625),l_in(0.750)],
101  [ "6","150",l_in( 6.625),l_mm(168.0),l_in(0.280),l_in(0.432),l_in(0.718),l_in(0.864)],
102  [ "8","200",l_in( 8.625),l_mm(219.0),l_in(0.322),l_in(0.500),l_in(0.875),l_in(0.906)],
103  [ "10","250",l_in(10.750),l_mm(273.0),l_in(0.365),l_in(0.593),l_in(1.125), undef],
104  [ "12","300",l_in(12.750),l_mm(324.0),l_in(0.406),l_in(0.687),l_in(1.312), undef],
105  [ "14","350",l_in(14.000),l_mm(356.0),l_in(0.438),l_in(0.750),l_in(1.406), undef],
106  [ "16","400",l_in(16.000),l_mm(406.0),l_in(0.500),l_in(0.843),l_in(1.596), undef],
107  [ "18","450",l_in(18.000),l_mm(457.0),l_in(0.562),l_in(0.937),l_in(1.781), undef],
108  [ "20","500",l_in(20.000),l_mm(508.0),l_in(0.593),l_in(0.937),l_in(1.968), undef],
109  [ "24","600",l_in(24.000),l_mm(610.0),l_in(0.687),l_in(1.218),l_in(2.343), undef]
110 ];
111 
112 //! @}
113 //! @}
114 
115 //----------------------------------------------------------------------------//
116 // openscad-amu auxiliary scripts
117 //----------------------------------------------------------------------------//
118 
119 /*
120 BEGIN_SCOPE table;
121  BEGIN_OPENSCAD;
122  include <omdl-base.scad>;
123  include <database/component/structural/utility_pipe_ip.scad>;
124 
125  // temporary override for table presentation.
126  // function l_mm(v) = round_s(length(v,"mm"), 4);
127 
128  length_unit_base = "in";
129 
130  n = true; // number
131  hi = true; // include heading id
132  ht = true; // include heading description
133 
134  tr = dtr_structural_utility_pipe_ip;
135  tc = dtc_structural_utility_pipe_ip;
136 
137  table_write( tr, tc, number=n, heading_id=hi, heading_text=ht );
138 
139  // end_include
140  END_OPENSCAD;
141 
142  BEGIN_MFSCRIPT;
143  include --path "${INCLUDE_PATH}" {var_init,var_gen_term}.mfs;
144  include --path "${INCLUDE_PATH}" scr_make_mf.mfs;
145  END_MFSCRIPT;
146 END_SCOPE;
147 */
148 
149 //----------------------------------------------------------------------------//
150 // end of file
151 //----------------------------------------------------------------------------//
dtr_structural_utility_pipe_ip
dtc_structural_utility_pipe_ip
function l_in(v)
Shorthand length conversion for inches.
function l_mm(v)
Shorthand length conversion for millimeters.