omdl  v0.9.5
OpenSCAD Mechanical Design Library
utility_pipe_emt.scad
Go to the documentation of this file.
1 //! [utility_pipe] Electrical metalic conduit; emt; thin wall.
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 (emt)
31  \amu_define group_brief ([utility_pipe] Electrical metalic conduit; emt; thin wall.)
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_oi.svg" types="html,latex")
46  \amu_text
47  (
48  \image html ${PATH_NAME}/diagrams/pipe_oi.svg "parameters"
49  \image latex ${PATH_NAME}/diagrams/pipe_oi.svg "parameters"
50  )
51 
52  \amu_define output_scad (false)
53  \amu_define output_console (false)
54 
55  \amu_define title (Electrical metalic conduit)
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  | emt |
68  | thin wall |
69 
70 *******************************************************************************/
71 
72 //! <map> emt 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  ["id_in", "internal diameter"],
81  ["id_mm", "internal diameter"]
82 ];
83 
84 //! <table> emt structural data table rows.
85 //! \hideinitializer
87 [
88  [ "3/8", "10",l_in(0.577),l_mm( 14.7),l_in(0.493),l_mm( 12.5)],
89  [ "1/2", "16",l_in(0.706),l_mm( 17.9),l_in(0.622),l_mm( 15.8)],
90  [ "3/4", "21",l_in(0.992),l_mm( 23.4),l_in(0.824),l_mm( 20.9)],
91  [ "1", "27",l_in(1.163),l_mm( 29.5),l_in(1.049),l_mm( 26.6)],
92  ["1-1/4", "35",l_in(1.510),l_mm( 38.4),l_in(1.380),l_mm( 35.1)],
93  ["1-1/2", "41",l_in(1.740),l_mm( 44.2),l_in(1.610),l_mm( 40.9)],
94  [ "2", "53",l_in(2.197),l_mm( 55.8),l_in(2.067),l_mm( 52.5)],
95  ["2-1/2", "63",l_in(2.875),l_mm( 73.0),l_in(2.731),l_mm( 69.4)],
96  [ "3", "78",l_in(3.500),l_mm( 88.9),l_in(3.356),l_mm( 85.2)],
97  ["3-1/2", "91",l_in(4.000),l_mm(101.6),l_in(3.834),l_mm( 97.4)],
98  [ "4","103",l_in(4.500),l_mm(114.3),l_in(4.334),l_mm(110.1)]
99 ];
100 
101 //! @}
102 //! @}
103 
104 //----------------------------------------------------------------------------//
105 // openscad-amu auxiliary scripts
106 //----------------------------------------------------------------------------//
107 
108 /*
109 BEGIN_SCOPE table;
110  BEGIN_OPENSCAD;
111  include <omdl-base.scad>;
112  include <database/component/structural/utility_pipe_emt.scad>;
113 
114  // temporary override for table presentation.
115  // function l_mm(v) = round_s(length(v,"mm"), 4);
116 
117  length_unit_base = "in";
118 
119  n = true; // number
120  hi = true; // include heading id
121  ht = true; // include heading description
122 
123  tr = dtr_structural_utility_pipe_emt;
124  tc = dtc_structural_utility_pipe_emt;
125 
126  table_write( tr, tc, number=n, heading_id=hi, heading_text=ht );
127 
128  // end_include
129  END_OPENSCAD;
130 
131  BEGIN_MFSCRIPT;
132  include --path "${INCLUDE_PATH}" {var_init,var_gen_term}.mfs;
133  include --path "${INCLUDE_PATH}" scr_make_mf.mfs;
134  END_MFSCRIPT;
135 END_SCOPE;
136 */
137 
138 //----------------------------------------------------------------------------//
139 // end of file
140 //----------------------------------------------------------------------------//
dtr_structural_utility_pipe_emt
dtc_structural_utility_pipe_emt
function l_in(v)
Shorthand length conversion for inches.
function l_mm(v)
Shorthand length conversion for millimeters.