How to get the internal part of a tube

A subforum specific to the development of the OpenFoam-based workbenches ( Cfd https://github.com/qingfengxia/Cfd and CfdOF https://github.com/jaheyns/CfdOF )

Moderator: oliveroxtoby

User avatar
DeepSOIC
Veteran
Posts: 7896
Joined: Fri Aug 29, 2014 12:45 am
Location: used to be Saint-Petersburg, Russia

Re: How to get the internal part of a tube

Post by DeepSOIC »

Related problem in Arch: find a volume of a room, which has windows and doors.
https://forum.freecadweb.org/viewtopic.php?f=23&t=47905
User avatar
Roland
Posts: 333
Joined: Fri Aug 21, 2015 2:20 pm

Re: How to get the internal part of a tube

Post by Roland »

Perhaps I conceived a practical way forward to this problem. This is about a bent inlet pipe to a diffuser with solid inserts inside the gas flow. The approach is as follows:
  • 1/ PartDesign WB: Create parametric models of the gas bodies internal to the pipe elements. Obviously, wall thickness is not relevant. Save as separate *.FCStd.
  • 2/ PartDesign WB: Create a parametric model of the gas bodies internal to diffusor. Obviously, wall thickness is not relevant. Save as separate *.FCStd.
  • 3/ PartDesign WB: Create a parametric model of the solids that serve as inserts. Save as separate *.FCStd.
  • 4/ Assembly4 WB: Place all elements on their location.
  • 5/ Part WB: Inside the Model tree, select the elements representing the gas body. Command: Join/Connect objects. This produces a new element ("Connect") in the root of the Tree, and greys out the selected elements inside the Assembly Model tree.
  • 6/ Part WB: Boolean/Cut the solid elements from the Connect element. One by one. This greys out the selected elements inside the Assembly Model tree. And produces the element ready for CfdOF.
Example.png
Example.png (87.05 KiB) Viewed 2950 times
Example.FCStd
(342.7 KiB) Downloaded 91 times
Example attached.
(Note that in the example having the Model_MainGasBody as a branch under a Part is overcomplicated. The assembling can take place immediately as Model)

Best regards,

Roland

On:
OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19311 (Git)
Build type: Release
Branch: master
Hash: 120b69c74f7dac8c4fa6dbc0a7e10674bde9216c
Python version: 3.6.8
Qt version: 5.12.1
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/United Kingdom (en_GB)
Post Reply