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

[Gmsh] Gmsh and createPatch (problem with mesh)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2011, 09:44
Default Gmsh and createPatch (problem with mesh)
  #1
Member
 
Join Date: Aug 2011
Posts: 33
Rep Power: 15
seboxx is on a distinguished road
Hi guys,

I have the following problem:
my geometry is very easy, just a plane that I created in gmsh.
The height is only one Layer (extrude... Layers{1}; Recombine.
I am using gmshToFoam and it gets translated. I have tried to use createPatch afterwards but i ve also tried it without. I am defining cyclic boundaries on 4 of the boundaries, that is i connect top to bottom and left to right.

This cyclic boundary conditions seems to make problems here. The solver runs, but i am really unhappy about the result.
I am having a situation with diffusion involved. So the red concentration diffuses into neighbour volumes.
But as you can see in the attached image (the white stuff on the top and bottom and the weird curvature of the red region on the boundaries)
there must be some kind of diffusion in areas that shouldnt be connected at all.

I am using the gmsh approach and not blockMesh because I am planning to model more complex geometries and do a field mapping afterwards.

I am happy about any suggestions

seboxx
Attached Images
File Type: jpg aha.jpg (10.0 KB, 41 views)
seboxx is offline   Reply With Quote

Old   October 27, 2011, 09:59
Default
  #2
Member
 
Join Date: Aug 2011
Posts: 33
Rep Power: 15
seboxx is on a distinguished road
... or here is a more obvious image.

seboxx
Attached Images
File Type: jpg aha2.jpg (9.3 KB, 29 views)
seboxx is offline   Reply With Quote

Old   February 2, 2012, 15:39
Default
  #3
New Member
 
Join Date: Feb 2012
Posts: 1
Rep Power: 0
ubbsx is on a distinguished road
Hi I know, it is a late reply and you might have found a solution.

you need: createPatch
and a createPatchDict in your system folder.

Then it should work.
ubbsx is offline   Reply With Quote

Old   October 6, 2020, 21:56
Default
  #4
New Member
 
Miguel David Méndez Bohórquez
Join Date: Sep 2016
Location: Bogotá
Posts: 10
Rep Power: 10
Miguel.Mendez is on a distinguished road
Quote:
Originally Posted by ubbsx View Post
Hi I know, it is a late reply and you might have found a solution.

you need: createPatch
and a createPatchDict in your system folder.

Then it should work.
Hi ubbsx. May you give me more details about this solution?

I am trying something similar. I have a case with cyclic boundary conditions and I have problems when I check my BC in my folder 0/, and the mesh imported from gmsh, both things with ParaFoam. I have changed boundary file in constant/polymesh with the respective syntax of cyclic BC (I used a template from a similar succes case with these BC).

If I use something BC like (inlet/outlet), with no neighbors patch, ParaFoam doesn't crash.

There is a special method for setting up a cyclic case with a mesh imported from gmsh?

Thanks in advance.

Miguel.
Miguel.Mendez is offline   Reply With Quote

Old   November 1, 2020, 09:14
Default
  #5
RGS
Member
 
Rohit George Sebastian
Join Date: May 2017
Posts: 42
Rep Power: 9
RGS is on a distinguished road
Quote:
Originally Posted by Miguel.Mendez View Post
Hi ubbsx. May you give me more details about this solution?

I am trying something similar. I have a case with cyclic boundary conditions and I have problems when I check my BC in my folder 0/, and the mesh imported from gmsh, both things with ParaFoam. I have changed boundary file in constant/polymesh with the respective syntax of cyclic BC (I used a template from a similar succes case with these BC).

If I use something BC like (inlet/outlet), with no neighbors patch, ParaFoam doesn't crash.

There is a special method for setting up a cyclic case with a mesh imported from gmsh?

Thanks in advance.

Miguel.

I didn't understand what you meant by checking the BC in the 0/ folder and with Parafoam.


But to answer your question, no there is no special method for setting up a cyclic case with a mesh imported from gmsh. Gmsh just gives you a mesh. You still might have to define the patches properly, especially for patches like cyclic that need an entry in the constant/polyMesh/boundary file. createPatch is a utility that helps you to do that. It is an alternative to manually editing the boundary file.

If you can explain a bit more clearly what problem you are facing, I can try to help.
RGS is offline   Reply With Quote

Old   November 2, 2020, 16:13
Default
  #6
New Member
 
Miguel David Méndez Bohórquez
Join Date: Sep 2016
Location: Bogotá
Posts: 10
Rep Power: 10
Miguel.Mendez is on a distinguished road
Quote:
Originally Posted by RGS View Post
I didn't understand what you meant by checking the BC in the 0/ folder and with Parafoam.


But to answer your question, no there is no special method for setting up a cyclic case with a mesh imported from gmsh. Gmsh just gives you a mesh. You still might have to define the patches properly, especially for patches like cyclic that need an entry in the constant/polyMesh/boundary file. createPatch is a utility that helps you to do that. It is an alternative to manually editing the boundary file.

If you can explain a bit more clearly what problem you are facing, I can try to help.
Hi Rohit!!

I really appreciate your answer, your time and interes on helping me. That day, after navigating in other posts, I have found the clue, and with some documetation, I could set up my case.

I hope I would not have more problems and thanks again!
Miguel.Mendez 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
createPatch cyclic boundary condition KateEisenhower OpenFOAM Pre-Processing 3 September 4, 2018 15:30
checkMesh, non-orthogonality, createPatch Atoom OpenFOAM Pre-Processing 0 May 31, 2013 04:30
[mesh manipulation] Using createPatch in place of couplePatches sripplinger OpenFOAM Meshing & Mesh Conversion 8 November 13, 2009 08:14
Cyclic BC problem simple geo sripplinger OpenFOAM Running, Solving & CFD 5 June 2, 2008 05:25


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