CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [mesh manipulation] extrudeMesh for buffer in a pipe (https://www.cfd-online.com/Forums/openfoam-meshing/214268-extrudemesh-buffer-pipe.html)

cfd4res January 25, 2019 05:29

extrudeMesh for buffer in a pipe
 
1 Attachment(s)
I came across this problem while creating a mesh for a pipe with many bends using blockMesh and extrudeMesh.
As seen in the figure below , I created a pipe using the project feature and then used extrudeMesh to create a bend. But I cannot create the buffer as I wanted as I cannot increase the diameter of the pipe.



Attachment 67990


I think I need to use three different files to create the buffer zone in the pipe.



Can anyone please help me with this?

jherb January 28, 2019 12:25

You could use extrudeMesh to create the pipe without the modified area in the buffer zone and then a Python script using this library (https://codereview.stackexchange.com/a/101298) to modify the node locations of the nodes inside the buffer. (Should not be too hard, because you know the z-coordinates of the buffer, so you can search for the nodes and modify their x/y values accordingly).


All times are GMT -4. The time now is 14:29.