|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
Fabio
Join Date: Jun 2016
Posts: 11
Rep Power: 9 ![]() |
Dear all,
I was wondering if it is possible to create two different structured mesh with two different blockMeshDict file and then merge them together. Does anybody know if it is possible to do this? Best Regards, Fabio |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
|
Code:
mergeMesh mastermesh slavemesh -overwrite Last edited by student666; September 1, 2017 at 15:16. |
|
![]() |
![]() |
![]() |
![]() |
#3 | |
New Member
Fabio
Join Date: Jun 2016
Posts: 11
Rep Power: 9 ![]() |
Quote:
Thanks for your reply. For "mastermesh", "slavemesh" do you mean the name of the BlockMeshDict files? Please let me know, Regards, Fabio |
||
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 15 ![]() |
Hi,
No. Not the names of the blockMeshDict files. You need to create the two meshes and then call mergeMesh. mastermesh should indicate the name/location of the case where the first mesh is located slavemesh should indicate the name/location of the case where the second mesh is located Hope this helps. Cheers, Antimony |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Senior Member
|
Read this.
http://www.sourceflux.de/blog/genera...snappyhexmesh/ It gives you a visual explanation Eg: folder named run contains masterMesh and slaveMesh, so type into your terminal Code:
oldpc@oldpc-DIXONSXP:~/OpenFOAM/oldpc-2.2.0/run$ mergeMeshes masterMesh slaveMesh -overwrite |
|
![]() |
![]() |
![]() |
![]() |
#6 | |
New Member
Fabio
Join Date: Jun 2016
Posts: 11
Rep Power: 9 ![]() |
Thanks for the very clear explanation.
Best Regards Fabio Quote:
|
||
![]() |
![]() |
![]() |
![]() |
#7 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,694
Blog Entries: 6
Rep Power: 50 ![]() ![]() ![]() |
Hi everybody,
actually I am facing the same question. However, getting through mergeMesh, it should not connect the two meshes. So I guess stitchMeshes can maybe do the work but actually I found, that it does not work properly. Imagine you have a block structured mesh (piston + liner) which needs to be merged with the mesh including the valve. How would you proceed? Using ACMI boundary conditions would make the deal here but I donīt want to waste computational costs regarding mapping / interpolation etc.
__________________
Keep foaming, Tobias Holzmann |
|
![]() |
![]() |
![]() |
![]() |
#8 |
Member
Join Date: Apr 2015
Posts: 42
Rep Power: 10 ![]() |
Hi all,
I have spent a long time to figure this out and I couldn't. I have a seven-block mesh and merged common surfaces using mergepatchpairs in the blockMeshDict. checkMesh of this mesh seems fine. After this step, I position an STL object somewhere in the mesh and run the snappyHexMesh to prepare my mesh. I get so many warning of this type and usually the meshing fails: " FOAM Warning : From function static Foam::vectorField Foam::snappySnapDriver::calcNearestSurface(bool, const Foam::meshRefinement&, const labelList&, const labelList&, const scalarField&, const indirectPrimitivePatch&, Foam: ![]() in file snappyHexMeshDriver/snappySnapDriver.C at line 2021 For point:3631049 coordinate ![]() " These warning start right after the onset of mesh morphing and the coordinates given in the warning are the location of merged patches. Last edited by HosseinB; September 23, 2020 at 13:28. |
|
![]() |
![]() |
![]() |
![]() |
#9 |
Member
Join Date: Apr 2015
Posts: 42
Rep Power: 10 ![]() |
The problem was not the mesh, it was a snapControls parameter named:
nFeatureSnapIter which was causing the issue. I commented this it out and the problem was resolved. version OpenFOAM 1912. |
|
![]() |
![]() |
![]() |
Tags |
blockmeshdict block mesh, meshing, openfoam |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] Add Mesh Layers doesnt work on the whole surface | Kryo | OpenFOAM Meshing & Mesh Conversion | 13 | February 17, 2022 07:34 |
[snappyHexMesh] Creating multiple multiple cell zones with snappyHexMesh - a newbie in deep water! | divergence | OpenFOAM Meshing & Mesh Conversion | 0 | January 23, 2019 04:17 |
[snappyHexMesh] SnappyHexMesh no layers and no decent mesh for complex geometry | pizzaspinate | OpenFOAM Meshing & Mesh Conversion | 1 | February 25, 2015 07:05 |
[ICEM] Generating Mesh for STL Car in Windtunnel Simulation | tommymoose | ANSYS Meshing & Geometry | 48 | April 15, 2013 04:24 |
[snappyHexMesh] Layers:problem with curvature | giulio.topazio | OpenFOAM Meshing & Mesh Conversion | 10 | August 22, 2012 09:03 |