CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > enGrid

Defining cellZones for MRF simulations in enGrid?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2014, 09:09
Default Defining cellZones for MRF simulations in enGrid?
  #1
New Member
 
Join Date: Apr 2014
Location: Sweden
Posts: 4
Rep Power: 12
Adam Persson is on a distinguished road
Hello,
I have recently started using enGrid for meshing, and find it rather useful. This far I have only used it for meshing simple geometry for simpleFoam, but I would like to add a rotating region using the MRF approach. Do you know if there is some way of defining cellZones for MRF using enGrid, or am I limited to snappyHexMesh?

Would it be possible to create the stationary region as one mesh file and the rotating region as another mesh file, merging these using mergeMesh, and then stitching the patches between regions using stitchMesh?
Do any of you know if the mesh of the two regions need to align in order to use the stitchMesh utility, or will the utility take care of this even if the discretization is not identical?

I am grateful for any input!
Best regards,
Adam

Last edited by Adam Persson; September 29, 2014 at 10:50.
Adam Persson is offline   Reply With Quote

Old   October 3, 2014, 07:23
Default
  #2
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 17
student666 is on a distinguished road
I think you already answered you're own question.

Have a look here:
http://www.sourceflux.de/blog/genera...snappyhexmesh/

Cheers.
student666 is offline   Reply With Quote

Old   October 3, 2014, 07:29
Default
  #3
Senior Member
 
M. C.
Join Date: May 2013
Location: Italy
Posts: 286
Blog Entries: 6
Rep Power: 17
student666 is on a distinguished road
And I suggest you to use cyclicAMI BC at interfaces, but when you use fvOption, don't forget to specify not rotating patches, or you'll have strange behaviour.

http://www.slideshare.net/fumiyanoza...using-openfoam

Bye
student666 is offline   Reply With Quote

Old   October 6, 2014, 05:04
Default
  #4
Senior Member
 
Oliver Gloth
Join Date: Mar 2009
Location: Todtnau, Germany
Posts: 121
Rep Power: 17
ogloth is on a distinguished road
Adam,

the functionality is already implemented, but not available from the GUI. If you edit the file foamwriter.cpp in the current master branch, you will see the following lines of C++ at the top of the file:

Code:
FoamWriter::FoamWriter()
{
  EG_TYPENAME;
  setFormat("Foam boundary files(boundary)");
  setExtension("");
  m_CreateCellZones = false;//true;
  m_NoDialog = false;
}
If you set the variable m_CreateCellZones=true, engrid should export multiple volumes into cell zones, rather than create multiple regions.

Best regards,
Oliver
ogloth 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
enGrid Surface grid parameters Claudio enGrid 5 April 29, 2015 04:32
Engrid mesh generation eebrah enGrid 1 July 29, 2014 09:16


All times are GMT -4. The time now is 21:11.