CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

MRF mesh generation using snappyHexMesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Rating: 2 votes, 4.00 average.

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
Posted in Uncategorized
Views 5086 Comments 6 Edit Tags Email Blog Entry
« Prev     Main     Next »
Total Comments 6

Comments

  1. Old Comment
    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.

    Anne
    permalink
    Posted November 21, 2011 at 06:24 by Anneg Anneg is offline
  2. Old Comment
    amgode's Avatar
    Hi,

    Quote:
    Originally Posted by Anneg View Comment
    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
    The MRF is not available as a boundary (it will appear in the boundary file with zero faces and can be removed for simulation purpose)but as a faceZone and a cellZone.

    BC need be specified on the mrf boundary.




    Quote:
    Originally Posted by Anneg View Comment
    Hi Amgode,

    Besides, is the mesh quality good enough at the interface between the stationary/rotating zone?

    Anne


    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 !!!!

    --
    Amol
    permalink
    Posted November 21, 2011 at 08:13 by amgode amgode is offline
  3. Old Comment
    Ok, I get it. Thank you very much!
    permalink
    Posted November 22, 2011 at 14:24 by Anneg Anneg is offline
  4. Old Comment
    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?

    thanks
    permalink
    Posted August 15, 2013 at 04:31 by nash nash is offline
  5. Old Comment
    Thank you very much
    permalink
    Posted December 29, 2017 at 06:59 by ruikeradity1 ruikeradity1 is offline
  6. Old Comment
    i used to create cell zone by setSet utility but, results of simulation came not good
    permalink
    Posted December 29, 2017 at 07:00 by ruikeradity1 ruikeradity1 is offline
 

All times are GMT -4. The time now is 04:38.