How to create your first mesh with cfMesh - tutorial

Поділитися
Вставка
  • Опубліковано 28 лис 2024

КОМЕНТАРІ • 87

  • @BruceMcLeod
    @BruceMcLeod 4 роки тому +9

    This is really helpful József, keep these tutorials coming.

  • @jay8293
    @jay8293 4 роки тому +2

    Very nice to watch your video in 2020. Thank you uploading videos!

  • @TheOnlyRaceEngineer
    @TheOnlyRaceEngineer 3 роки тому +2

    Thanks a million Jozsef Nagy for this awesome tutorial. Finally I can use a better tool other than snappy for my axial turbine because for me snappy didn't end up with smooth mesh around sharp blade edges.

  • @piotrmecht2500
    @piotrmecht2500 4 роки тому +7

    Thank you! I wasted so much time today on sHM parameters for my geometry, that it got me frustrated and it made me think of how slow I am at solving my problems just because of dozen not satisfying remeshings each time. sMH works fine most of the time, but sometimes it forces me to use unreasonably large amount of cells, just to get rid of few bad ones, sometimes the layer addition totally distorts cells away from the viscous sublayer, and sometimes I cannot force layer addition on some faces no matter what mesh quality settings I pick. And it is more frustrating the more simple shape appears to be in my opinion. This looks very simple and fast, I'll give it a try tommorow. It might be the real game changer

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому +2

      In my experience for some geometries snappy is the better choice, for some cfMesh. It is worth investigating though.

    • @piotrmecht2500
      @piotrmecht2500 4 роки тому

      @@OpenFOAMJozsefNagy I've been testing cfMesh for the past week and I have this conclusion that it is nearly impossible to create any mesh that passes "checkMesh -allGeometry -allTopology" with minor errors. The mesh looks great, it fits layers with ease, but it has a lot of skew cells, non-orthogonal cells, negative volumes, warped faces etc. and it doesn't have any additional parameters to improve this . Even the tutorial cases return bad quality meshes. Not in terms of how they represent real geometries, but in terms of cell quality criteria.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому

      @@piotrmecht2500 Thank you for your input. checkMesh is usually very strict. Do the simulations run?

    • @HolzmannCFD
      @HolzmannCFD 4 роки тому

      @@piotrmecht2500 just one question. Does foam handle the calculation with cfmesh in your case?

    • @piotrmecht2500
      @piotrmecht2500 4 роки тому +2

      @@HolzmannCFD I had some issues with convergence back then, but I figured out later, that the problem was the oscillating nature of flow i tried to capture with the steady state solver. I ran some successful simulations on cfmeshes since then. I've learned that I can 'manually' merge/zone my cfmeshes to perform cht or ami and I find cfmesh even more usefull now (i used to think that i'm forced to use sHM to do this). Lack of control over mesh quality criteria might be sometimes annoying, I had one geometry with shaped narrow channel and bunch of U-shaped heaters, which for me was so hard to properly mesh, that i gave up meshing and built a physical prototype with many sensors and see-through bulk :/ cfMesh is a great tool and I can't recommend it enough, it has its limitations, but you can find some work-arounds for them with other openFOAM tools

  • @thear1032
    @thear1032 4 роки тому +2

    Thank you so much for this great tutorial.

  • @zeitgeistdavid499
    @zeitgeistdavid499 4 роки тому

    Hell, really cfmesh is the best code for meshing. I think and I tried to use polyhedral mesh, and it was excellent and speedy but some time makes more nodes more than 9 million.

  • @janpeterbalmes9354
    @janpeterbalmes9354 4 роки тому +2

    Hi József, very helpful video!! One question: how did you create STL-files for the walls and the in- and outlet. I think these consist of surfaces and not of solids. If I try to create such surfaces, I cannot export them (e.g. with AutoCAD or Inventor) because there are no volumes. Best regards

  • @geirgeir8042
    @geirgeir8042 3 роки тому

    "Ruff" tutorial? Well played :D

  • @MohamadFawaz-ts4qx
    @MohamadFawaz-ts4qx 4 місяці тому

    Thanks József!

  • @caesarwiratama3303
    @caesarwiratama3303 4 роки тому +1

    Awesome, you are really helpful sir. Thanks

  • @leili8163
    @leili8163 4 роки тому +2

    thanks for this tutorial; very helpful

  • @venkatesanseetharaman5867
    @venkatesanseetharaman5867 4 роки тому +3

    Hello Mr. Jozsef,
    I'm using OpenFOAM 7 and I do not see cfmesh installed anywhere. Could you please instruct me on how I can install it?
    Sincere thanks

  • @rezakheilikhare
    @rezakheilikhare Рік тому

    Hi Jozsef, firstly, thank you for amazing tutorial. It was very easy to replicate. However, I have an issue how to handle baffle surfaces with cfMesh. I went through the user guide and as much as I searched the internet for an example of how to treat the baffles, I was unable to find any guide. I am wondering if you can point me to where to find the treatment of baffles.

  • @parth3791
    @parth3791 4 роки тому +3

    Thank you professor..!!

  • @imonghosh7286
    @imonghosh7286 7 місяців тому

    It is really helpful, thank you sir.

  • @ttanfield5616
    @ttanfield5616 Рік тому

    Fixed it now (answer below)
    I've been testing different meshing utilities, but i keep getting the same error saying that openfoam cant find the controlDict file. Fistly, i didn't think you needed a controlDict file for meshing (only a blockMeshDict or meshDict etc), but also, i do have a controlDict file. So i'm confused. I am in my home directory, the files are in the right places.
    the directory where the controlDict text file is this: /home/"my name"/cylinderTestCase/system/
    Any ideas?
    when i created the dict files, i made them all .txt . Since i wasn't copying any from tutorials and making my own up. I'm new to linux and Openfoam, so i dont know what file extension (if any?!) when creating - say - a meshDict or whatever. To fix it i copied a random controlDict file, replaced it with my meshDict info, and renamed it meshDict, and deleted the original.

  • @engineeringarts4509
    @engineeringarts4509 3 роки тому +1

    cfMesh is a pretty nice meshing tool in terms of its efficiency, simplicity and flexibility!!
    One thing I don't like it is that it accepts only the fms file containing patches and extracted feature edges (remark: it accepts stl as well but stl contains only patches, no edges). There're two ways to do - 1. using command surfaceFeatureEdges with a specified angle (remark: there's no full control on the selection of the feature edges), and 2. using Salome together with python script (remark: full control on selected feature edges but only in Salome).
    Do you know if there's any way to have full control of the feature edges selection if I use Blender for geometry buildup? Exporting stl (prepared in Blender) into Salome can be a way but a bit trouble.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому +2

      No, unfortunately. I mean theoretically it is possible to program an exporter for blender, but my python skills are unfortunately not up to the challenge. If anyone has the python master skills, I would be happy to support.

    • @engineeringarts4509
      @engineeringarts4509 3 роки тому +1

      @@OpenFOAMJozsefNagy Thanks for your reply. I'm also not an expert in python, so sad! It looks not an easy task.

  • @shivamgupta9967
    @shivamgupta9967 3 роки тому +1

    Hello Sir,
    I have installed v12 in WSL. I donot find the cfMesh in the modules. How to resolve the issue?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      If it is v2012 then it should work out of the box. It is in OpenFOAM/OpenFOAM-v2012/modules/cfmesh

    • @shivamgupta9967
      @shivamgupta9967 3 роки тому +1

      @@OpenFOAMJozsefNagy Sir,
      Thanks for reply. Having watched your video carefully. I checked the module folder but it. was empty. I downloaded the cfmesh separately and completed the rest video tutorials.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      @@shivamgupta9967 Great!

  • @Lilian13550
    @Lilian13550 4 роки тому +1

    cfmesh rocks!
    I'll never believe SHM is better, and the ones saying this are just bragging dandies. (I'm kidding obviously :D)
    However, I do believe SHM has a better layer addition tool (for who wants to invest the time), compared to the free version of cfmesh atleast which is not too controlable.
    I discussed with a guy using cfmesh for the core mesh, and snappy for the layers. Everything is possible haha.
    I think what is missing out there is a HEXA BLOCK type open-source mesher, ICEM-like. (not blockmesh).

    • @zorro9838
      @zorro9838 Рік тому +1

      What is your opinion about Salome ?

  • @zorro9838
    @zorro9838 Рік тому +1

    Cfmesh or salome ; which is better ?

  • @akwxanderdavid7686
    @akwxanderdavid7686 4 роки тому

    I did all you did, but can't read edge. and failed. please help me with how to use salome python script for creating edge and fms file. Because it dosen't work with the salome 9.3. Thanks

  • @HolzmannCFD
    @HolzmannCFD 4 роки тому +2

    Hi Joszef, thanks for your contribution. I will ask you why the second mesh is much coarser compared to the second run. I don't get the point here as you limited the max parameter while keeping the smaller one. I would have expected the same surface mesh with finer internal cells.
    Even the surface refinement was reduced from 0.3 to 0.1. So for me it should be vice versa if the meshing output.
    First mesh, coarser as the max parameter is 0.5
    Second mesh finer as the min parameter is 0.1
    However it seems that cfmesh is using some special refinement on the dog in the coarse case. Why it does not happen with the second ru., I don't know. Can you please clarify my doubts.?

    • @zeitgeistdavid499
      @zeitgeistdavid499 4 роки тому

      Hi, I couldn't generate layers in polyhedral mesh "pMesh" why??

  • @yuliu3333
    @yuliu3333 3 роки тому

    It seems Blender could not name the 'solid' in the stl file correctly so that part needs to be renamed manually in Notepad. Also the stl file has to be in ASCII format, otherwise 'cat' command and 'surfaceFeatureEdges' command would generate some weird result. Tested in OpenFOAM V2012 windows version(mingw64).

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      Try this video of mine: ua-cam.com/video/jqhla5SDonY/v-deo.html

  • @duranmartin7791
    @duranmartin7791 4 роки тому

    Hi Joszef,
    I much prefer the workflow of setting a cell size at the surface of interest and a growth rate from that surface, similar to what you demonstrated. Unfortunately, I have not been able to find a way to adjust the growth rate of the cells in cfmesh (you are able to adjust the distance from the surface for which the specified cell size holds true). When there is a big difference between the surface cell size and freestream cells, the transition between these cells is not smooth. In order to smooth these out the cells I use multiple box object refinements to gradually increase cell size to freestream, although this can be very time consuming. I am hoping you, or someone else, have a good suggestion of where to look for a solution.
    And as always, thank you for the videos!

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому +2

      All settings are in the docu. Additional features are in the paid version of cfmesh+.

    • @duranmartin7791
      @duranmartin7791 4 роки тому

      @@OpenFOAMJozsefNagy Thank you for the response!

  • @kewu6250
    @kewu6250 2 роки тому

    Hi, nice video. I have a question regarding to fluid-structure interaction. In your case, you only generate mesh beween bounding box and dog, we could say it fluid domain. What if I want to create mesh for solid domain (e.g. the dog) in the meantime? I'm wondering how to do it in cfmesh. Looking forward to hearing any constructive ideas.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 роки тому

      Separately and then join the meshes.

    • @kewu6250
      @kewu6250 2 роки тому

      @@OpenFOAMJozsefNagy Hi Jozsef, thanks for your reply. I tried to mesh them separately, but mesh at interface is not conformal. I'm not sure if there is one utility in cfmesh can merge the cells perfectly.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 роки тому

      @@kewu6250 No there is not.

  • @nicolascg8053
    @nicolascg8053 4 роки тому

    Wonderful work

  • @dibyendurana8624
    @dibyendurana8624 3 роки тому

    Respected Sir, the stl files that you have uploaded in github showing some co-ordinates with notepad ++. However , the stl files created using freeCAD are showing "Null" in notepad ++ although the figures are visible in paraview. Can you please help me in this regards??

  • @yem.t.3930
    @yem.t.3930 4 роки тому

    Thank you very much Sir!

  • @BobBeatski71
    @BobBeatski71 4 роки тому +1

    👍 Great stuff. Have a model that SHM cannot mesh because I 'only have' a combined 200GB of RAM.

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  4 роки тому +1

      :D Not bad. Hopefully cfMesh can handle it.

    • @vaibhavvb9898
      @vaibhavvb9898 5 місяців тому

      I know this is a very old comment. But I guess your background mesh in SHM is too fine and you use refinement levels upto 4 on that background mesh.

    • @BobBeatski71
      @BobBeatski71 5 місяців тому

      @@vaibhavvb9898 Yeah. The problem was a large metal enclosure with lots of small circuit boards attached to the front panel. Airflow for the enclosure was around the port on the front panel, some being only 0.5mm if I remember correctly.

  • @dmytrosky
    @dmytrosky 4 роки тому +1

    Thanks!!!! 👍

  • @leili8163
    @leili8163 4 роки тому

    How do you share ubuntu's file with windows? I have to copy them when I want to check them in windows GUI.

    • @Hari2100
      @Hari2100 3 роки тому

      With Windows, you can enable/use WSL and then can share the files between windows and Linux quickly. I do this regularly.

  • @lizayain
    @lizayain 11 місяців тому

    Why i cant do the surfaceFeatureEdges Combined.stl Combined.fms? The error is command not found. Can anyone help?

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  11 місяців тому

      Maybe you use the .org version. Please use .com for compatibility.

  • @maxwellutter3885
    @maxwellutter3885 4 роки тому

    What file extension arises after using cfMesh? Is it a .msh file?

  • @zainabmohammad8560
    @zainabmohammad8560 4 роки тому

    Thank you a lot

  • @jpk8588
    @jpk8588 3 роки тому

    the "touch open.foam" is skipped so briefly it is hard to follow. I just get an empty file

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому

      It is just an empty text file. The ending .foam i important for Paraview.

  • @oneuniverse6679
    @oneuniverse6679 4 роки тому

    Why did you changed the file from stl to fms?

  • @Anna-hd2eg
    @Anna-hd2eg Рік тому

    When I'm trying this i always get "surfaceFeatureEdges command not found". Why? :C

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  Рік тому +1

      Possibly you are using .org version and not .com

    • @Anna-hd2eg
      @Anna-hd2eg Рік тому

      @@OpenFOAMJozsefNagy Thank you very much, that helped a lot!

    • @lizayain
      @lizayain 11 місяців тому

      @@OpenFOAMJozsefNagy then can i just skip the surfaceFeatureEdges command?

  • @samidam7328
    @samidam7328 3 роки тому

    Hey Mr Jozsef Nagy,
    Thank you for the amazing tutorial.
    I have an issue with combining the stl files. I have attached the link to files here : drive.google.com/drive/folders/1Q-NOoOtFV2ui9Jc7u8rK279wVzxE4wIP?usp=sharing
    I would really appreciate if you could help.
    Thanks in advance

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  3 роки тому +1

      Yes, your files are in binary. Check the checkbox in blender for "ASCII" while exporting the STLs and it should work.

    • @samidam7328
      @samidam7328 3 роки тому

      @@OpenFOAMJozsefNagy Thanks!! it worked

  • @peterparrish7890
    @peterparrish7890 2 роки тому

    what did you want to render that was not family friendly? LAMO

    • @OpenFOAMJozsefNagy
      @OpenFOAMJozsefNagy  2 роки тому

      I don't remember, but I think it was a werewolf or something like that.

    • @peterparrish7890
      @peterparrish7890 2 роки тому +1

      @@OpenFOAMJozsefNagy ah ok👌 my imagination went wild for a minute. Love your videos!

    • @Codeynamics
      @Codeynamics 11 місяців тому

      ​@@peterparrish7890😂😂