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/)
-   -   [Other] preserveFaceZones constraint on a multi region mesh (https://www.cfd-online.com/Forums/openfoam-meshing/198151-preservefacezones-constraint-multi-region-mesh.html)

ViktorKL January 29, 2018 04:23

preserveFaceZones constraint on a multi region mesh
 
1 Attachment(s)
Hello,

I am modelling a multi region mesh consisting of a solid and a fluid part in OpenFoam.
It is supposed to depict a duct structure.
The interfaces between solid and fluid part (INTERFf & INTERFs) are of "regionCouple" boundary type and transfered to zones by (eg. for solid region):

Code:

setSet -batch solid.setSet -region solid
setsToZones -noFlipMap -region solid

with solid.setSet:
Code:

faceSet solidFluid new patchToFace INTERFs
The same goes for the fluid region.

For using a customized conjugate solver for conform meshes on this model, owner and neighbour cells of the defined zone must be processed on the same processor.
So, I wanted to use the preserveFaceZones constraint in decomposeParDict like explained in:
https://github.com/OpenFOAM/OpenFOAM...composeParDict

I used:
Code:


preserveFaceZones (fluidSolid solidFluid);

in both the decomposeParDict of the fluid region and the decomposeParDict of the solid one.

When now decomposing the mesh automatically (eg. using simple, hierachical or scotch) the preseveFaceZone does not have any influence on the decomposition.
The single decomposed meshes are still inconsistently distributed.
As an example the zones for one processor are depicted on the following picture, where red shows the solid and blue the fluid zone.
For my purpose, these zones should be overlaying.

https://www.cfd-online.com/Forums/at...1&d=1517216127

I executed the decomposition first with fe4, then of4, fe32 and later of5 without any improvement.
Unfortunately, I also did not find any instructions or similiar topic on a forum explaining the preserveFaceZones constraint in detail. Therfore I opened this thread.

Is there any possibility using an automatic method for my purpose?
Maybe I did some severe mistakes in defining the zones or executing the decomposition.
Right now I am doing the decomposition manually with the setFieldsDict.
Thus, an automized decomposition would save me a lot of time in the future.


Thank you for your help in advance.


Kind regards,
Viktor

Saleh Abuhanieh October 30, 2018 07:15

Hi Viktor,


Did you solve it?

ViktorKL October 30, 2018 07:24

Hey,
Unfortunately no! I am still reliant on the manual decomposition of my multi-region meshes via the setFieldDict scheme.
Best regards,
Viktor

Saleh Abuhanieh October 30, 2018 08:55

Hi Vektor,


Could you please explain how you are decomposing manually?


I am facing the same problem, I opened a thread while ago:


https://www.cfd-online.com/Forums/op...region-bc.html

shanyeyun May 21, 2019 11:28

https://www.cfd-online.com/Forums/at...1&d=1517216127


Hi,

Have you solved the problem?
May I ask that how do you view mesh in each processor? After I decompose the mesh, when I tried to view in paraFoam it failed.


Thanks a lot

ViktorKL May 21, 2019 11:45

Quote:

Originally Posted by shanyeyun (Post 734330)
https://www.cfd-online.com/Forums/at...1&d=1517216127


Hi,

Have you solved the problem?
May I ask that how do you view mesh in each processor? After I decompose the mesh, when I tried to view in paraFoam it failed.


Thanks a lot

Unfortunately I haven't found a solution yet.
You can view single segements of the decomposed mesh by executing parafoam in the respective processor# subfolder.


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