Selecting internal faces of a pressure vessel
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
-
- Posts: 107
- Joined: Tue Feb 10, 2015 12:33 pm
- Location: General Pacheco (Buenos Aires) - Argentina
- Contact:
Selecting internal faces of a pressure vessel
Hi, I want to apply an internal pressure to a vessel, but I'm struggled trying to select the internal faces of the part (is a closed cilinder). I have tryied using the cliping plane, but when is active is not possible to follow with the boundary condition definition.
Any advice?
Regards.
Any advice?
Regards.
Engineering Consultor at 4P Ingeniería
http://www.4p-ingenieria.com/
https://www.youtube.com/channel/UClZPfO ... Cx-_J36o_Q
http://www.4p-ingenieria.com/
https://www.youtube.com/channel/UClZPfO ... Cx-_J36o_Q
Re: Selecting internal faces of a pressure vessel
Make a backup of your file and try this:
1) create a mesh of your vessel
2) create a material
3) in the Draft module use Downgrade to get faces from volume (volume is lost and I think connection of mesh to it)
4) create constraints on this faces - fix and pressure
5) run analysis
This worked to me at sphere cut by smaller sphere, but when using a clipping plane, I don't see the inner elements of the mesh, only surfaces are visible.
1) create a mesh of your vessel
2) create a material
3) in the Draft module use Downgrade to get faces from volume (volume is lost and I think connection of mesh to it)
4) create constraints on this faces - fix and pressure
5) run analysis
This worked to me at sphere cut by smaller sphere, but when using a clipping plane, I don't see the inner elements of the mesh, only surfaces are visible.
- DeepSOIC
- Veteran
- Posts: 7896
- Joined: Fri Aug 29, 2014 12:45 am
- Location: used to be Saint-Petersburg, Russia
Re: Selecting internal faces of a pressure vessel
Hi!
Option 1 is to use Draft Section, which can cut the view in "real time".
Option 2 is to get inside by switching to perspective view and doing some navigation. But in FreeCAD, it is very uncomfortable to be inside objects, navigation styles are really not made for the purpose..
Option 1 is to use Draft Section, which can cut the view in "real time".
Option 2 is to get inside by switching to perspective view and doing some navigation. But in FreeCAD, it is very uncomfortable to be inside objects, navigation styles are really not made for the purpose..
Re: Selecting internal faces of a pressure vessel
Can you please explain a bit more where to find this real time cutted view.DeepSOIC wrote:Hi!
Option 1 is to use Draft Section, which can cut the view in "real time".
Thanks in advance,
Howil
Re: Selecting internal faces of a pressure vessel
Hi,
I wrote a script/FC-Macro which enables the selection of hidden or inner faces or edges.
Attached you find the script and a screencast introducing the interface on the standard part-design example-part after creating a inner cut.
Hints: To get best results on positioning your selection-click, set the element to 'Selectable=False' (see screencast).
This script does work all elements of the Part- and Part-Design-Next- workbenches except the 'Part'-element of PDN. The reason for this is until now unknown.
Hope it is helpful, and maybe it can be integrated into the selection dialog for FEM conditions and Mesh-regions.
BR,
HoWil
I wrote a script/FC-Macro which enables the selection of hidden or inner faces or edges.
Attached you find the script and a screencast introducing the interface on the standard part-design example-part after creating a inner cut.
Hints: To get best results on positioning your selection-click, set the element to 'Selectable=False' (see screencast).
This script does work all elements of the Part- and Part-Design-Next- workbenches except the 'Part'-element of PDN. The reason for this is until now unknown.
Hope it is helpful, and maybe it can be integrated into the selection dialog for FEM conditions and Mesh-regions.
BR,
HoWil
Re: Selecting internal faces of a pressure vessel
It is a very useful tool. I had to remove the trailing white spaces to get it running in FreeCAD. Works great here. The face of a spere is added twice to the list I assume this because it is twice under the mouse. It would be cool if we would not need to change the select ability of the object around. Ah the window should stay on top over the FreeCAD main window even if the user clicks in FreeCAD main window.
We would need it on any constraint. I need to think how we could add it to the FEM WB.
We would need it on any constraint. I need to think how we could add it to the FEM WB.
Re: Selecting internal faces of a pressure vessel
Disabling of "selectable" is because otherwise the first face below the mouse is highlighted (in yellow) hiding everything below.
Maybe it can be done automatically (disabling for each element under mouse and store it in an list ; restore it afterwards).
A switch to use it also for domains is also needed to fully use it in Fem-wb.
Br
Howil
Maybe it can be done automatically (disabling for each element under mouse and store it in an list ; restore it afterwards).
Have no clue about this yet. Any suggestions about this?bernd wrote: Ah the window should stay on top over the FreeCAD main window even if the user clicks in FreeCAD main window.
A switch to use it also for domains is also needed to fully use it in Fem-wb.
Br
Howil
Re: Selecting internal faces of a pressure vessel
Very usefull tool !
It should be incorporated into master
It should be incorporated into master
Re: Selecting internal faces of a pressure vessel
Interesting... had nothing like that on my Ubuntu16.04.1 but will look into your 'Python coding standard' maybe I can identify the problem.bernd wrote:I had to remove the trailing white spaces to get it running in FreeCAD.
I want to post a updated version of the above discussed script.
Now it is no more necessary to disable 'selectable' for bodies and found bodies are also listed in the combobox.
A small flaw is that the first element (first found body) has to be selected again to have it highlighted.
Re: Selecting internal faces of a pressure vessel
hi
i add this line before self.dialog.show() and the window StaysOnTopHint
mario
i add this line before self.dialog.show() and the window StaysOnTopHint
Code: Select all
self.dialog.setWindowFlags(QtCore.Qt.WindowStaysOnTopHint) #
self.dialog.show()
self.dialog.exec_()
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
My macros on Gist.github here complete macros Wiki and forum.