Civil engineering feature implementation (Transportation Engineering)

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by paullee »

Joel_graff wrote: Thu Dec 27, 2018 2:10 pm @microelly2 wrote the swept path analysis tool and I think it's perfectly useful in a 2D context. But, it's missing a UI. I don't think the UI would be difficult to create. It just takes time. :/
Thanks, I notice earlier there is discussion about missing GUI for swept path analysis.

Anywhere I can find the current non-GUI tool for use 2D context?
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Post by Joel_graff »

paullee wrote: Fri Dec 28, 2018 6:52 pm Thanks, I notice earlier there is discussion about missing GUI for swept path analysis.

Anywhere I can find the current non-GUI tool for use 2D context?
The missing GUI is basically an interface to allow the user to select different vehicles for the turning analysis.

@micoelly2 has one vehicle already that he's used to demo it. Maybe it can be adapted for your use...
microelly2 wrote:
ping
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by paullee »

Thanks, see if anything that I manage to have a test if it is not too difficult for me :)
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Post by Joel_graff »

paullee wrote: Wed Jan 02, 2019 6:13 am Thanks, see if anything that I manage to have a test if it is not too difficult for me
Maybe you can help build the UI ;)
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by paullee »

:D see what I can do...

...so far I have done some minimum codes for ArchStairs.py... but unable to do any UI :oops:

...never know, before I attempting tweaking ArchStairs.py, I did not know python nor a programmer at all :lol:
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Post by Joel_graff »

paullee wrote: Wed Jan 02, 2019 4:05 pm see what I can do...

...so far I have done some minimum codes for ArchStairs.py... but unable to do any UI

...never know, before I attempting tweaking ArchStairs.py, I did not know python nor a programmer at all
I think microelly had an idea to use something called miki, which I'm not familiar with, but is related to QT. Still, coding a UI isn't a bad way to introduce yourself to programming - there's a visual element that keeps it interesting, at least.

No worries, though. Programming is hard. Can't fault anyone for being reluctant to jump into it. :)
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Post by Joel_graff »

Vertical alignment generation is now functional. :)

Now I just need to combine them...

Freecad alignment(top) vs commercial cad alignment (bottom):
fc-vc.png
fc-vc.png (3.82 KiB) Viewed 1641 times
ms-vc.png
ms-vc.png (6.66 KiB) Viewed 1641 times


3D view of both alignments (horizontal in XY plane, vertical in XZ plane):
fc-aligns.JPG
fc-aligns.JPG (15.54 KiB) Viewed 1641 times
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by paullee »

Would try to see if i can understand what microelly is doing in the first place :lol:

BTW, also note discussion about Vertical alignment generation... sorry that this thread is huge and did not follow every posts... can you point out the posts what is it about ?

Thanks.
User avatar
Joel_graff
Veteran
Posts: 1949
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Post by Joel_graff »

paullee wrote: Sat Jan 05, 2019 1:09 am BTW, also note discussion about Vertical alignment generation... sorry that this thread is huge and did not follow every posts... can you point out the posts what is it about ?
The discussion is kinda everywhere, but here's a video he did that illustrates exactly what I'm trying to do...

phpBB [video]


If you want to know more about the actual engineering, I suggest this reference:

https://en.wikibooks.org/wiki/Fundament ... sportation

Look at "Horizontal Curves" and "Vertical Curves" to the right under "Geometric Design"
FreeCAD Trails workbench for transportation engineering: https://www.github.com/joelgraff/freecad.trails

pivy_trackers 2D coin3D library: https://www.github.com/joelgraff/pivy_trackers
paullee
Veteran
Posts: 5098
Joined: Wed May 04, 2016 3:58 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Post by paullee »

Joel_graff wrote: Sat Jan 05, 2019 1:22 am The discussion is kinda everywhere, but here's a video he did that illustrates exactly what I'm trying to do...
Thanks, sounds familiar :)

There was a vehicular bridge of about 200m - 300m in a project I participated. The civil engineer provide construction drawing with setting-out information to my understanding exactly the same - plan illustrating the layout similar to architectural layout but providing 'median' setting-out in graph like diagram providing height / elevation of each part of the bridge vs its length.

I am thinking similar approach, but for much much simpler solutions required, as to how to 'draw' staircase railing, pipe runs, as well as vehicular ramp in a building.

Staircase
  1. Currently, ArchStair could build upon a 2d sketch, Dwire etc.
  2. 1st Screenshot - the shown Stairs are automatically generate from the Sketch in red / white 'below'
  3. And experimentally, a pair of 3d Dwire are generating following the profile of the stairs
  4. The a circle etc. is ruled along this Dwire, by ArchPipe.py, to generate a pair of simple rail - No more control by the users
  5. I am thinking instead of, or in addition to, generating 3d Dwire, a pair of Sketches are generated - horizontal and vertical
  6. Then, the users can, based on the pairs of sketch, fine tune the railing profiles (e.g. you may note in the example a section of rail blocking another flight should be omitted)
  7. If the stairs update in e.g. length, run, etc, the 'base sketches' are update and the user's custom profiles follows
(Vehicular) Ramp
  1. I am not aware of available tool anywhere
  2. I tried the Sweep tools as shown earlier in this thread - https://forum.freecadweb.org/viewtopic. ... 90#p276310
  3. Pros is this approach for simple curvilinear ramp may not require 3d profile - the arc is 2d, the start and end profile are set at their respective elevation / height and it is done
  4. Cons is when it is a multi-edge 2d curve / line, the Sweep tool has made some 'transition' at each junctions that may not be as expected
  5. 2nd / 3rd screenshots - the layout plan is simple, and it seem sweep do the job;
  6. But for this case there is 4 edges in the 2d layout, see the last segment of the ramp, which is supposedly to be straight on plan as well as on section, become undulating slightly :(
Pipes
  1. I have not used ArchPipe or Flamingo WB to do pipes, may check how Flamingo do
  2. Or the above idea could also be adopted
Seem a lot can be learned from what you both are doing here :)

Screenshot from 2018-10-27 03-38-08.png
Screenshot from 2018-10-27 03-38-08.png (243.99 KiB) Viewed 1596 times
Screenshot from 2019-01-05 17-26-04.png
Screenshot from 2019-01-05 17-26-04.png (170.07 KiB) Viewed 1596 times
Screenshot from 2019-01-05 17-26-25.png
Screenshot from 2019-01-05 17-26-25.png (176.23 KiB) Viewed 1596 times
Post Reply