|
[Sponsors] |
[Gmsh] Gmsh and createPatch (problem with mesh) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 27, 2011, 09:44 |
Gmsh and createPatch (problem with mesh)
|
#1 |
Member
Join Date: Aug 2011
Posts: 33
Rep Power: 15 |
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 |
|
October 27, 2011, 09:59 |
|
#2 |
Member
Join Date: Aug 2011
Posts: 33
Rep Power: 15 |
... or here is a more obvious image.
seboxx |
|
February 2, 2012, 15:39 |
|
#3 |
New Member
Join Date: Feb 2012
Posts: 1
Rep Power: 0 |
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. |
|
October 6, 2020, 21:56 |
|
#4 | |
New Member
Miguel David Méndez Bohórquez
Join Date: Sep 2016
Location: Bogotá
Posts: 10
Rep Power: 10 |
Quote:
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. |
||
November 1, 2020, 09:14 |
|
#5 | |
Member
Rohit George Sebastian
Join Date: May 2017
Posts: 42
Rep Power: 9 |
Quote:
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. |
||
November 2, 2020, 16:13 |
|
#6 | |
New Member
Miguel David Méndez Bohórquez
Join Date: Sep 2016
Location: Bogotá
Posts: 10
Rep Power: 10 |
Quote:
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! |
||
|
|
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 |