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/)
-   -   [mesh manipulation] CreatePatchDict & TopoSet. (https://www.cfd-online.com/Forums/openfoam-meshing/216038-createpatchdict-toposet.html)

Stefano.Doddo March 26, 2019 06:04

CreatePatchDict & TopoSet.
 
3 Attachment(s)
Hi everyone, this is the first time for me here, my name is Stefano and it's a pleasure for me. I'm studying a heat flux method and i have to simulate it with openfoam. I found a case in openfoam that reproduce an adiabatic burning flame to study the adiabatic burning velocity, "counterflowflame_2D" and i modified it in HF, but I have some problem with the definition of the mesh. The volume to define is a single block with the inlet at the bottom and the outlet in the others part but there is two snippets (2 mm high) at the bottom to define like wall (no inlet, no outlet) at the fixed temperature. So, to do this, I used the method present in the case "smallPoolFire2D", with createpatchDict and topoSet, and I modified it for two patches, you can see the script in the corresponding attached files, where you can find, also, the OpenFoam error after the launching createPatch command. Can someone help me? Have you got some suggestions?
Thank you so much for yours attention.
Best Regards.
Stefano.

alexeym March 26, 2019 09:14

Hi,

Error message is rather clear: you can not create patch with createPatch utility using internal faces. If you need to create new boundaries inside simulation domain, try to use createBaffles. If you do want to create new patches, use subset operation with boundaryToFace source in topoSetDict.

Stefano.Doddo March 26, 2019 10:08

Thank u so much for your reply. I started using openfoam recently like you see. I try to do what did you sayied.

miragemobile March 26, 2019 15:57

Quote:

Originally Posted by alexeym (Post 728905)
Hi,

Error message is rather clear: you can not create patch with createPatch utility using internal faces. If you need to create new boundaries inside simulation domain, try to use createBaffles. If you do want to create new patches, use subset operation with boundaryToFace source in topoSetDict.

How is boundaryToFace used to only select part of the exterior surface of the domain?

thanks for your time,

mirage

Stefano.Doddo April 1, 2019 12:50

Internal Faces Problem.
 
Hi everyone,
I have to simulate a burner with the heat flux method. This burner can approximate like a box with one inlet in the bottom, one outlet 2 mm above along y-axis, and on both sides two wall of the thikness 1 mm at the fixed temperature of 85° C. Moreover, I have to see the flame simulation over the outlet, about 20 cm above. So, the problem is to create two boxes of 2 mm along y-axes and 1 mm along x-axes like two patches at the fixed T=85°C. I didn't undestaind how work topoSetDict and the createPatchDict, so I tryed to create four boxes with blockMeshDict and using mergePatchPairs for the internal faces, but I get an error. Can someone help me with this method or explain me how can i apply the topoSetDict and createPatchDict Method on my case?
Thank you so much for your attention.
Best Regards.


All times are GMT -4. The time now is 14:27.