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

[blockMesh] Multi-region Blockmesh - Refinemesh issues.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2016, 05:56
Default Multi-region Blockmesh - Refinemesh issues.
  #1
Member
 
Join Date: Nov 2010
Posts: 62
Rep Power: 16
Doug68 is on a distinguished road
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?
Attached Files
File Type: txt blockMeshDict.txt (2.1 KB, 65 views)
Doug68 is offline   Reply With Quote

Old   February 18, 2016, 04:13
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
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
Antimony is offline   Reply With Quote

Old   February 18, 2016, 07:16
Thumbs up
  #3
Member
 
Join Date: Nov 2010
Posts: 62
Rep Power: 16
Doug68 is on a distinguished road
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!
Doug68 is offline   Reply With Quote

Old   February 18, 2016, 21:09
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
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
Antimony 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
[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


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