Open Foam Tutorial: Simulation with 3D Geometry (.stl)

Поділитися
Вставка
  • Опубліковано 15 січ 2025

КОМЕНТАРІ • 106

  • @franckbismark1553
    @franckbismark1553 5 років тому +6

    Excellent ! Excellent ! Very impressive, clear and complete tutorial to introduce to snappyHexMesh. I searched a hole day for a good one without success. Thank you and I hope you will continue to help OpenFoam community.

  • @philippz.2364
    @philippz.2364 4 роки тому +7

    Wow, so structured and well explained. Thank you for sharing your knowledge!

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

    Perfect length, perfect depth in a well structured form. Thank you Lily for the best 3D openFOAM beginner tutorial so far.

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

    Thank you! That is one of the best and simplest tutorials ever in YB. This one is really helpful to solve some simple geometry cases, thanks again!

  • @kekodosky2082
    @kekodosky2082 7 місяців тому +1

    best opemfoam vid i have seen so far

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

    probably the easiest OpenFOAM tutorial to follow on YT, Thankyou so much!

  • @Filipcorobivblenderi
    @Filipcorobivblenderi 3 роки тому +3

    I think, we need more tutorials like this

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

    Very informative and thanks for all the ques posted and received answers

  • @igor_shepelev
    @igor_shepelev 2 роки тому +7

    Thanks a lot! Just a couple of issues in preGeo folder files. 1) constant\triSurface\cylinder.STL > cylinder.stl 2) 0\omega - add closing bracket at line 49.

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

    thank you very much , this is the best video about snappyhexmesh of openFOAM, looking forward more videos about it .thanks again!

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

    Thanks for sharing. Great tutorial.

  • @nihalsai7289
    @nihalsai7289 8 місяців тому

    how can I give material properties to the imported geometry

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

    i followed her instruction but the blockmesh doesn't run on the PC, why is that?

  • @janchristianbailo6267
    @janchristianbailo6267 Місяць тому

    hello, how did you make this preGeo folder?

  • @docd7779
    @docd7779 5 років тому

    Nice - big thanks, nice template for further exploring OF.

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

    Excellent tutorial! It seems like the vertices' coordinates in blockMeshDict have the z-coordinate in the opposite direction from the diagram you drew @2:37. Why is that?

  • @thatnicebee
    @thatnicebee 6 місяців тому

    if i have different dimension of geometry , can i have to change it on 0 folder?

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

    Hello, I am getting this error. Could you please help me.
    Reading surfaceFeatureExtractDict
    --> FOAM FATAL ERROR: (openfoam-2012)
    No surfaces specified/found for entry: cylinder.stl
    From int main(int, char**)
    in file surfaceFeatureExtract.C at line 305.
    I'm stuck here :( . I even checked whether the cylinder file is in ascii format or binary. I saved it again in ascii format, but it still gives me the same error. Could you please let me know what to do.

    • @clemensjanzarik1473
      @clemensjanzarik1473 2 місяці тому

      same here

    • @clemensjanzarik1473
      @clemensjanzarik1473 2 місяці тому +1

      Figured out the issue though, if anyone else has this issue make sure the stl file being referenced is renamed "file.stl" rather than how it saves as "file.STL".

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

    at 6:54
    How did you get the quick command to show up in after you right clikced? :)

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

    Please create more of these videos.

  • @kazufu5315
    @kazufu5315 5 років тому +5

    Does anyone have a problem with 0/omega?
    I got these lines: "Unexpected EOF while reading dictionary entry"

    • @kazufu5315
      @kazufu5315 5 років тому +3

      I got it. "}" was missing in my 0/omega. thank you.

    • @philippz.2364
      @philippz.2364 4 роки тому

      ​@@kazufu5315 Thank you for telling us. "}" was missing in my 0/omega, too. I whould have never find out without you ;)

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

      @@kazufu5315 Thank you. I had the same error and ' } ' was missing in mine too. I searched a lot and didnt get an answer anywhere. Thanks a lot.

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

    can you explain how you set up the terminal to automatically start running openFoam?

  • @chriswiese1348
    @chriswiese1348 6 місяців тому

    Great Video! Thanks!

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

    Thank you Lily!

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

    Hello, I'm trying to run the surfaceFeatureExtract, but a fatal error occurs saying that the cylinder.stl cannot be found. I have double checked it is in ASCII and haven't changed the name at all. Wondering if anyone else is seeing this.

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

      From below:
      Sumit Zanje
      10 months ago
      @Nick Along with the above-mentioned suggestion, rename the "cylinder.STL" the to "cylinder.stl". Reason- surfaceFeatureExtractDict has name cylinder.stl and not cylinder.STL so it's not getting that file.

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

      @@dogsled101 Thanks!

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

    How can I create other 3D geometry like square and then running this same simulation concept. can anyone help me out?

  • @weomi247
    @weomi247 5 років тому +1

    Thank you very much, it works perfectly

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

    But how do you create the blockMeshDict file? I just don't understand that part

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

    Have I put both files in triSurface? Could I just put the .stl file?

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

    can i perform this tutorial with other geometry?? I am trying but its not excecuting surfaceFeatureExtract step

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

    Hello
    Thank you for the video. There is valuable information but i have an issue into my terminal when i run surfaceFeatureExtract into preGeo. This says: bash: surfaceFeatureExtract: command not found.
    why is this error?
    Thank you for the information that you can give me!

  • @tommanuel2137
    @tommanuel2137 5 років тому +1

    wow, wonderful!! thanks

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

    Awesome, Very helpful

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

    The surfaceFeatureExtract utility has been superseded and replaced by the more
    general surfaceFeatures utility.

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

    Thank you very very very very very much :D

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

    Thank you very much!!!

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

    surfaceFeatureExtract does not work anymore

  • @007aha1
    @007aha1 4 роки тому

    i dont get why the object is in the middle of the mesh

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

    I am having problems when trying to use SurfaceFeatureExtract. Is anyone else having the same problem?

  • @ash.d.writes
    @ash.d.writes 2 роки тому

    From static bool Foam::entry::New(Foam::dictionary&, Foam::Istream&, Foam::entry::inputMode, int)
    in file db/dictionary/entry/entryIO.C at line 166.
    I got this error

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

    this is very helpful thanks

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

    Thank you for this video! Although if I want to run a sonicFoam case on a 3D geometry, how do I perform that?

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

    Thank you for the tutorial! I've a question about running surfacemeshextract. When i try to run this code, i got an error says: surfaceFeatureExtract
    surfaceFeatureExtract: symbol lookup error: surfaceFeatureExtract: undefined symbol: _ZN4Foam9UOPstream5writeERKNS_5tokenE
    I've been searching for a solution for the problem but i've got nothing, do you have any idea what this is about?

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

      @Killian Whyte Sir, I did as you said. I got:
      keyword surfaces is undefined in dictionary
      file: C:/Users/admin/Desktop/motorBike/system/surfaceFeaturesDict/motorBike.obj from line 20 to line 41.
      From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
      in file db/dictionary/dictionary.C at line 799.

  • @44bgood
    @44bgood 3 роки тому

    Great explanation! But that copy-paste-rename-delete workflow needs to be automated or something.

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

    Very useful video! Thank you very much for sharing (openfoam is a mess at the begining!)

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

    I created all my geometries in Solidworks, and all of them are centered at the origin, but in paraview they do not align .

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

    Thanks you its very good one

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

    you are awesome thanks a lot

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

    thank you, the cylinder works fine! I've tried to change the cylinder with my stl but I got some problems: my stl is a naca64 split in half simetrically but the simplefoam seems to compute the pressure only in the left half, so when I compute lateral thrust and drag with Paraview I get unconsistent results. Why this happens? Can you help me?

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

    Hi Lily,
    Thanks for the great tutorial! This helps a lot with figuring out how to set up my own case. One question though, opening paraview I see the mesh block but no cylinder. Looking through the other comments having this issue, I've changed to wireframe, unchecked skip 0, tried adding -overwrite to snappyHexMesh, but I'm still having no luck. Any ideas?
    Thanks!
    Edit: Figured it out, if anyone is having these issues make sure when you export your .stl that it exports in meters (same page as where you change to ASCII).

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

    Hi, may I know how did you created the PreGeo folder? I am creating a 3d geometry of a square. However, I couldn't do the simulation in OpenFoam. Can you guide and teach me on that? Really need your help

  • @yuqiwu6023
    @yuqiwu6023 5 років тому +1

    Thanks for your share. But, there is an issue when I executed "surfaceFeatureExtract" command. The error is shown below.
    Reading surfaceFeatureExtractDict
    Surface : "cylinder.stl"
    Feature line extraction is only valid on closed manifold surfaces.
    --> FOAM FATAL ERROR:
    Cannnot read "/home/ywu9/OpenFOAM/ywu9-5.x/run/preGeo/preGeo/constant/triSurface/cylinder.stl"
    From function bool Foam::triSurface::read(const Foam::fileName&, const Foam::word&, bool)
    in file triSurface/triSurface.C at line 360.
    FOAM exiting

    • @mohammaderaky2652
      @mohammaderaky2652 5 років тому

      same here I think .stl file is corrupted, you have to generate a new one

    • @sumitzanje9660
      @sumitzanje9660 5 років тому +2

      In the cylinder.STL file change the last line from "endsolid" to "endsolid cylinder".
      It will work.

    • @mohammaderaky2652
      @mohammaderaky2652 5 років тому

      @@sumitzanje9660 I tried this it doesn't work, you could upload the stl file

    • @sumitzanje9660
      @sumitzanje9660 5 років тому +6

      @@mohammaderaky2652 Along with the above-mentioned suggestion, rename the "cylinder.STL" the to "cylinder.stl". Reason- surfaceFeatureExtractDict has name cylinder.stl and not cylinder.STL so it's not getting that file.
      Try this, it will work.
      Thanks

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

      @@sumitzanje9660 This fixed it!

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

    allahına kurban Lily bacım

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

    Hi I need help please, i want to simulate a vertical axis wind turbine that uses Magnus effect, basically rotating cylinders, how hard it is to adapt this tutorial to test the VAWT in openfoam.
    All I have so far is an assembly of the top section without the generator.
    Looking forward to your advice.
    Tim

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

    Hi, I come to the point of surfaceFeaturExtract and I receive the following message in the terminal:
    --> FOAM FATAL ERROR: (openfoam-2012) No surfaces specified/found for entry: cylinder.stl From int main(int, char**) in file surfaceFeatureExtract.C at line 305. FOAM exiting
    Any idea what happens and how I could run it?

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

      rename cylinder.STL to cylinder.stl, fixed the problem for me

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

    this seems very complicated
    does it do nice graphs like openvsp vspaero does?
    i really like that
    but only analyses native geometry, nothing imported

  • @tommanuel2137
    @tommanuel2137 5 років тому +1

    After running blockMesh, surfaceFeatureExtract, and snappyHexMesh (with no errors) I run paraFoam but don't see the cylinder. Any advice?

    • @tommanuel2137
      @tommanuel2137 5 років тому +1

      Got it, have to check skip zero time under properties pane

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

      You can click PLAY BUTTON also!

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

    I imported my own geometry, but after excuted parafoam, I can't see it in paraview(Only a mesh cube I could see.) Could someone help me? Thanks

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

      I assume you ran blockMesh which is why you can see it on paraview. But did you also run snappyHexMesh before paraview too? If you did and that's not the issue, then it could be that you are viewing the block as a surface and your geometry is inside so you can't see it. Try changing the surface view to wireframe as in the video. Hope this helps.

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

      @@kingl5519 In fact I had ran snappyHexMesh and turn the view to wireframe. I'm also sure that the cube point coordinates had adjusted to cover my geometry completely. That's confusing.

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

      Ok, finally ,I find the solution, I should add -overwrite option to snappyHexMesh.

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

    Great video, but I'm getting this error whilst trying to run simpleFoam:
    --> FOAM FATAL IO ERROR:
    Unable to set reference cell for field p
    Please supply either pRefCell or pRefPoint
    file: /home/pascal/OpenFOAM/pascal-7/Worked_Tutorials/Cylinder/postRun/system/fvSolution.SIMPLE from line 39 to line 46.
    From function bool Foam::setRefCell(const volScalarField&, const volScalarField&, const Foam::dictionary&, Foam::label&, Foam::scalar&, bool)
    in file cfdTools/general/findRefCell/findRefCell.C at line 102.
    If anybody has any clues that might help, please share them.
    Thank you :)

  • @007aha1
    @007aha1 4 роки тому

    really gut thank you !!!!!!!!!!!!!!!!!!!!!!!!!!!

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

    Hi Lily,
    After simpleFoam I got such error:
    No MRF models present
    No finite volume options present
    Starting time loop
    streamLine streamlines:
    --> FOAM FATAL IO ERROR:
    keyword direction is undefined in dictionary "/home/marcin/OpenFOAM/marcin-7/run/PreGeo/system/controlDict.functions.streamlines"
    file: /home/marcin/OpenFOAM/marcin-7/run/PreGeo/system/controlDict.functions.streamlines from line 13 to line 20.
    From function const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 570.
    Do you know how to solve it?
    Thanks in advance.

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

      Hi Marcin,
      I’ve fixed this error, maybe caused by the different version.
      I comment out ”#includeFunc streamlines“ in system/controlDict. (Openfoam v6)

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

    Thank you! But when I ran the 'surfaceFeatureExtract' command, it appeared error 'surfaceFeatureExtract: symbol lookup error: /usr/lib/libedgeMesh.so: undefined symbol: _ZNK4Foam11regIOobject11writeObjectENS_8IOstream12streamFormatENS1_13versionNumberENS1_15compressionTypeE'. Does anyone know why? I'm new to the openFoam and it's better that could explain in detail. Thanks in advance!

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

      I was having a similar problem, remember to save the stl file as ASCII. You can open the Solidworks part in Onshape and export it as stl if you don't have access to SW.

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

      Bruno Tojo Thanks, Bruno! I think I found the solution. The problem is “surfaceFeatureExtract” might be a old commander for openFOAM 8. I chose “surfaceFeatures” instead. It works fine now.

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

      @@vicgodlee 哈喽,如果改用surfaceFeatures命令的话,那请问你是怎么配置surfaceFeaturesDict文件的呢?

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

      @@chuanzhong3977 你好,直接在‘Surface’里面添加你的stl文件就可以,需要注意的是,你的模型里面不可以有‘洞’,也即是需要是个实体,你可以先用圆柱试一试。

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

      @@vicgodlee 你好,我也在学openfoam,可以加个好友共同交流吗?1663586841@qq.com

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

    THANKS A LOT :D

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

    Hello and thank you for this tutorial. I have an error message coming up, while trying to execute surfaceFeatureExtract which is looking like this:
    Create time
    Note: Feature line extraction only valid on closed manifold surfaces
    Reading surfaceFeatureExtractDict
    --> FOAM FATAL ERROR:
    No surfaces specified/found for entry: cylinder.STL
    From function int main(int, char**)
    in file surfaceFeatureExtract.C at line 307.
    FOAM exiting
    Do you have any idea how to solve this issue, please?

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

      Hi, have you found any answer to this question? I have the same error message.

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

      @@ungedrageset I have. The reason this command did not worked in my case was that i used OpenFOAM from openfoam.org at this time. And this variant did not had this command in its command folders. After downloading from openfoam.com, it worked. I know it sounds stupid, but in my case this was the solution.

    • @王冠驊-m5j
      @王冠驊-m5j Рік тому

      Make sure the stl file being referenced is renamed "file.stl" rather than how it saves as "file.STL".

  • @francootaola9172
    @francootaola9172 5 років тому

    hello, can someone tell me how/what is the minGW function or uselfuness of it? i have installed openfoam with linux in windows, like openfoam web page says, and I CAN READ FROM THE MINgw web page that it is a c++ compiler, so i can imagine that is to use OF without the trouble of instaling linux? is that so? I would appreciate if someone can explain me...

  • @elliott8931
    @elliott8931 5 років тому

    My university uses Autodesk Inventor instead of SolidWorks, and Inventor saves its files with the extension .ipt instead of .prt. I have also not been able to get it to work using these .ipt files. Is it absolutely necessary to have a .prt file? Is there a way to change what file the program is looking for? Inventor also won't export files to .prt

    • @BobBeatski71
      @BobBeatski71 5 років тому +1

      I use Rhino for my models and export my data as STL. STL is what you want to be using.

  • @ashok305
    @ashok305 5 років тому

    does any one know how to import CFD result into Unity

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

    Thank you very much for presentation. It's very practical/ useful.
    Keep making research.
    stop splashing/eating during presentation!!! it's enrages! >/

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

    Hi! Nice video! When running simpleFoam I have a FATAL ERROR with this:
    --> FOAM FATAL IO ERROR:
    keyword direction is undefined in dictionary "/home/Desktop/cylinder/postrun/system/controlDict.functions.streamlines"
    I can't find that dictionary, can anybody help me?

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

      Run it with openfoam v5 instead of v7.

  • @AhsanKhanPhD
    @AhsanKhanPhD 5 років тому

    I have a question, can someone please help me out?
    I want to run the solver multiPhase/interFoam/RAS/floatingObject but by default it runs with a cuboid body, I have a cylindrical body in .stl format and I want to use it as a floating object.
    How can I do this? Thanks to this video, I have been able to insert the cylindrical mesh in blockMesh by using snappyHexMesh, but how can I use the cylinder as a floating object? Thanks if someone can help me out, I am doing a univerisity homework :)

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

      excuse me, are you already finish about your work. because now I also have a problem similar to the one you are facing

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

    really, it do not working with me. I have tryed many times and it should be some magic to work perectly in this video. GIVE UP

  • @Nuno_Ponte
    @Nuno_Ponte 10 місяців тому

    ok