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/)
-   -   [snappyHexMesh] defining non-cubic blocks to toposet (https://www.cfd-online.com/Forums/openfoam-meshing/191243-defining-non-cubic-blocks-toposet.html)

sarajamali August 4, 2017 08:55

defining non-cubic blocks to toposet
 
Dear all,
I am beginner in openfoam and would be thankful to have your recommendations.
i want to define some blocks in toposet which are not rectangular cubes, they are Trapezoid cubes, so i cant use boxtocell . how can i define my blocks in toposet?
Thanks

Antimony August 15, 2017 05:35

Hi,

Perhaps the option "rotatedBoxToCell" meets your requirements?

https://openfoamwiki.net/index.php/TopoSet

Cheers,
Antimony

sarajamali August 26, 2017 05:00

Quote:

Originally Posted by Antimony (Post 660775)
Hi,

Perhaps the option "rotatedBoxToCell" meets your requirements?

https://openfoamwiki.net/index.php/TopoSet

Cheers,
Antimony

Hi Antimony,
thanks a lot for your response, i tried "rotatedBoxToCell", for some special cases it works, but it doesn't meet what i want exactly, or maybe its better to ask how can i define a pyramid region to toposet?

Antimony August 26, 2017 22:58

Hi,

I don't think there is a way to define a pyramid region directly in topoSet. The only reference to pyramids that I could find was on choosing by cell shape type (hex or pyr or tet etc).

If you know how and where exactly the pyramid should be, you could perhaps do one of two things:

1. Create a STL of the pyramid and use surfaceToCell to create cellSet based on the pyramid STL

2. Break your pyramid into many "boxes" and repeatedly use boxToCell or rotatedBoxToCell as the case maybe. This would again, provide only an approximation, but might still be doable.

Hope this helps/

Cheers,
Antimony

sarajamali August 29, 2017 09:41

Dear Antimony,
thanks for your comment, I try the first method you mentioned.

Regards
Sara


All times are GMT -4. The time now is 15:34.