topoSetDict by Mesh from another Software
Hi,
I have imported a mesh from another software to OpenFOAM. Right now, I have all the faces in the boundary file in polymesh. I am using chtMultiRegionFoam. How can I set the topoSetDict? In the sourceInfo, I would like to put all the faces that make the cell. What should be the keyword in the source? Is that my strategy correct? Regards, Parisa |
In a better way to ask, suppose that I have all the boundary faces.
How can I make the zone with the available faces, and then set the zone. Thanks, Parisa |
Greetings Parisa,
Since you didn't provide specific details, I'll have to give a general answer. You can use this command to find tutorials that use topoSet: Code:
find $FOAM_TUTORIALS -name Allrun | xargs grep -sl topoSet Code:
find $FOAM_UTILITIES -name topoSetDict Bruno |
3 Attachment(s)
Good Morning,
I am very interested on this thread, so I will detail my problem. I guess it is exactly the same that Parisa_Khiabani had. I have been working with engrid and I have a complete model (includin its mesh) which consists of a cube inside another cube. The fluid will enter from the inlet and it will go out by the outlet, and the idea is to analyse the influence on it about temperature. For this purpose I have worked with chtMultiregionSimpleFoam. I achieved to do the same but creating the 2 cubes directly from OpenFoam, the first one with the mesh and the second one as a region in topoSetDict. PHP Code:
PHP Code:
If I just substitute this files in the polymesh of my OF model, it gaves problem with the fluid region. I have been testing and I got the conclusion that the cube of my engrid file would be cutting the fluid region, so it doesn't know how to interpret it. So my question to the forum is: What I have to do to have my element of study (in this case is the little cube, but it could be a cylinder or whatever) to make it work as a region in topoSetDict and not having to create it?? In this case a cube it is not a problem, but you can imagine if it is a complex structure. I guess it should be similiar to what I found here: https://github.com/OpenFOAM/OpenFOAM...SetDicthttp:// between lines 145 and 158. I post it here but I don't know why it doesn't paste well. // // Select based on surface // source surfaceToCell; // sourceInfo // { // file "www.avl.com-geometry.stl"; // useSurfaceOrientation false; // use closed surface inside/outside // // test (ignores includeCut, // // outsidePoints) // outsidePoints ((-99 -99 -59)); // definition of outside // includeCut false; // cells cut by surface // includeInside false; // cells not on outside of surf // includeOutside false; // cells on outside of surf // nearDistance -1; // cells with centre near surf // // (set to -1 if not used) // curvature 0.9; // cells within nearDistance // // and near surf curvature // // (set to -100 if not used) // } I attach the following pictures: engrid model and the case made directly from OF with this solver. If it is necessary to attach any further information don't hesitate to ask. This is quite important for my and I don't know how to continue. Thank you in advance! |
All times are GMT -4. The time now is 09:39. |