General Program Information
Wiki Markup |
---|
h3. General Program Information {float:left|border=2px solid black} [!1b.bmp|width=280px!|AutoCAD Sedimentation Tank Inlet Slopes Program][!1a.bmp|width=280px!|AutoCAD Sedimentation Tank Inlet Slopes Program] Free Rotation Used {float} \\ \\ h3. Input Definitions h5. Inputs Needed to Call the Inlet Slope Function origin - A 3*1 matrix with |
Input Definitions
Inputs Needed to Call the Inlet Slope Function
origin - A 3*1 matrix with x,y,z
...
positions
...
corresponding
...
to
...
the
...
point
...
where
...
the
...
inlet
...
slope
...
will
...
be
...
drawn.
...
Length
...
-
...
length
...
of
...
the
...
slopes,
...
generally
...
the
...
length
...
of
...
the
...
sedimentation
...
tank
...
Width
...
-
...
width
...
of
...
the
...
slopes,
...
generally
...
the
...
width
...
of
...
the
...
sedimentation
...
tank
...
lorifice - length of the opening that will allow inlet flow
horifice - height of the opening that will allow inlet flow
thick - thickness of the slopes
n - number of orifices and sections, one section contains one orifice
bigslope - slope of the inlet in degrees
Inputs Defined within the Inlet Slope Function
dim =
- x: Length/2
- y: thick
- z: (Width/2)/cos(bigslope)
boxdim = origin + dim
orificeorigin =
- x: origin0 + dim0/2 - lorifice/2
- y: origin1
- z: origin2
orificedim =
- x: origin0 + dim0/2 + lorifice/2
- y: origin1 + dim1
- z: origin2 + horifice
mirrorpoint1 =
- x: origin0
- y: origin1
mirrorpoint2 =
- x: origin0 + zc
- y: origin1
nrow = 1
ncol = n
dist =Length/n
win1 =
- x: origin0 - zc
- y: origin1 - zc
- z: origin2 - zc
win2 =
- x: origin0 + dim0 - zc
- y: origin1 + dim1 - zc
- z: origin2 + dim2 - zc
Note: zc corresponds to the zoom constant used within AutoCAD, defined by the basics file.
Technical Program Outline
Wiki Markup |
---|
box{~}dim~ = origin + dim orifice{~}origin~ = * x: origin{~}0~ + dim{~}0~/2 - l{~}orifice~/2 * y: origin{~}1~ * z: origin{~}2~ orifice{~}dim~ = * x: origin{~}0~ + dim{~}0~/2 + l{~}orifice~/2 * y: origin{~}1~ + dim{~}1~ * z: origin{~}2~ + h{~}orifice~ mirror{~}point1~ = * x: origin{~}0~ * y: origin{~}1~ mirror{~}point2~ = * x: origin{~}0~ + zc * y: origin{~}1~ nrow = 1 ncol = n dist =Length/n win1 = * x: origin{~}0~ - zc * y: origin{~}1~ - zc * z: origin{~}2~ - zc win2 = * x: origin{~}0~ + dim{~}0~ - zc * y: origin{~}1~ + dim{~}1~ - zc * z: origin{~}2~ + dim{~}2~ - zc *Note:* zc corresponds to the zoom constant used within AutoCAD, defined by the basics file. h3. Technical Program Outline {float:left|border=2px solid black} [!2.bmp|width=480px!|AutoCAD Sedimentation Tank Inlet Slopes Program] Top View {float} *viewtop* \- sets the workspace so that the user is viewing the top of the object. viewtop <-- [viewtop|AutoCAD Basics Views] *zoom{*}{*}{~}win{~}*\- zooms on a window space directly around where the inlet slope is to be drawn. zoom{~}win~ <--[zoom {~}win~|AutoCAD Basics Zoom](win1, win2) win1 = * x: origin{~}0~ - zc * y: origin{~}1~ - zc * z: origin{~}2~ - zc win2 = * x: origin{~}0~ + dim{~}0~ - zc * y: origin{~}1~ + dim |
viewtop - sets the workspace so that the user is viewing the top of the object.
viewtop <-- viewtop
zoomwin- zooms on a window space directly around where the inlet slope is to be drawn.
zoomwin <--zoom win(win1, win2)
win1 =
- x: origin0 - zc
- y: origin1 - zc
- z: origin2 - zc
win2 =
- x: origin0 + dim0 - zc
- y: origin1 + dim1 - zc
- z: origin2 + dim2 - zc
Wiki Markup |
---|
{~}1~ - zc * z: origin{~}2~ + dim{~}2~ - zc \\ \\ {float:left|border=2px solid black} [!3.bmp|width=280px!|AutoCAD Sedimentation Tank Inlet Slopes Program] {float} * |
box1
...
-
...
draws
...
a
...
box
...
that
...
will
...
be
...
the
...
slab
...
of
...
one
...
section
...
of
...
the
...
slope
...
box1
...
<--
...
...
(origin,
...
boxdim)
origin = origin
boxdim = origin + dim
Wiki Markup |
---|
{~}dim~) origin = origin box{~}dim~ = origin + dim \\ \\ {float:left|border=2px solid black} [!4.bmp|width=380px!|AutoCAD Sedimentation Tank Inlet Slopes Program] {float} * |
box2
...
-
...
draws
...
a
...
box
...
that
...
will
...
be
...
subtracted
...
from
...
the
...
slab
...
to
...
become
...
the
...
orifice
...
box2
...
<--
...
...
(orifice
...
origin,
...
orificedim)
orificeorigin =
- x: origin0 + dim0/2 - lorifice/2
- y: origin1
- z: origin2
orificedim =
- x: origin0 + dim0/2 + lorifice/2
- y: origin1 + dim1
- z: origin2 + horifice
Wiki Markup |
---|
{~}dim~) orifice{~}origin~ = * x: origin{~}0~ + dim{~}0~/2 - l{~}orifice~/2 * y: origin{~}1~ * z: origin{~}2~ orifice{~}dim~ = * x: origin{~}0~ + dim{~}0~/2 + l{~}orifice~/2 * y: origin{~}1~ + dim{~}1~ * z: origin{~}2~ + h{~}orifice~ \\ \\ {float:left|border=2px solid black} [!5a.bmp|width=180px!|AutoCAD Sedimentation Tank Inlet Slopes Program] Southeast Isometric View, Before subtract1 [!5b.bmp|width=180px!|AutoCAD Sedimentation Tank Inlet Slopes Program] Southeast Isometric View, After subtract1 {float} * |
subtract1
...
-
...
subtracts
...
box2
...
to
...
create
...
an
...
orifice,
...
using
...
the
...
origin
...
to
...
select
...
box1
...
as
...
the
...
object
...
to
...
be
...
subtracted
...
from,
...
and
...
using
...
orifice
...
origin to
...
select
...
box2
...
as
...
the
...
object
...
to
...
be
...
subtracted
...
subtract1
...
<--
...
...
(origin,
...
orificeorigin)
origin = origin
orificeorigin =
- x: origin0 + dim0/2 - lorifice/2
- y: origin1
- z: origin2
Wiki Markup |
---|
{{~}origin~) origin = origin orifice{~}origin~ = * x: origin{~}0~ + dim{~}0~/2 - l{~}orifice~/2 * y: origin{~}1~ * z: origin{~}2~ \\ \\ {float:left|border=2px solid black} [!6a.bmp|width=180px!|AutoCAD Sedimentation Tank Inlet Slopes Program] Southeast Isometric View, Before array [!6b.bmp|width=280px!|AutoCAD Sedimentation Tank Inlet Slopes Program] Southeast Isometric View, After array [!6c.bmp|width=280px!|AutoCAD Sedimentation Tank Inlet Slopes Program] Top View, After array {float} * |
array
...
-
...
creates
...
an
...
array
...
to
...
replicate
...
the
...
slab
...
n
...
times,
...
by
...
using
...
the
...
origin
...
to
...
select
...
the
...
slab
...
as
...
the
...
item
...
to
...
put
...
into
...
an
...
array,
...
then
...
specifies
...
that
...
a
...
rectangular
...
array
...
with
...
one
...
row
...
and
...
"n"
...
columns
...
with
...
a
...
displacement
...
of
...
"dist"
...
is
...
to
...
be
...
used
...
to
...
place
...
the
...
slabs
...
one
...
next
...
to
...
the
...
other.
...
array
...
<--
...
...
(origin,
...
nrow,
...
ncol,
...
dist)
...
origin
...
=
...
origin
...
nrow
...
=
...
1
...
ncol
...
=
...
n
...
dist
...
=Length/n
Wiki Markup |
---|
\\ \\ {float:left|border=2px solid black} [!7.bmp|width=280px!|AutoCAD Sedimentation Tank Inlet Slopes Program] Southeast Isometric View {float} * |
union
...
-
...
Unites
...
all
...
the
...
individual
...
components
...
of
...
the
...
inlet
...
slope
...
to
...
act
...
as
...
a
...
single
...
unit
...
union
...
<-- unionallA
Wiki Markup |
---|
[union|AutoCAD Basics Unions]{~}allA~ \\ \\ {float:left|border=2px solid black} [!8.bmp|width=280px!|AutoCAD Sedimentation Tank Inlet Slopes Program] Free Rotation used to show rotation {float} * |
rotate
...
-
...
rotates
...
the
...
inlet
...
slope
...
about
...
the
...
x-axis,
...
with
...
the
...
origin
...
as
...
the
...
pivot,
...
45
...
degrees.
...
Information
...
about
...
the
...
rotate3d
...
function
...
can
...
be
...
found
...
in
...
the
...
...
...
...
.
rotate <--
...
rotate3d(origin,
...
origin,
...
"x", 45)
Wiki Markup |
---|
45) \\ \\ {float:left|border=2px solid black} [!9a.bmp|width=380px!|AutoCAD Sedimentation Tank Inlet Slopes Program] Top View, Before mirror [!9b.bmp|width=380px!|AutoCAD Sedimentation Tank Inlet Slopes Program] Top View, After mirror [!9c.bmp|width=280px!|AutoCAD Sedimentation Tank Inlet Slopes Program] Free Rotation used {float} * |
mirror
...
-
...
replicates
...
the
...
original
...
inlet
...
slope
...
drawn
...
by
...
selecting
...
the
...
original
...
inlet
...
slope
...
using
...
the
...
origin,
...
then
...
reflecting
...
it
...
over
...
a
...
mirror
...
line
...
created
...
using
...
mirror
...
point1 and
...
mirror
...
point2.
mirror <--
...
...
(origin,
...
mirror
...
point1,
...
mirror
...
point2)
origin = origin
mirrorpoint1 =
- x: origin0
- y: origin1
mirrorpoint2 =
- x: origin0 + zc
- y: origin1