MRF mesh generation using snappyHexMesh
Posted November 11, 2010 at 09:28 by amgode
Generating a mesh with a MRF region using snappyHexMesh:
-- using cylinder option (primitive shape available in OF-1.6 and above) and defining it in the geometry sub-dictionary in snappyHexMeshDict
cylinder
{
type searchableCylinder;
point1 (0 0 10);
point2 (0 0 20);
radius 10;
}
Using this as a refinement surface and obtaining the cells inside as a MRF cellZone.
castellatedMeshControls -> refinementSurfaces
{
.......
......
cylinder0
{
level (2 2);
regions {}
faceZone MRF; //name of faceZone
cellZone MRF; // name of cellZone
zoneInside true; // to include all cells inside the enclosed cylinder
}
}
-- using MRF as a stl surface and giving the surface refinement as above
Using any of the above methods snappyHexMesh can be used to generate meshes for MRF problems.
The mesh quality is found to be very good when using OpenFOAM-1.7.1
-- using cylinder option (primitive shape available in OF-1.6 and above) and defining it in the geometry sub-dictionary in snappyHexMeshDict
cylinder
{
type searchableCylinder;
point1 (0 0 10);
point2 (0 0 20);
radius 10;
}
Using this as a refinement surface and obtaining the cells inside as a MRF cellZone.
castellatedMeshControls -> refinementSurfaces
{
.......
......
cylinder0
{
level (2 2);
regions {}
faceZone MRF; //name of faceZone
cellZone MRF; // name of cellZone
zoneInside true; // to include all cells inside the enclosed cylinder
}
}
-- using MRF as a stl surface and giving the surface refinement as above
Using any of the above methods snappyHexMesh can be used to generate meshes for MRF problems.
The mesh quality is found to be very good when using OpenFOAM-1.7.1
Total Comments 6
Comments
-
Hi Amgode,
I've been trying to do the same than you, and I understand the strategies you propose to use snappyHexMesh with MRF.
But in the first solution, if you create a cylinder that you use as a refinement surface, don't you have to specify a boundary condition on that cylinder? Which kind of BC do you use?
Besides, is the mesh quality good enough at the interface between the stationary/rotating zone?
Thanks for your inputs on that topic.
AnnePosted November 21, 2011 at 06:24 by Anneg -
Hi,
Quote:Hi Amgode,
I've been trying to do the same than you, and I understand the strategies you propose to use snappyHexMesh with MRF.
But in the first solution, if you create a cylinder that you use as a refinement surface, don't you have to specify a boundary condition on that cylinder? Which kind of BC do you use?
Anne
BC need be specified on the mrf boundary.
Quote:
The quality of the mesh generated using OF-1.7.1 is pretty good. Moreover, with OF-2.0.x the quality is good as well as the edges are captured when the featureEdge capability in OF-2.0.x is used.
Hope this helps !!!!
--
AmolPosted November 21, 2011 at 08:13 by amgode -
Ok, I get it. Thank you very much!
Posted November 22, 2011 at 14:24 by Anneg -
i have read MRFZone.H and it says that faceZone can optionally be used for MRFZone.
normally in the tuorial they just use the cellZone.
when is the case faceZone need to be defined for the MRFZone?
thanksPosted August 15, 2013 at 04:31 by nash -
Thank you very much
Posted December 29, 2017 at 06:59 by ruikeradity1 -
i used to create cell zone by setSet utility but, results of simulation came not good
Posted December 29, 2017 at 07:00 by ruikeradity1