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

[snappyHexMesh] Getting the Mesh of both sides of a surface

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By Yann
  • 1 Post By Sebastian_Vienna

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2022, 14:01
Default Getting the Mesh of both sides of a surface
  #1
New Member
 
Sebastian Skrna
Join Date: Dec 2022
Location: Austria
Posts: 3
Rep Power: 3
Sebastian_Vienna is on a distinguished road
Hi everyone

I have a scan of a laserstructured surface (not flat) as an .stl file and my goal
is to get the "imprints" (meshes) of both sides of this surface and the meshes should merge perfectly without a gap.

With snappyHexMesh I can get the mesh of only one side of the surface.
(Attachment: Mesh_of_only_one_side.JPG)
(Attachment: Surface_and_upperSide.JPG)

When i apply snappyHexMesh for each side of the surface in a seperate case and try to merge the meshes of both sides of the surface there is a small gap inbetween.
(Attachment: Upper_and_lower_Side_with_Gap.JPG)

How can i get a perfectly fitting mesh without a gap?

I am very grateful for every idea that could solve this problem.

Best wishes

Sebastian
Attached Images
File Type: jpg Surface_and_upperSide.jpg (64.5 KB, 11 views)
File Type: jpg Mesh_of_only_one_side.jpg (119.7 KB, 12 views)
File Type: jpg Upper_and_lower_Side_with_Gap.jpg (113.7 KB, 10 views)
Sebastian_Vienna is offline   Reply With Quote

Old   December 12, 2022, 03:26
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,055
Rep Power: 26
Yann will become famous soon enough
Hello Sebastian,

What OpenFOAM version are you using? There are 2 ways to achieve it depending on the branch.

Regards,
Yann
Yann is offline   Reply With Quote

Old   December 12, 2022, 03:31
Default
  #3
New Member
 
Sebastian Skrna
Join Date: Dec 2022
Location: Austria
Posts: 3
Rep Power: 3
Sebastian_Vienna is on a distinguished road
Hello Yann,

thank you for your reply!

I am using Version 6.

Regards,

Sebastian
Sebastian_Vienna is offline   Reply With Quote

Old   December 12, 2022, 03:58
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,055
Rep Power: 26
Yann will become famous soon enough
Thanks for your answer.

In snappyHexMeshDict, you can define cellZones for each side in order to keep both sides in the final mesh, with a snapped interface in-between:

Code:
refinementSurfaces
{
	upperSide
	{
		// Surface-wise min and max refinement level
		level (1 1);

		faceZone upperSide;
		cellZone upperSide;
		cellZoneInside inside;
	}

	lowerSide
	{
		// Surface-wise min and max refinement level
		level (1 1);

		faceZone lowerSide;
		cellZone lowerSide;
		cellZoneInside inside;
	}
}
Have a look at the snappyMultiRegionHeater tutorial.

Regards,
Yann
AtoHM likes this.
Yann is offline   Reply With Quote

Old   December 12, 2022, 07:05
Default
  #5
New Member
 
Sebastian Skrna
Join Date: Dec 2022
Location: Austria
Posts: 3
Rep Power: 3
Sebastian_Vienna is on a distinguished road
Hello Yann,

thank you for your fast reply and the hints!

I will try that

Again thank you very much.

Regards,

Sebastian
Yann likes this.
Sebastian_Vienna 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
SimpleFoam & Theater jipai OpenFOAM Running, Solving & CFD 3 June 18, 2019 10:11
[Gmsh] Error : Self intersecting surface mesh, computing intersections & Error : Impossible velan OpenFOAM Meshing & Mesh Conversion 3 October 22, 2015 11:05
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
[snappyHexMesh] Layers:problem with curvature giulio.topazio OpenFOAM Meshing & Mesh Conversion 10 August 22, 2012 09:03
[snappyHexMesh] Layers don't fully surround surface EVBUCF OpenFOAM Meshing & Mesh Conversion 14 August 20, 2012 04:31


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