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.
paullee
Posts: 1311
Joined: Wed May 04, 2016 3:58 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby paullee » Fri Dec 28, 2018 6:52 pm

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?
Joel_graff
Posts: 989
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Joel_graff » Tue Jan 01, 2019 8:43 pm

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
paullee
Posts: 1311
Joined: Wed May 04, 2016 3:58 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby paullee » 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 :)
Joel_graff
Posts: 989
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Joel_graff » Wed Jan 02, 2019 2:56 pm

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 ;)
paullee
Posts: 1311
Joined: Wed May 04, 2016 3:58 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby paullee » Wed Jan 02, 2019 4:05 pm

: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:
Joel_graff
Posts: 989
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Joel_graff » Wed Jan 02, 2019 5:20 pm

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. :)
Joel_graff
Posts: 989
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Joel_graff » Fri Jan 04, 2019 8:50 pm

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 194 times
ms-vc.png
ms-vc.png (6.66 KiB) Viewed 194 times


3D view of both alignments (horizontal in XY plane, vertical in XZ plane):
fc-aligns.JPG
fc-aligns.JPG (15.54 KiB) Viewed 194 times
paullee
Posts: 1311
Joined: Wed May 04, 2016 3:58 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby paullee » Sat Jan 05, 2019 1:09 am

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.
Joel_graff
Posts: 989
Joined: Fri Apr 28, 2017 4:23 pm
Contact:

Re: Civil engineering feature implementation (Transportation Engineering)

Postby Joel_graff » Sat Jan 05, 2019 1:22 am

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"
paullee
Posts: 1311
Joined: Wed May 04, 2016 3:58 pm

Re: Civil engineering feature implementation (Transportation Engineering)

Postby paullee » Sat Jan 05, 2019 9:32 am

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 149 times
Screenshot from 2019-01-05 17-26-04.png
Screenshot from 2019-01-05 17-26-04.png (170.07 KiB) Viewed 149 times
Screenshot from 2019-01-05 17-26-25.png
Screenshot from 2019-01-05 17-26-25.png (176.23 KiB) Viewed 149 times