Author Topic: [request] Radiant Pipe Layout  (Read 944 times)

0 Members and 1 Guest are viewing this topic.

JohnK

  • Administrator
  • Seagull
  • Posts: 10652
[request] Radiant Pipe Layout
« on: April 23, 2024, 03:10:37 PM »
My jobs typically have some radiant heating involved (about 7,000 square feet of the buildings) and for the last year or so, I've been doing my designs the old fashion way with excel, charts, and just drafting the layout in AutoCAD. The design is easy, but the layout is very annoying to have to draw and redraw. Does anyone have any code to do this type of layout already in their arsenal?

TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

ribarm

  • Gator
  • Posts: 3289
  • Marko Ribar, architect
Re: [request] Radiant Pipe Layout
« Reply #1 on: April 23, 2024, 03:26:51 PM »
@BIGAL states that there are plenty links on www just by google-ing, but AFAIK I have only this link where I was involved...
https://www.cadtutor.net/forum/files/file/47-floor-heating/

HTH.
M.R.

BTW. It is very delicate to code for it, but we tried - I mean me and L.M. (Lee Mac)...
Marko Ribar, d.i.a. (graduated engineer of architecture)

:)

M.R. on Youtube

JohnK

  • Administrator
  • Seagull
  • Posts: 10652
Re: [request] Radiant Pipe Layout
« Reply #2 on: April 24, 2024, 08:49:37 AM »
Oh, that's too bad. I guess I'll just have to chip away at the problem in my spare time then.

BTW, that's a "spiral"; not sure if I'm correct or not but I've always used a sort of "reverse return" layout to hopefully get a more even heat distribution on the panel (aka floor). So, given my luck, my pattern will be impossible to code. :]
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

kirby

  • Newt
  • Posts: 132
Re: [request] Radiant Pipe Layout
« Reply #3 on: April 24, 2024, 10:46:04 AM »
Commercial software 'LoopCAD' that includes automated layout, hydraulic & hydronic calcs (and code checks with the Professional version):
Code - HTML5: [Select]
  1. https://www.avenir-online.com/AvenirWeb/LoopCAD/LoopCADHome.aspx

It looks like your layout is known as a serpentine, vs. the spiral layout discussed on links.  Serpentine layout should be easier to adapt to L-shaped rooms.

JohnK

  • Administrator
  • Seagull
  • Posts: 10652
Re: [request] Radiant Pipe Layout
« Reply #4 on: April 24, 2024, 12:54:34 PM »
I just evaluated LoopCAD and put in a purchase request. It was denied because apparently, they would not even discuss "security" and other things with Legal and IT. My request was denied.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

JohnK

  • Administrator
  • Seagull
  • Posts: 10652
Re: [request] Radiant Pipe Layout
« Reply #5 on: April 24, 2024, 03:10:48 PM »
At lunch I wrote some concept code to draw a center line. I calculate the points, but the line drawing portion draws a zig-zag pattern so, my theory needs a little adjustment. Also, I keep typing C code (while (int i=0... so that's a bit annoying. At this rate, I'll get a concept coded up by next month. :]
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2144
  • class keyThumper<T>:ILazy<T>
Re: [request] Radiant Pipe Layout
« Reply #6 on: April 24, 2024, 04:32:45 PM »
Hi John,

Do you have a min/max centers and edge-cover for pipes ??

I imagine you'd prefer to maintain the default centers ( 12" in this case ) as much as possible.

For interest, what are the pipe sizes ( assumed dependant on area ) and bend details ( assumed threaded elbows )

added:  ( or 'welded' copper ?? )

added 2: are the floors precast or in-situ slabs ?

 :idea:

« Last Edit: April 24, 2024, 04:56:16 PM by kdub_nz »
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

BIGAL

  • Swamp Rat
  • Posts: 1421
  • 40 + years of using Autocad
Re: [request] Radiant Pipe Layout
« Reply #7 on: April 24, 2024, 08:23:53 PM »
Have another Google Like Ribarm I am sure there were multiple versions provided using different layout methods, finding the key words to use in the search is the hard part. I think even Lee-mac had a go. Its not in my field of interest so never saved.

https://www.cadtutor.net/forum/topic/43738-a-challenge-how-to-draw-this-floor-heating/page/2/
A man who never made a mistake never made anything

Lonnie

  • Newt
  • Posts: 177
Re: [request] Radiant Pipe Layout
« Reply #8 on: April 25, 2024, 11:11:34 AM »
I just evaluated LoopCAD and put in a purchase request. It was denied because apparently, they would not even discuss "security" and other things with Legal and IT. My request was denied.

I feel your pain.

JohnK

  • Administrator
  • Seagull
  • Posts: 10652
Re: [request] Radiant Pipe Layout
« Reply #9 on: April 25, 2024, 11:31:11 AM »
Hi John,

Do you have a min/max centers and edge-cover for pipes ??

I imagine you'd prefer to maintain the default centers ( 12" in this case ) as much as possible.

For interest, what are the pipe sizes ( assumed dependant on area ) and bend details ( assumed threaded elbows )

added:  ( or 'welded' copper ?? )

added 2: are the floors precast or in-situ slabs ?

 :idea:

Pipe type is: 5/8 Pex with oxygen barrier. The bend radius they say is something like 7 inches, but I wrote my specs to use bend supports for all that small bend situations (I keep my bends large[er] if I can).

The centerline distance is either 9, 12, 16 or 18. Based on how hot you need the floor (radiant panel).  Here is a snip from my spreadsheet; these are simple calculations/designs the drawing is what is a PITA.

Before I got to finish my first cup of coffee, I fixed my concept code and it now calculates the points in the correct order, so I added the ability to draw a polyline. The concept code doesn't scale (will not handle rectangles at odd angles or different directions but I am trying to find the best way to calculate points so...). My next goal is either to try and think up a way to divide a shape up into rectangles to account for odd shapes or to work out drawing in different directions (vertical/horizontal/left/right). I'll just keep picking away at these problems.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

kirby

  • Newt
  • Posts: 132
Re: [request] Radiant Pipe Layout
« Reply #10 on: April 25, 2024, 04:17:53 PM »
Have been thinking about this because I'm easily side-tracked...

How about using Marko Ribar's routine to create the centreline
Code - HTML5: [Select]
  1. https://www.cadtutor.net/forum/topic/48627-filling-up-one-area-with-a-quotorientedquot-polyline/
(but increasing the 'end' offsets by half the pipe spacing)

then another routine to create a double line from the centerline
Code - HTML5: [Select]
  1. https://www.cadtutor.net/forum/topic/50819-draw-double-polyline/

Convert Mline to polyline
Code - HTML5: [Select]
  1. https://lee-mac.com/mlinetopline.html

Fillet radius

and lastly capping the opposite end from the start point with a semi-circle

BIGAL

  • Swamp Rat
  • Posts: 1421
  • 40 + years of using Autocad
Re: [request] Radiant Pipe Layout
« Reply #11 on: April 25, 2024, 08:04:38 PM »
I dont do heating coils but had a think about it maybe a semi manual approach create parallel lines join ends to make loops left and right, not sure how to get back to start other than offset more on one side so can draw a line back to start. It would be pretty easy to do a close 1 end to all lines using a drag over selection. No code just an idea.

What shapes are we talking about ?



A man who never made a mistake never made anything

JohnK

  • Administrator
  • Seagull
  • Posts: 10652
Re: [request] Radiant Pipe Layout
« Reply #12 on: April 25, 2024, 08:37:19 PM »
@kirby,
I'll take a look at links in a bit.

@bigal
Imagine a serpentine pattern but toss in a rectangle (representing a floor drain, maintence pit, elevator, etc) in the middle of your layout so you need to either go around or on both sides while trying to maintain a total length of about 500 feet (you cannot go over 500 feet because that is what a spool of pipe is and you don't want to go too far under either. 500 feet of pipe is one loop.). ...This problem requires several different iterations to get the proper coverage and actual number of loops.

In my spreadsheet screenshot, I used 300 feet per loop because my loop counters are automated and I needed to look at my flows and pressure drops for the number of loops I wanted against pump selections (I was sort of working backwards from a total flow against a pump selection)

I have concept code that will generate a horizontal serpentine pattern in a rectangle already (drawing/calculating a back and forth pattern is easy). The hard part will be addressing the NO-FLY zones and whatnot.  Layouts are fun for one or two loops but when you have 16 it's not fun anymore (it typically takes me about 3 days to layout and draft 16 loops and 4 zones. When the architect starts changing on you, is typically when your boss will ask a question like "why are you so far behind?!").
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

JohnK

  • Administrator
  • Seagull
  • Posts: 10652
Re: [request] Radiant Pipe Layout
« Reply #13 on: April 25, 2024, 08:44:39 PM »
Kirby,
I glanced at code in the first link quick, and I just cannot maintain code like this:
Code - Auto/Visual Lisp: [Select]
  1. (command "_.pline" (mapcar '+ (polar ip 0.0 ls) (list 0.0 (* r 2.0))) (polar (mapcar '+ (polar ip 0.0 ls) (list 0.0 (* r 2.0))) pi lr) "a" "s" (mapcar '+ (polar (mapcar '+ (polar ip 0.0 ls) (list 0.0 (* r 2.0))) pi lr) (list (- r) r)) (mapcar '+ (polar (mapcar '+ (polar ip 0.0 ls) (list 0.0 (* r 2.0))) pi lr) (list 0.0 (* r 2.0))) "l" (polar (mapcar '+ (polar (mapcar '+ (polar ip 0.0 ls) (list 0.0 (* r 2.0))) pi lr) (list 0.0 (* r 2.0))) 0.0 lr) "a" "s" (mapcar '+ (polar (mapcar '+ (polar (mapcar '+ (polar ip 0.0 ls) (list 0.0 (* r 2.0))) pi lr) (list 0.0 (* r 2.0))) 0.0 lr) (list r r)) (mapcar '+ (polar (mapcar '+ (polar (mapcar '+ (polar ip 0.0 ls) (list 0.0 (* r 2.0))) pi lr) (list 0.0 (* r 2.0))) 0.0 lr) (list 0.0 (* r 2.0))) "")
No offense, Marko.

It would be faster for me to just write my own. Sorry.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

dexus

  • Bull Frog
  • Posts: 210
Re: [request] Radiant Pipe Layout
« Reply #14 on: April 26, 2024, 02:46:01 AM »
This topic isn't about this specific code, but I was intrigued to figure out what this string of code did.
But even with indentation some more variables would have been nice.
Code - Auto/Visual Lisp: [Select]
  1.   "_.pline" ; Start polyline
  2.  
  3.   (mapcar '+ ; First point of line segment
  4.     (polar ip 0.0 ls)
  5.     (list 0.0 (* r 2.0))
  6.   )
  7.  
  8.   (polar ; Second point of line segment
  9.     (mapcar '+
  10.       (polar ip 0.0 ls)
  11.       (list 0.0 (* r 2.0))
  12.     )
  13.     pi
  14.     lr
  15.   )
  16.  
  17.   "a" ; Arc
  18.   "s" ; second point of arc
  19.   (mapcar '+ ; Second point of arc
  20.     (polar
  21.       (mapcar '+
  22.         (polar ip 0.0 ls)
  23.         (list 0.0 (* r 2.0))
  24.       )
  25.       pi
  26.       lr
  27.     )
  28.     (list (- r) r)
  29.   )
  30.   (mapcar '+ ; end point of arc
  31.     (polar
  32.       (mapcar '+
  33.         (polar ip 0.0 ls)
  34.         (list 0.0 (* r 2.0))
  35.       )
  36.       pi
  37.       lr
  38.     )
  39.     (list 0.0 (* r 2.0))
  40.   )
  41.  
  42.   "l" ; Line
  43.   (polar ; next point of line segment
  44.     (mapcar '+
  45.       (polar
  46.         (mapcar '+
  47.           (polar ip 0.0 ls)
  48.           (list 0.0 (* r 2.0))
  49.         )
  50.         pi
  51.         lr
  52.       )
  53.       (list 0.0 (* r 2.0))
  54.     )
  55.     0.0
  56.     lr
  57.   )
  58.  
  59.   "a" ; Arc
  60.   "s" ; second point of arc
  61.   (mapcar '+ ; second point of arc
  62.     (polar
  63.       (mapcar '+
  64.         (polar
  65.           (mapcar '+
  66.             (polar ip 0.0 ls)
  67.             (list 0.0 (* r 2.0))
  68.           )
  69.           pi
  70.           lr
  71.         )
  72.         (list 0.0 (* r 2.0))
  73.       )
  74.       0.0
  75.       lr
  76.     )
  77.     (list r r)
  78.   )
  79.   (mapcar '+ ; End point of arc
  80.     (polar
  81.       (mapcar '+
  82.         (polar
  83.           (mapcar '+
  84.             (polar ip 0.0 ls)
  85.             (list 0.0 (* r 2.0))
  86.           )
  87.           pi
  88.           lr
  89.         )
  90.         (list 0.0 (* r 2.0))
  91.       )
  92.       0.0
  93.       lr
  94.     )
  95.     (list 0.0 (* r 2.0))
  96.   )
  97.   "" ; End of polyline
  98. )