omdl  v0.9.5
OpenSCAD Mechanical Design Library
utility_pipe_rsc.scad
Go to the documentation of this file.
1 //! [utility_pipe] Rigid steel conduit; rsc; heavy 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 (rsc)
31  \amu_define group_brief ([utility_pipe] Rigid steel conduit; rsc; heavy 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 (Rigid steel 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  | rsc |
68  | heavy wall |
69 
70 *******************************************************************************/
71 
72 //! <map> rsc 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> rsc structural data table rows.
85 //! \hideinitializer
87 [
88  [ "3/8", "10",l_in(0.675),l_mm( 17.1),l_in(0.493),l_mm( 12.5)],
89  [ "1/2", "15",l_in(0.840),l_mm( 21.3),l_in(0.632),l_mm( 16.0)],
90  [ "3/4", "20",l_in(1.050),l_mm( 26.7),l_in(0.836),l_mm( 21.3)],
91  [ "1", "25",l_in(1.315),l_mm( 33.4),l_in(1.063),l_mm( 27.0)],
92  ["1-1/4", "32",l_in(1.660),l_mm( 42.2),l_in(1.394),l_mm( 35.4)],
93  ["1-1/2", "40",l_in(1.900),l_mm( 48.3),l_in(1.624),l_mm( 41.3)],
94  [ "2", "50",l_in(2.375),l_mm( 60.3),l_in(2.083),l_mm( 52.9)],
95  ["2-1/2", "60",l_in(2.875),l_mm( 73.0),l_in(2.489),l_mm( 63.2)],
96  [ "3", "80",l_in(3.500),l_mm( 88.9),l_in(3.090),l_mm( 78.5)],
97  ["3-1/2", "90",l_in(4.000),l_mm(101.6),l_in(3.570),l_mm( 90.7)],
98  [ "4","100",l_in(1.500),l_mm(114.3),l_in(4.050),l_mm(102.9)],
99  [ "5","125",l_in(5.563),l_mm(141.3),l_in(5.073),l_mm(128.9)],
100  [ "6","150",l_in(6.625),l_mm(168.3),l_in(6.093),l_mm(154.8)]
101 ];
102 
103 //! @}
104 //! @}
105 
106 //----------------------------------------------------------------------------//
107 // openscad-amu auxiliary scripts
108 //----------------------------------------------------------------------------//
109 
110 /*
111 BEGIN_SCOPE table;
112  BEGIN_OPENSCAD;
113  include <omdl-base.scad>;
114  include <database/component/structural/utility_pipe_rsc.scad>;
115 
116  // temporary override for table presentation.
117  // function l_mm(v) = round_s(length(v,"mm"), 4);
118 
119  length_unit_base = "in";
120 
121  n = true; // number
122  hi = true; // include heading id
123  ht = true; // include heading description
124 
125  tr = dtr_structural_utility_pipe_rsc;
126  tc = dtc_structural_utility_pipe_rsc;
127 
128  table_write( tr, tc, number=n, heading_id=hi, heading_text=ht );
129 
130  // end_include
131  END_OPENSCAD;
132 
133  BEGIN_MFSCRIPT;
134  include --path "${INCLUDE_PATH}" {var_init,var_gen_term}.mfs;
135  include --path "${INCLUDE_PATH}" scr_make_mf.mfs;
136  END_MFSCRIPT;
137 END_SCOPE;
138 */
139 
140 //----------------------------------------------------------------------------//
141 // end of file
142 //----------------------------------------------------------------------------//
dtc_structural_utility_pipe_rsc
dtr_structural_utility_pipe_rsc
function l_in(v)
Shorthand length conversion for inches.
function l_mm(v)
Shorthand length conversion for millimeters.