CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] Conformed mesh in SnappyHexMesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 2, 2017, 13:49
Default Conformed mesh in SnappyHexMesh
  #1
New Member
 
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 10
dariodario32 is on a distinguished road
Hi all,

I'm facing a problem with the mesh that I'm trying to generate. My purpose is to generate a conformed mesh in the fluid-structure interface. Thus, I want to know if there is a way to generate the fluid mesh with snappyHexMesh, specifying the faces on the boundary (extracted from the structural mesh). In this way the structural and fluid mesh will match in their interface.

THanks
dariodario32 is offline   Reply With Quote

Old   December 3, 2017, 21:12
Default I want to create similar mesh
  #2
Member
 
Ashish Kumar
Join Date: Jun 2015
Posts: 33
Rep Power: 11
ashish.svm is on a distinguished road
Quote:
Originally Posted by dariodario32 View Post
Hi all,

I'm facing a problem with the mesh that I'm trying to generate. My purpose is to generate a conformed mesh in the fluid-structure interface. Thus, I want to know if there is a way to generate the fluid mesh with snappyHexMesh, specifying the faces on the boundary (extracted from the structural mesh). In this way the structural and fluid mesh will match in their interface.

THanks
Were you able to create the mesh from the extracted surfaces? Please let me know, I am trying to do the similar thing.
Thanks.
ashish.svm is offline   Reply With Quote

Old   December 4, 2017, 12:51
Default
  #3
New Member
 
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 10
dariodario32 is on a distinguished road
As far as I know there is now way to do it in SHM. Thus I highly suggest you to move to other mesher, have a look to SALOME (open-source).
It allows you to create meshes with different elements, ranging from 1D to 3D.

Dario
dariodario32 is offline   Reply With Quote

Old   December 10, 2017, 12:09
Default
  #4
Member
 
Ashish Kumar
Join Date: Jun 2015
Posts: 33
Rep Power: 11
ashish.svm is on a distinguished road
Quote:
Originally Posted by dariodario32 View Post
As far as I know there is now way to do it in SHM. Thus I highly suggest you to move to other mesher, have a look to SALOME (open-source).
It allows you to create meshes with different elements, ranging from 1D to 3D.

Dario
Can you please explain briefly, how you created conforming mesh for a given surface in SALOME? Or can you refer a similar online tutorial case by which I can learn to create similar mesh
ashish.svm is offline   Reply With Quote

Old   December 10, 2017, 19:45
Default
  #5
New Member
 
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 10
dariodario32 is on a distinguished road
Quote:
Originally Posted by ashish.svm View Post
Can you please explain briefly, how you created conforming mesh for a given surface in SALOME? Or can you refer a similar online tutorial case by which I can learn to create similar mesh
My solution was the following:
  1. Create the geometry with a CAD software and import it in SALOME or draw it in SALOME. This geometry should contain both fluid and structure geometrical domainS. In case your fluid domain will be discretized with 3D elements, while the structure domain with 2D elements, i.e. when your FSI domain is a mix of volumes and surfaces, you use the compound object in SALOME. It is convenient to add the geometries related to the fluid domain in a group called FLUID and the ones belonging to the solid doamin in a group called SOLID.
    Then you generate the mesh of the compound geometry using the SALOME internal mesher. Automatically the mesh at the interface between the solid and structure domains will be a conformed mesh.
  2. Then you can generate groups of elements starting from the groups generated in the geometry. In this way you can export the two sub-meshes in different files.
  3. The fluid mesh can be now converted in OpenFOAM using ideasToFoam command.
  4. The solid mesh can be imported in the an OpenFOAM solver in a similar way. You can have a look to the code of ideasToFoam application (or similar applications for mesh conversion) and integrate it into your code.
  5. Lastly I guess you will need to map the stresses and/or displacements at the interface. For this task I coded a pre-processing application that compare the fluid and structure mesh in a way that you know which node correspond to which and which face to which (this is required since when the two meshes are exported separately in SALOME, the numbering of nodes and elements at the interface is not the same, hope this explaination is clear).

In case you have any question, please ask.
dariodario32 is offline   Reply With Quote

Old   December 19, 2017, 13:59
Default
  #6
Member
 
Ashish Kumar
Join Date: Jun 2015
Posts: 33
Rep Power: 11
ashish.svm is on a distinguished road
Quote:
Originally Posted by dariodario32 View Post
My solution was the following:
  1. Create the geometry with a CAD software and import it in SALOME or draw it in SALOME. This geometry should contain both fluid and structure geometrical domainS. In case your fluid domain will be discretized with 3D elements, while the structure domain with 2D elements, i.e. when your FSI domain is a mix of volumes and surfaces, you use the compound object in SALOME. It is convenient to add the geometries related to the fluid domain in a group called FLUID and the ones belonging to the solid doamin in a group called SOLID.
    Then you generate the mesh of the compound geometry using the SALOME internal mesher. Automatically the mesh at the interface between the solid and structure domains will be a conformed mesh.
  2. Then you can generate groups of elements starting from the groups generated in the geometry. In this way you can export the two sub-meshes in different files.
  3. The fluid mesh can be now converted in OpenFOAM using ideasToFoam command.
  4. The solid mesh can be imported in the an OpenFOAM solver in a similar way. You can have a look to the code of ideasToFoam application (or similar applications for mesh conversion) and integrate it into your code.
  5. Lastly I guess you will need to map the stresses and/or displacements at the interface. For this task I coded a pre-processing application that compare the fluid and structure mesh in a way that you know which node correspond to which and which face to which (this is required since when the two meshes are exported separately in SALOME, the numbering of nodes and elements at the interface is not the same, hope this explaination is clear).

In case you have any question, please ask.
Hi Dario, Thanks for your reply. Now I can create conforming mesh using salome but there is one problem. Number of cells generated are very large. As you can see the following:
veryFineMesh.jpg
here black lines represent the fluid region. This is actually generated in another code and exported as stl in salome. Following is the stl file
fluidSTL.JPG
The above image may look like surface but it is actually a solid with very small width.

In salome meshing I am using "partition" method for geometry. And for meshing I am using automatic 3D tetrahedralization.

Is there any way I can generate coarse mesh for the region away from the fluid region?
ashish.svm is offline   Reply With Quote

Old   December 20, 2017, 13:56
Default
  #7
New Member
 
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 10
dariodario32 is on a distinguished road
You can try to solve this generating sub-meshes in SALOME. To do this you'll need to generate groups on your geometry, for example you can group the edges of your domain. Then right click on your mesh and generate a sub-mesh on the groups generated. In the case of the edges you can assign 1-D hypotesis (this allows you to distribute a number of elements with constant or non-constant distribution, here you decide the number of elements).

You can even create sub-meshes on surfaces.

With this method SALOME will first generate the sub-meshes and then the internal mesh in a way that it fulfill the sub-mesh hypotesis.
dariodario32 is offline   Reply With Quote

Old   December 20, 2017, 20:59
Default
  #8
Member
 
Ashish Kumar
Join Date: Jun 2015
Posts: 33
Rep Power: 11
ashish.svm is on a distinguished road
Quote:
Originally Posted by dariodario32 View Post
You can try to solve this generating sub-meshes in SALOME. To do this you'll need to generate groups on your geometry, for example you can group the edges of your domain. Then right click on your mesh and generate a sub-mesh on the groups generated. In the case of the edges you can assign 1-D hypotesis (this allows you to distribute a number of elements with constant or non-constant distribution, here you decide the number of elements).

You can even create sub-meshes on surfaces.

With this method SALOME will first generate the sub-meshes and then the internal mesh in a way that it fulfill the sub-mesh hypotesis.
Thanks Dario.
I tried to create submesh for the boundary faces and defined large grid size there. But it helped in reducing only very few number of cells.
Actually it will be better if I can generate mostly hexahedral mesh. Is there any way to generate mixed mesh (consisting of hex,tetrahedral, prisms etc) in SALOME?
ashish.svm is offline   Reply With Quote

Old   December 21, 2017, 06:21
Default
  #9
New Member
 
dario
Join Date: Dec 2016
Posts: 24
Rep Power: 10
dariodario32 is on a distinguished road
Yes you can generate mixed mesh. As before you can group your domain in sub-domains and assign to each sub domain a different meshing solver, hexa , tetra etc.
dariodario32 is offline   Reply With Quote

Old   December 24, 2017, 20:47
Default
  #10
Senior Member
 
Canakkale Dardanelspor
Join Date: Aug 2012
Posts: 135
Rep Power: 14
HakikiCanakkaleli is on a distinguished road
Hi,

I might misunderstand (possibly did not understand) your objective. Yet the lumped point boundary condition might be of help to your purpose?

Lumped point Fluid Structure Interaction (FSI)
HakikiCanakkaleli is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[snappyHexMesh] Creating very fine, high accuracy mesh with snappyHexMesh JD_Welch OpenFOAM Meshing & Mesh Conversion 10 July 5, 2023 12:50
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
[snappyHexMesh] snappyHexMesh & Mesh around a missile sasanghomi OpenFOAM Meshing & Mesh Conversion 2 October 15, 2014 20:54
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 07:42
[snappyHexMesh] SnappyHexMesh not generate mesh first time mavimo OpenFOAM Meshing & Mesh Conversion 4 August 26, 2008 08:08


All times are GMT -4. The time now is 02:39.