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/)
-   -   [Salome] Pipes inside tank (https://www.cfd-online.com/Forums/openfoam-meshing/224043-pipes-inside-tank.html)

ge643 February 5, 2020 09:24

Pipes inside tank
 
1 Attachment(s)
I want to simulate flow inside a tank in OpenFoam. I’ve made a simple test tank with pipes that go through the wall and continues inside the tank. The flow comes in trough one pipe and out the other.

The problem is meshing this in Salome when there are pipes inside the tank. I’ve tried multiple approaches but this is the closest one. See attached study. (The file was to big for the forum, uploaded here https://send.firefox.com/download/90...MbFnuzaL_4ss0A)


When I run ideasUnvToFoam Mesh_1.unv I get the following errors:

Code:

  Of 3340 so-called boundary faces 904 belong to two cells and are therefore internal
  Sorting boundary faces according to group (patch)
  0: wall is faceZone
  1: inlet is patch
  2: outlet is patch
  3: none is faceZone
 
  Constructing mesh with non-default patches of size:
      inlet      48
      outlet      46
 
  --> FOAM Warning :
      From function Foam::polyMesh::polyMesh(const Foam::IOobject&, Foam::pointField&&, const cellShapeList&, const faceListList&, const wordList&, const wordList&, const Foam::word&, const Foam::word&, const wordList&, bool)
      in file meshes/polyMesh/polyMeshFromShapeMesh.C at line 593
      Found 2342 undefined faces in mesh; adding to default patch defaultFaces
  Adding cell and face zones
  Face Zone wall        3056
  ideasUnvToFoam: ideasUnvToFoam.C:1262: int main(int, char**): Assertion `noveau > -1' failed.
  Aborted (core dumped)

Any suggestions?

ge643 February 11, 2020 10:24

1 Attachment(s)
It looks like the problem is the extra faces that are inside the pipes (marked with red dots). I’ve tried removing these without luck. Does any one know how this can be done in Salome?

ctvanrees August 23, 2023 12:59

2 Attachment(s)
Maybe this is a bit too old, but I had a similar problem and maybe this can help someone.

What I did was basically give a "thickness" to the pipe, the solid cube with a pipe sticking out. Then I just did a cut with a "donut-shape" cylinder.

Attached some images to help understand the process. Hope this helps someone.


All times are GMT -4. The time now is 16:56.