Structured Mesh of a 2D Cylinder in Gmsh

In this tutorial we draw and mesh the geometry of a 2D cylinder. A strucktured mesh is created by constructing a geometry of 5 blocks, and the external surfaces and the cylinder walls named appropriately to be imported into openFoam.
If you have any questions, leave a comment and Ill try to answer as soon as possible.

Пікірлер: 33

  • @saurabhtalele1537
    @saurabhtalele15374 жыл бұрын

    Really awesome sir please don't stop making new videos

  • @akshaypatil3462
    @akshaypatil34628 жыл бұрын

    Very helpful! Thanks a lot!

  • @tkoyama010
    @tkoyama0108 жыл бұрын

    This is useful. I really wanted to know how to make strucutred mesh.

  • @isan9357
    @isan93577 жыл бұрын

    I need to simulate an empty Sphere inside a 3D-Box. There is differentiation between these two geometries, 1- Sphere and 2- Box minus Sphere. How can I define this model in Gmsh?

  • @mollychen2170
    @mollychen21705 жыл бұрын

    Thank you for give this tutorial but if we want to do more to the modle such as defining the first layer distance ,how can we do that ?

  • @TONIO-ru4iu
    @TONIO-ru4iu8 жыл бұрын

    Thank you for your good video

  • @danieljuncu1842
    @danieljuncu18426 жыл бұрын

    Is it possible to mesh the interior of the cylinder as well? (while keeping the the element boundaries on the edge of cylinder)

  • @felixforrest9449
    @felixforrest94493 жыл бұрын

    mate, thank you so so much, this helped me a crazy amount

  • @Lynx-jl1fl

    @Lynx-jl1fl

    3 жыл бұрын

    Glad to could help:)

  • @virajbelekar1419
    @virajbelekar14198 жыл бұрын

    This seems like adaptive meshing! How can we do it for 3D geometries? Thanks in advance

  • @mbgnffb3
    @mbgnffb36 жыл бұрын

    Hi Martin. You did not seem to define the surfaces formed by block lines as physical groups. My confusion is that if I define them as symmetry walls, would I have flow normal to them or would they be treated as walls if I do not assign them a physical group.

  • @nicsmagar
    @nicsmagar7 жыл бұрын

    very helpful and informative.. please try to include interactive text or subtitles for better understanding

  • @fahdebnaalam3112
    @fahdebnaalam31127 жыл бұрын

    Hi Martin Einarsve, Thanks for this helpful video. Let's assume I follow everything till 14.06 and now I want to rotate all the surfaces together against the left most vertical line by 10 degree. Can you please suggest what should I do? I am expecting to get a typical pi-slice of cheese cake type shape, but not getting it. Thanks in advance. FYI, I am very new to Gmsh. Others are also welcomed to chime in. Thanks.

  • @zyzyxx367
    @zyzyxx3676 жыл бұрын

    Hi Martin, thanks for sharing this. Maybe you could share the final .geo file, too?

  • @DukesterNation
    @DukesterNation8 жыл бұрын

    Hi! Thanks for this video. Unfortunatly i do have a problem. The Mesh doesnt looks like yours and i often have crashes when pushing the 2D Button. Generally GMSH is very bugy for me. Do you have a helpfull advice for me? Would be nice. Thanks. ;)

  • @Lynx-jl1fl

    @Lynx-jl1fl

    8 жыл бұрын

    +DukesterNation Hey I agree, my experience as well is that gmsh crashes quite often, and therefore is far from ideal. But I guess thats the price to pay when working with open source software. I tried freeCAD but to me that was even worse. If you know of any better ope source meshing software, please let me know. Anyway when working with gmsh i recommend to take frequent backups of the textfile.

  • @AlokGuptakumar
    @AlokGuptakumar6 жыл бұрын

    Please give links to these files

  • @zhongli7468
    @zhongli74688 жыл бұрын

    Hi, thanks for the tutorial! Do we need to define the Volume in the Physical Groups as the last step?

  • @Lynx-jl1fl

    @Lynx-jl1fl

    8 жыл бұрын

    +ZHONG LI Hey, I suppose it depends on what program you want to import the msh.file into. In my case I mostly import it into openFoam, and in that case you do need to define the Volume as a physical group, otherwise openFoam does not recognize any 3D elements of the mesh, and openFoam can only work with 3D meshes.

  • @zhongli7468

    @zhongli7468

    8 жыл бұрын

    +Martin Einarsve Hi Thanks for the reply. I've got another question. Is there any way to determine the width of the mesh of the 1st layer surrounding the cylinder. As the size of the first layer of mesh is used to calculate y+, it is quite necessary to know this piece of information.

  • @Lynx-jl1fl

    @Lynx-jl1fl

    8 жыл бұрын

    +ZHONG LI Yes I think it should be possible, to find element size close to the boundary, but it seems to be a bit more diffucult to implement than in some other meshing softwares. Try to look throught the documentation and see if you find something useful gmsh.info/doc/texinfo/gmsh.html

  • @sumitzanje9660
    @sumitzanje96608 жыл бұрын

    I followed each and every step shown in you video, but I didn't get square meshing as you produced .Instead I'm getting somewhat random meshing ......may be because of that it's showing error after " gmshToFoam" command... Any solution ?????

  • @fernandocastillo3427

    @fernandocastillo3427

    5 жыл бұрын

    I think that the solution is to Recombine the faces

  • @mohammedfeham2035
    @mohammedfeham20357 жыл бұрын

    Hallo Mister Martin Einarsve, I have this fatal error when i try to import the mesh into OpenFoam, I don't understand why? Can you help please, I tried all the step you did, I want to know if you had to change something in the in tools, option, mesh or something in the software before you use it?--> FOAM FATAL IO ERROR: No cells read from file "gmsh_meshing.msh" Does your file specify any 3D elements (hex=5, prism=6, pyramid=7, tet=4)? Perhaps you have not exported the 3D elements? file: gmsh_meshing.msh at line 35956. From function void readCells(Foam::scalar, bool, const pointField&, const Foam::Map&, Foam::IFstream&, Foam::cellShapeList&, Foam::labelList&, Foam::List&, Foam::labelList&, Foam::List&) in file gmshToFoam.C at line 729. FOAM exiting Do you know how we can import the mesh into OpenFoam from XCFD-GEOM? in wich extention we have to save the file because we don't have .msh like extention? I hope for your answer Sir Thank you very much for your video Man is very usful

  • @mohammedfeham2035

    @mohammedfeham2035

    7 жыл бұрын

    I found the solution, just I don't put the volume condition in my case. I just want to know how we can import the mesh into OpenFoam from XCFD-GEOM? in wich extention we have to save the file because we don't have .msh like extention? Thanks Man

  • @MrMay78may
    @MrMay78may8 жыл бұрын

    Very useful. Many thanks. What about structured mesh of a 3D Cylinder in Gmsh? Any helpful tutorial.

  • @Lynx-jl1fl

    @Lynx-jl1fl

    8 жыл бұрын

    +Maimouna Al Manthari Hey, extending the mesh into 3 dimensions is easy. Just replace the cammand Layers{1} with Layers{N}, where N is the number of cells along the 3rd axis.

  • @MrMay78may

    @MrMay78may

    8 жыл бұрын

    +Martin Einarsve Hi Martin, because we all like your videos and regarding to your experience in Gmsh and OpenFOAM could you please provide another tutorial for the beam attached to the cylinder in 3d? If you could, that would be really grateful.

  • @jaa70
    @jaa704 жыл бұрын

    What do Rx and Nx mean ? :-( 14:38

  • @foadsf
    @foadsf3 жыл бұрын

    We have a Discord channel for Gmsh. discord.gg/SXxvTqg , would be a pleasure having you over there as well.

  • @siflaouichi1900
    @siflaouichi19008 жыл бұрын

    Thanks a lot for this video .But I'cant hear anything !!!!

  • @4th7throyaldragoonguards53

    @4th7throyaldragoonguards53

    6 жыл бұрын

    silence is golden

  • @MAli-lt3ch
    @MAli-lt3ch2 жыл бұрын

    Thanks for making this informative video. Can you please share your email id if I have any questions?