I missed this in my CFD geometry workflow for OpenFOAM simulations for years. This is how I fix it.

In this video I tell you the story how I fixed my #geometry workflow for #CFD simulations in #OpenFOAM using the open-source tool #blender.
These are the lines you have to enter:
line 3: import os
line 189: header = os.path.basename(filepath)[0:-4]
Here are the links to the older two videos on geometry creation:
• [Community video] - Wh...
• How to create and expo...
Here is the link to the video of #blender guru:
• Blender 2.8 Beginner T...
Here is the link to the video with the first simulation in #OpenFOAM
• How to run your first ...
You can find me on LinkedIn:
/ jozsef-nagy-2b37a0a9
You can find me on Patreon:
www.patreon.com/user?u=15620295
You can find the #OpenFOAM tutorial collection here:
wiki.openfoam.com/Tutorials
This material is published under the creative commons license CC BY (Attribution). If you plan to use it, please acknowledge it.

Пікірлер: 55

  • @OpenFOAMJozsefNagy
    @OpenFOAMJozsefNagy Жыл бұрын

    Guys, I misspoke at 9:27 this is the geometry video I meant: kzread.info/dash/bejne/lGScmq-xdbC3gLA.html

  • @shahbozbek_abdunabiev
    @shahbozbek_abdunabiev6 ай бұрын

    Thank you Jozsef! A while ago I discovered Blender for animations, but I did not know about its use case for OpenFOAM CAD editing. Now, I can combine two wonderful open source tools.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    6 ай бұрын

    Very good!

  • @cronos864
    @cronos864 Жыл бұрын

    I'm loving the new format, it's fun to watch while still being very informative.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    Thank you! I thought it was time for a bit of change.

  • @punkisinthedetails1470

    @punkisinthedetails1470

    Жыл бұрын

    We all agree

  • @mohammadmahmudulhuq3164

    @mohammadmahmudulhuq3164

    Жыл бұрын

    @@OpenFOAMJozsefNagy breath of fresh air...

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    @@mohammadmahmudulhuq3164 Thank you

  • @ammoniumhydroxide9739
    @ammoniumhydroxide9739 Жыл бұрын

    OMG, this is the ultimate compatibility tool i have been looking for! Thanks for sharing!

  • @matteof6340
    @matteof6340 Жыл бұрын

    Brewer and learning CFD for seeing what is happening and hobby, thanks!

  • @cris7472
    @cris7472 Жыл бұрын

    I'll admit i was looking for a good documentation source on OpenFOAM a while ago, found your channel, subscribed and then thought: All of this is too complicated, why is there no unified editor ? Why do I then have to manually edit the script and reference every mesh by name? ... and so dropped the matter. With this one video you've resolved all of those issues and more. Having the quick key shortcuts for translate/scale on screen and (almost) the full flow means I'm actually confident enough to give this another shot. You could probably make another high-level "quick intro to openfoam" video that integrates this as well as the basics for people that haven't heard of this yet, but this video is eye-opening by itself. Final thought: This is probably the first time that i've seen on youtube where such a click-bait sounding video title of "Don't miss out on this" is 100% justified. Good job!

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    I thought I already answered here, sorry. Somehow it got lost. This is a very good input. I was thinking about something similar in the next video. I may be able to incorporate some of your points there.

  • @nicolaandreini7320
    @nicolaandreini7320 Жыл бұрын

    Thank you for the amazing contents!

  • @randytucker3083
    @randytucker3083 Жыл бұрын

    Wonderful work

  • @mahmou6
    @mahmou6 Жыл бұрын

    Awsome, József!

  • @fedezabaleta
    @fedezabaleta Жыл бұрын

    This is awesome! Thanks Jozsef

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    I am glad.

  • @ryanmcgowan3061
    @ryanmcgowan3061 Жыл бұрын

    One thing about OpenFoam that makes it feel more complicated is that the tutorials give you the impression that there's a ton of things you need to address to create a project. One simple fix would be this: Stop calling them tutorials, and start calling them templates. They aren't even tutorials anyway. They are template projects.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    My next video will focus on this. Let's see, what you think about that.

  • @ryanmcgowan3061

    @ryanmcgowan3061

    Жыл бұрын

    @@OpenFOAMJozsefNagy Can't wait! Simple End-to-end tutorials starting from a simple custom model are the best format, IMO.

  • @anirbandas4201
    @anirbandas42015 ай бұрын

    Thnks for such an amazing video.

  • @jakariausman6025
    @jakariausman60255 күн бұрын

    Thanks for sharing

  • @TmTNaturalFarming
    @TmTNaturalFarming Жыл бұрын

    Hey Jozef, eager to hear on Christmas competition for this season!

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    Due to the lack of interest in the last years, this year there is no competition.

  • @louispasnik5976

    @louispasnik5976

    Жыл бұрын

    I am hopeful Jozef sets it up for 2023!

  • @martinopinto6323
    @martinopinto6323 Жыл бұрын

    Hi Jozsef! Could you make a video on how to monitor mass and volumetric flow rate with function objects on already existing patches? Seems an easy task but I couldn't find any clear information online. That would be very nice, thanks for everything you do!

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    If you need a fast solution, I have several videos on this on Patreon.

  • @chrisyates6522
    @chrisyates6522 Жыл бұрын

    Great video! I'm a CFD noob but have been using Blender for a long time. It's only in more recent years that I've been able to use it more commercially. I have a noob question! Could using a Blender sub-surface modifier to smooth sharp-edged geometry (such as the corners of a room) enhance the CFD meshing?

  • @Mocktailmetal
    @Mocktailmetal Жыл бұрын

    Wish I could know this during my PhD. It was painstakingly painful to go from proprietary Geometry making tool to openfoam meshing. And on top of that, geometrical domain was 10 times more complex than this one.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    Hope it helps now.

  • @yirenxindudu
    @yirenxindudu Жыл бұрын

    I would say the locations of the points and lines of the stl file have a effect on the finial mesh topo

  • @deepakkpawar7770
    @deepakkpawar7770 Жыл бұрын

    Great video...can we import any VTK files in Blender?

  • @sikandaryosufzai2790
    @sikandaryosufzai2790 Жыл бұрын

    Thank you very much for your efforts done so far, I newly started learning OpenFOAM. Can we draw a complicated structure like (Piano Key Weir or Lybrinth Weir) in Blender? or we should draw it in AutoCAD and import to Blender.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    It depends on your preference. If you prefer AutoCAD then go for it!

  • @pathfinder.george
    @pathfinder.george Жыл бұрын

    Hi, I designed a concept vehicle in Blender (mesh with sub-surface). Is there any way I can do a CFD with say 90% accuracy within Blender or OpemFOAM? Ideally it would compute on my machine (Mac). Thanks for the video!

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    I am not sure about blender, but OpenFOAM can do it. Yes. You can install OpenFOAM on Mac, but I have zero experience with the bitten apple. Sorry. I know several people who use OF in Mac though. The OF part will come in my next video.

  • @nizamuddinabdulazizthottol6030
    @nizamuddinabdulazizthottol6030 Жыл бұрын

    Hello sir, I have a doubt, can I use Solidworks instead of blender? Thank you...

  • @ColemanWilson-g6v
    @ColemanWilson-g6v12 күн бұрын

    I do wonder what the benifet of this is vs just using FreeCAD's cfdOF tool to name faces and the meshing tool in it?

  • @ColemanWilson-g6v

    @ColemanWilson-g6v

    12 күн бұрын

    Also does a program like Fusion 360 have similar functionality or does Blender allow for more ability to create meshes?

  • @mahwish1231
    @mahwish123110 ай бұрын

    Hi Jozsef, please made video coupled simulation of PFC and openFOAM

  • @James-sh4zf
    @James-sh4zf10 ай бұрын

    I hate blender, just couldn't be bothered manipulating that pointless cube when I had CAD software to produce my files. After watching this tho, it seems useful (begrudgingly!), for what I need. I have created a 3D .tif file in Matlab from CT image slices, and I need to convert to a .stl file and name the faces, inlet and outlet. I have imported this file into Paraview, but do you recommend that I convert the geometry file to an stl file in paraview, and then transfer to blender, or could I just slice up the deometry in Paraview instead and export individual .stl files?

  • @stimpyfeelinit
    @stimpyfeelinit Жыл бұрын

    Please do a tutorial on how to pull an entire CFD animation from paraview into blender! I can't get any of the scripts I found online to work!

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    You can't pull the entire animation, because paraview only loads one time step at a time. This means, that it also only exports files per time step. Do you need a script in paraview, which exports all time steps and an import script for blender.

  • @kanncad1712
    @kanncad17122 ай бұрын

    sehr gute Arbeit und Danke dafür kann man auch bitte Fragen auf Deutsch stellen ? ich bin ziemlich neu hier und komme noch nicht zurecht damit

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    2 ай бұрын

    Ja, klar.

  • @kanncad1712

    @kanncad1712

    2 ай бұрын

    ich habe ein ähnliches Model in Creo erzeugt und als stl Datei exportiert. bei mir funktioniert alles bis auf "surfaceFeatureExtract" . da bekomme ich die folgende Meldung: "Note: Feature line extraction only valid on closed manifold surfaces"

  • @punkisinthedetails1470
    @punkisinthedetails1470 Жыл бұрын

    FreeCAD is also good.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    Of course. If you prefer, go with FreeCAD.

  • @punkisinthedetails1470

    @punkisinthedetails1470

    Жыл бұрын

    @@OpenFOAMJozsefNagy Blender is great. Also has a CAD type tool now. Some users may be overwhelmed by the Blender interface. FreeCAD may be more familiar for the average CAD or CFD user. With your tutorials help Blender should be straightforward. Your content is some of the best on all these topics. No complaints there. This was a nice addition.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    @@punkisinthedetails1470 Additions are always welcome!

  • @theusual5uspect
    @theusual5uspect Жыл бұрын

    I did a session on rendering openfoam cases with blender last year. I cover a few additional details, you may find it useful. kzread.info/dash/bejne/q6RtzcqKpLOXl5s.html

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    Thank you! Yes, this is an awesome video with many details!

  • @theusual5uspect

    @theusual5uspect

    Жыл бұрын

    @@OpenFOAMJozsefNagy it was a shame we had connection issues.

  • @OpenFOAMJozsefNagy

    @OpenFOAMJozsefNagy

    Жыл бұрын

    @@theusual5uspect I think you get all the vital information from the video.