[Gmsh] Structured meshing
F. A. Portela
felipe.alves.portela at gmail.com
Tue May 14 11:59:21 CEST 2013
Hi Muhammad,
The transfinite algo can only mesh 3 or 4-sided geometries (as the error
indicates when you open try8.geo). I suggest you split your geometry into
rectangles (should be straight-forward in your case) and it should work. I
attached the .geo with the changes I mentioned (I commented out the
unnecessary lines you had before). This might not be the most
straightforward way to do this though, but it works.
About using the mesh in OpenFOAM: to apply boundary conditions you will
have to have defined surfaces as "Physical" within Gmsh (e.g. by doing
Physical Surface ("inlet") = {1,2,3}), you will have to use the same names
in OpenFOAM. For the inner cells you will need a physical volume (I called
it "volume" in your try8.geo). If you need to use periodic conditions then
you have to do some other changes, so let me know if this is the case!
Cheers,
Felipe
--
Felipe Alves Portela
MSc student in Aerospace Eng. at TU Delft
http://www.linkedin.com/in/felipealvesportela
On 13 May 2013 19:38, Muhammad Umar Afzal <umar82088 at gmail.com> wrote:
> Hi All,
> Attached files describe which I want to mesh relatively with structured
> grid. When I export elements into OpenFOAM, its says there is no elements
> present, what could be the reason? Please advise me.
> Many Thanks
> Muhammad Umar Afzal
>
>
> _______________________________________________
> gmsh mailing list
> gmsh at geuz.org
> http://www.geuz.org/mailman/listinfo/gmsh
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130514/34a5d5b8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: try8.geo
Type: application/octet-stream
Size: 683 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130514/34a5d5b8/attachment.geo>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: walledbox5.geo
Type: application/octet-stream
Size: 1761 bytes
Desc: not available
URL: <http://www.geuz.org/pipermail/gmsh/attachments/20130514/34a5d5b8/attachment-0001.geo>