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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 12, 2019, 02:32
Default foamMeshToFluent & foamDataToFluent with multi-region meshes
  #1
New Member
 
Vishsel
Join Date: May 2019
Posts: 20
Rep Power: 2
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   Yesterday, 11:12
Default
  #2
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 494
Rep Power: 14
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   Today, 07:32
Default
  #3
New Member
 
Vishsel
Join Date: May 2019
Posts: 20
Rep Power: 2
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   Today, 11:00
Default
  #4
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 494
Rep Power: 14
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
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 1 March 7, 2018 07:46
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 15:45.