splitMeshRegions does not create interface patch between regions
Hello,
Here's my problem, I'm trying to do a simulation with chtMultiRegionFoam to check the thermal evolution in the surface of a pipe. The geometry contain a fluid region with relatitive cold methan, around it a solid region for the pipe and arounnd the pipe a fluid region for hot air. The mesh was created on the Ansys Workbench (spaceClaim and fluent meshing) and was import to openFoam with the "fluent3DMeshToFoam" command. Then when I try to split the mesh into different region by typing in the terminal: Code:
splitMeshRegions -cellZones -overwrite Code:
Create time Even if I try to launch my simulation, I have the folowing fatal error: " not type 'mappedPatchBase' ". I tried to replace in the polymesh the 'wall' by 'mappedWall' but it's still not working. I would like to ask if some of you know how I can create those interface patch? If there is a command that can help to separate the patch shared by two region in two or any other clue. Thank you |
Hello Fsan,
This problem occurs when you have non-conformal mesh in Ansys. Make a conformal mesh in Ansys and you will get a mappedWall. Regards |
2 Attachment(s)
Hello Muhammad,
Thank you for you reply, I did check if the mesh was non-conformal or not but it look like a conformal mesh for me. I upload some screen of the different region separation so you can all tell me what you think about it. The green and red region are fluid while the white region is a solid. I can also upload the msh file if needed. Thank you |
The mesh is conformal.
Then, there might be a problem with your BC. Can you please upload your BC file (0/P or U, wherever is the problem) as well as your polyMesh/boundary file of problematic regions. Probably, you are not giving correct BC. Regards |
3 Attachment(s)
Alright I upload the boundary files for each of the region (fluidAir, fluidNG and solid). And I'll post just below the boundary condition for U:
For the fluid air region: Code:
/*--------------------------------*- C++ -*----------------------------------*\ Code:
/*--------------------------------*- C++ -*----------------------------------*\ The main problem I think is during the generation of the interface patch (solid_to_fluid and fluid_to_liquid) when i execute: Code:
splitMeshRegions -cellZones -overwrite And I don't know what other BC I could use for the T fields instead of the coupled BC. Thank you for your help. |
You are not getting any coupled wall during mesh conversion. I had this problem once when I had exported Ansys mesh to Openfoam. It was due to the non-conformal mesh. As I wasn't having any coupled wall in Ansys meshing.
It is looking like to me that you don't have coupled wall in Ansys meshing (because if there would be a coupled wall, you would have automatically got in OpenFOAM ). You can do these things: 1) Check in fluent if your interface type is coupled or not. I suspect, it wont be. 2) Create coupled interface and then export to OpenFOAM. Regards |
Thank you again for your reply.
I can't have acces to fluent now but when I will, I'll tell here if it would work or not. Regards |
Hi Muhammad,
Naming each side of the interface in fluent did make the job, openFoam now recognize my interface and patch them. Thank you for the help. Unfortunately, right now my simulation is not working as I wish, certaintly because of the BC, the scheme or the thermophysical model I don't know yet. Regards |
No interface found with spliMeshRegions
Dear All,
I am currently facing a very similar problem to the one that you describe here. Starting from a multi-region unstructured mesh built with ICEMCFD and exported in *.msh format, I'm importing it to openfoam using fluent3DMeshToFoam (fluentMeshToFoam not working). The import is performed correctly, however, when I employ splitMeshRegions to generate my subdomains, the interface patch is not recognized. The 3D mesh is apparently completely mapped, and I've tried with several way of dealing with the interface, e.g. with or without prism layer, or even with a mostly mapped structured mesh. I have tested splitMeshRegions with several different flags but the results is the same. The version that I employ is v2012. Do you know from where the problem might come? Thank you in advance for your valuable advise Dr. Eugenio Schillaci |
Hey Eugenio,
i faced a similar problem and solved it by using the createPatch dict and take the boundaries that i want to have mapped and directly write them in the file, the result is pretty much the same as with the automatically generated patches. |
You can follow those 2 Youtube Video to understand the procedure:
https://www.youtube.com/watch?v=04uqs6ERJa4 https://www.youtube.com/watch?v=NjUtTvzVULA Result: https://youtu.be/qdGUBnPqx7o At least in Salome it is the proper way to do it. you have to create a Partition of the solids in order to create an unique entity. Afterwards, define the external boundary only (Group of Faces) and the solids (Group of Volumes). That's all. |
All times are GMT -4. The time now is 11:26. |