CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Commercial meshers] foamMeshToFluent & foamDataToFluent with multi-region meshes (https://www.cfd-online.com/Forums/openfoam-meshing/218202-foammeshtofluent-foamdatatofluent-multi-region-meshes.html)

Vishsel June 12, 2019 02:32

foamMeshToFluent & foamDataToFluent with multi-region meshes
 
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

jherb June 24, 2019 11:12

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


Vishsel June 25, 2019 07:32

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

jherb June 25, 2019 11:00

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.


All times are GMT -4. The time now is 06:26.