|
[Sponsors] |
[blockMesh] Multi-region Blockmesh - Refinemesh issues. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 17, 2016, 05:56 |
Multi-region Blockmesh - Refinemesh issues.
|
#1 |
Member
Join Date: Nov 2010
Posts: 62
Rep Power: 16 |
Hi All,
I am getting stuck with running Refinemesh on a region created by Blockmesh My blockMeshDict file is attached, I don't think that there is an issue in it though, at the moment its just a simple case to try and get the method working. So there are 2 boxes Region01 and Region02 sharing common vertices at one face and with an identical type of mesh in both boxes. This runs, all good so far... Under constant\polyMesh\sets it creates Region01.gz and Region02.gz Then I attempt to run: refinemesh -region Region02 And get the error: --> FOAM FATAL ERROR: Cannot find file "points" in directory "Region02/polyMesh" in times 0 down to constant I thought that the files contained in Region01.gz and Region02.gz might be the points files but they do not look correct to be that. In the UserGuide.pdf section 5.1.2 "The polyMesh description" describes points as: a list of vectors describing the cell vertices, where the first vector in the list represents vertex 0, the second vector represents vertex 1, etc.; I can't see how to get the system to create this file though, it does not appear to be an option in blockmeshdict for example, any ideas or am I going the wrong direction completely? |
|
February 18, 2016, 04:13 |
|
#2 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
Try the command "splitMeshRegions -cellZones". This should split your mesh into the two regions that you have and then you can do a region based refinement. Hope this helps. Cheers, Antimony |
|
February 18, 2016, 07:16 |
|
#3 |
Member
Join Date: Nov 2010
Posts: 62
Rep Power: 16 |
Antimony, thanks that worked a treat!
Running the "splitMeshRegions -cellZones" it created a time folder of 0.02 which would be the first time step in the run. For some reason the refineMesh can't find this folder so I copied the contents of it over to the constant dir and yay it works. No to expand the process to do several blocks and several refinement levels! |
|
February 18, 2016, 21:09 |
|
#4 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
You are welcome. You can use the -overwrite flag with splitMeshRegions and it will rewrite into the same directory, which I don't think refineMesh should have a problem with. Alternatively, in the controlDict, you could change the startFrom to latestTime and run refineMesh. In that case, I would expect refineMesh to pick up the contents from the 0.02 folder and work from there. Cheers, Antimony |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[snappyHexMesh] snappyHexMesh on a multiple region blockMesh | blais.bruno | OpenFOAM Meshing & Mesh Conversion | 1 | February 17, 2015 06:40 |
Multi Region setup | tladd | OpenFOAM Pre-Processing | 1 | April 21, 2014 10:22 |
[snappyHexMesh] Multi Region Meshing | bruce | OpenFOAM Meshing & Mesh Conversion | 12 | July 31, 2013 11:09 |
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues | michele | OpenFOAM Meshing & Mesh Conversion | 2 | July 15, 2005 05:15 |
[Gmsh] Import gmsh msh to Foam | adorean | OpenFOAM Meshing & Mesh Conversion | 24 | April 27, 2005 09:19 |