Using topoSet to create cellSet
Hello Everyone,
My geometry consists of three regions (hot, cold and pipe). And I want to generate a heat source on one face of the "hot" box/region. I created mesh in salome and then importing my UNV file to Openfoam using ideasUnvToFoam utility. And to create regions, I used splitMeshRegions command in command line. Following are the commands I used: Code:
ideasUnvToFoam heat_transfer.unv | tee log.ideasUnvToFoam Can anyone please guide me how to do this? It would be a great help. Thank you. |
Hi,
You do not need a blockMeshDict file in order to access patches in your mesh. That information is also available in the boundary file located typically in constant/polyMesh. For topoSet itself, you need a topoSetDict which tells the code what to do. You can find a sample topoSetDict here: https://github.com/OpenFOAM/OpenFOAM...et/topoSetDict The best way forward is to choose the best option for you from the above link and use that to create whatever you want to create. Hope this helps. Cheers, Antimony |
Hi.
Thank you so much for your reply. I tried using topoSet based on the requirement. My toposetDict is given below: Code:
FoamFile Code:
Create time Code:
Creating finite volume options from "constant/fvOptions" Now, I can see that my faceSet and cellSet is created and fvOption is also reading it, But there is some problem with my faceSet (highlighted above). I don't understand what I did wrong. Can you please guide me if possible? Thank you |
Hi,
You could remove the files/sets that you created via topoSet and then try again with topoSet and running your case. From the error message, it seems like you had an older version of your cellSet with more entries and hence that seems to have messed up with the latest version. Hope this helps. Cheers, Antimony |
Thank you for your reply.
But I didn't get what do you exactly mean by older version of cellSet? where can I find that? because I don't have any cellSet before using topoSet. Once I run this topoSet command, then in the "sets" directory, I get two files (one is faceSet and one is cellSet). Below is the log file of my ideasUnvToFoam. Code:
Above you can see, tha my cellZone "hot" has 6396 patch face indices. Code:
For group 4 named hot trying to read 6396 patch face indices. Now, I am trying to make a cellSet from the patch "hotFace" which is a patch in the cellZone "hot". and for that I am using the topoSetDict file which is given below. Code:
actions But I am getting this error: Code:
--> FOAM FATAL ERROR: I don't understand why is it taking invalid values, while I don't have any other(or older cellSet) ? Am I making any mistake in making the topoSetDict file? Thank you |
Hi,
There doesn't seem to be anything wrong with your topoSetDict. There seems to be an issue with numbering by the looks of it, which in turn is causing issues for you. I have never used ideasUnvToFoam, so am not sure if there is some flag or setting that you need to use so that other OF operations can be performed on the converted mesh. Cheers, Antimony |
All times are GMT -4. The time now is 01:26. |