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

[Commercial meshers] foamMeshToFluent & foamDataToFluent with multi-region meshes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2019, 02:32
Default foamMeshToFluent & foamDataToFluent with multi-region meshes
  #1
Member
 
Vishnu
Join Date: May 2019
Location: Tamilnadu, India
Posts: 55
Rep Power: 6
Vishsel is on a distinguished road
Hi all,
I have 5 fluid domains. Each fluid domain exported individually from ansys mesh (as .msh file). For creating boundary face between the domains, i have exported individually from .msh and run it in openfoam.
By using mergeMeshes command, i just merged the fluid domains ( with boundary face creation in between the fluid domains).

After solving operation got finished, I have transfered the mesh and data file from OF to Fluent (files in fluentInterface folder).
And foamMeshToFluent & foamDataToFluent command creates fluent data and mesh files in that folder.

After reading the both mesh and data files in fluent, I have only one fluid body (all 5 fluid domains together to formed as 1 fluid body, while creating Iso-surface).

how to transfer the data as it is from the openFOAM to Fluent??? I need 5 fluid domains as in openfoam in fluent. How can i get ??


Thanks in advance,
Vishsel

Last edited by Vishsel; June 12, 2019 at 07:06.
Vishsel is offline   Reply With Quote

Old   June 24, 2019, 11:12
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
There is a command called splitMeshRegions used in OpenFOAM often for chtMultiRegionFoam simulations.



You can find its use in the following tutorials:
Code:
find $FOAM_TUTORIALS -name "All*" | xargs grep splitMeshRegions
find $FOAM_TUTORIALS -name "All*" | xargs grep splitMeshRegions
/home/XXX/OpenFOAM/OpenFOAM-6/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeater/Allrun:runApplication splitMeshRegions -cellZones -overwrite
/home/XXX/OpenFOAM/OpenFOAM-6/tutorials/heatTransfer/chtMultiRegionFoam/heatedDuct/Allrun:runApplication splitMeshRegions -cellZones -overwrite
/home/XXX/OpenFOAM/OpenFOAM-6/tutorials/heatTransfer/chtMultiRegionFoam/reverseBurner/Allrun:runApplication splitMeshRegions -cellZonesOnly -overwrite
/home/XXX/OpenFOAM/OpenFOAM-6/tutorials/heatTransfer/chtMultiRegionFoam/coolingSphere/Allmesh:runApplication splitMeshRegions -cellZones -defaultRegionName fluid -overwrite
/home/XXX/OpenFOAM/OpenFOAM-6/tutorials/heatTransfer/chtMultiRegionFoam/multiRegionHeaterRadiation/Allrun:runApplication splitMeshRegions -cellZones -overwrite
/home/XXX/OpenFOAM/OpenFOAM-6/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun:runParallel splitMeshRegions -cellZones -overwrite
jherb is offline   Reply With Quote

Old   June 25, 2019, 07:32
Default
  #3
Member
 
Vishnu
Join Date: May 2019
Location: Tamilnadu, India
Posts: 55
Rep Power: 6
Vishsel is on a distinguished road
Hi jherb,

Thank you for your reply.

First I have exported the mesh files of domains individually and for merging used mergeMeshes and to find pressure values at internal patches, i have used cyclicAMI patch type noOrdering transform for interior boundary faces on between the domains.
And my doubt is when i have to use splitMeshRegion command for my case?

Thanks in advance,
Vishsel
Vishsel is offline   Reply With Quote

Old   June 25, 2019, 11:00
Default
  #4
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 21
jherb is on a distinguished road
I have never used splitMeshRegions for this purpose, but I think, these ideas might help you:
When you created your OpenFOAM mesh from the fluent mesh, automatically cell sets were created. Look for them in constant/polyMesh/sets. I am not sure, but perhaps they survived the merging of the different meshes.

Then you can use those cell set regions to split your (one) mesh, you used for your simulation back into different meshes which you can convert back to a fluent mesh.
jherb 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
Can I use fvOptions to couple a solid region and a fluid region? titanchao OpenFOAM Running, Solving & CFD 4 January 14, 2022 07:55
2D meshes have overlapped region gafoorcp AVL FIRE 3 March 7, 2015 02:28
[snappyHexMesh] Multi Region Meshing bruce OpenFOAM Meshing & Mesh Conversion 12 July 31, 2013 10:09
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 08:19


All times are GMT -4. The time now is 05:41.