Meshing STL Using snappyHexMesh in OpenFOAM

  Рет қаралды 13,113

Codeynamics

Codeynamics

Күн бұрын

Пікірлер: 49
@shahriarhossain53
@shahriarhossain53 5 ай бұрын
very good and well explained video. learn a lots of things. keep posting similar videos on OpenFOAM.
@Codeynamics
@Codeynamics 5 ай бұрын
Means a lot. thankyou so much. Share and support
@polmagdalenasoler
@polmagdalenasoler 3 ай бұрын
thank you very much, best tutorial I have seen about the topic
@Codeynamics
@Codeynamics 3 ай бұрын
🤗. Thankyou for your comment. Keep supporting.
@massimocampanella4321
@massimocampanella4321 22 күн бұрын
What a useful video! Thanks a lot!
@Codeynamics
@Codeynamics 22 күн бұрын
Thanks for your comment. Keep supporting. 😃🤗
@imonghosh7286
@imonghosh7286 7 ай бұрын
Thank you very much sir, well and enough explained video like always.
@Codeynamics
@Codeynamics 7 ай бұрын
Thankyou soo much. Do support by subscribing and sharing 😊
@imonghosh7286
@imonghosh7286 7 ай бұрын
​@@Codeynamics Today I followed the tutorial and succesfully did the meshing. I am also thinking to run the case considering a random velocity of fluid. I must again thank you for making everything as clear as possible. I was wondering if you can make a tutorial meshing the same file in "cfMesh" . Also, can you make any tutorial on meshing and case setting a wind turbine!
@Codeynamics
@Codeynamics 7 ай бұрын
Sure will try to make them.
@whotfisryan4431
@whotfisryan4431 7 ай бұрын
Thanks for the video..Sir.!
@Codeynamics
@Codeynamics 7 ай бұрын
Welcome. please subscribe and support.
@reeddowns1129
@reeddowns1129 Ай бұрын
Small mistake in the vid about parallel processing. Using mpirun with the flag --use-hwthread-cpus , OpenFOAM executables can be run with as many logical cores as you have available, not just the number of physical cores. However, it's a bad idea to use all of them. Save 1 or 2 logical cores in case the system needs to do something else. For example, I have 8 physical cores and 12 logicial cores. I run most simulations on 10 logical cores with the flag above. One question: Are the boundary conditions handled by blockMesh? Other than that, very helpful, thanks very much!!
@Codeynamics
@Codeynamics Ай бұрын
Thankyou for the comment. If the virtualization is enabled in a PC, then it will take threads as you rightly mentioned. Which is actually the case in most performance or gaming laptops. But many people watching this channel use very simple laptops that don't come with virtualization enabled. So in that case only the processor will be used. Regarding Saving a few logical cores for other tasks of the computer is absolutely true. I just didn't want to over complicate things about parallel processing in a video focused on snappyHexMesh. So didn't go much inside. I have already made a video on MPI parallel processing for OpenFOAM and I'm planning to make a dedicated video to explain the problems and it's possible solutions during parallel processing in OpenFOAM. I'll make sure to include this suggestion of yours too ☺️. Thankyou very much. The boundary patch names are handled by blockMesh. The boundary conditions as such as handled by files under 0/ folder.
@reeddowns1129
@reeddowns1129 Ай бұрын
@@Codeynamics Ahhh thank you very much for explaining! I use a wsl2 environment, so I've always had virtualization enabled! I never knew!
@rukhsarfiza1837
@rukhsarfiza1837 2 ай бұрын
Thanks for the tutorial!! Can you please upload video for the simulation and post-processing also?
@Codeynamics
@Codeynamics 2 ай бұрын
Will try. The procedure for simulation and post processing is going to be the same as the flow over a prism case. Please check my previous videos.
@disinlungkamei2869
@disinlungkamei2869 5 ай бұрын
Thanks you so much sir
@Codeynamics
@Codeynamics 5 ай бұрын
Most welcome. Thanks for your support
@itanison9581
@itanison9581 7 ай бұрын
thanks really helpful.Just a quick question did you run the silulation and if so which command did you use?
@Codeynamics
@Codeynamics 7 ай бұрын
Thankyou. I did not run the simulation. If you had to run for that case specifically, you should be using simpleFoam command. It depends on the solver. Please do subscribe and support for more useful videos.
@itanison9581
@itanison9581 7 ай бұрын
@@Codeynamics hello again, i'm having a problem with the snappyhexmesh.When i run it i am usually having blocks meshed around the airplane instead of the geometry being meshed completly.So the resulting mesh is just a bunch of blocks surrounding the aircraft what can be causing this error?I just used the snappyhexmesh command without the mpirun because for some reason it told me that this command doesn't exist could this be the reason?
@Codeynamics
@Codeynamics 7 ай бұрын
The reason is that in the snappyHexMeshDict, under snapControls function, see the 6th and the 7th parameters. set the implicitFeatureSnap to false and set explicitFeatureSnap to true. This should make your problem solved. The behavior with just snappyHexMesh will be exactly the same as doing it with decomposed case. It is only a matter of time that differs for both the process. mpirun case is faster due to parallel processing. I hope this is clear.
@joshuabrookes9189
@joshuabrookes9189 11 күн бұрын
I got a huge error message after I ran the 'mpirun... np...snappyHexMesh....overwrite' command. any advice?
@Codeynamics
@Codeynamics 11 күн бұрын
Please email us the command, the error message as screenshots and questions if any to codeynamics@gmail.com
@b208-w6e
@b208-w6e 24 күн бұрын
hello, i received the error "mpirun noticed that process rank 2 with PID 0 on node LAPTOP... exited on signal 11 (Segmentation fault)" when i ran mpirun np -4 snappyHexMesh -overwrite -parallel. i've tried changing the number of processors, adding more swap space, and changing the parameters in decomposepar, but nothing has worked. do you have any ideas as to what the cause of the error might be? thank you so much!
@Codeynamics
@Codeynamics 24 күн бұрын
Can you please send the error message screenshots at codeynamics@gmail.com We will look into it.
@Tars-20
@Tars-20 6 ай бұрын
Hey this is a great video and thank you for that. Would be nice if you can also run the sim and make a video of it, PLEASE!!!
@Codeynamics
@Codeynamics 6 ай бұрын
I will try for sure!
@Tars-20
@Tars-20 6 ай бұрын
@@Codeynamics Thanks!!!!
@swap_pat29
@swap_pat29 2 ай бұрын
Hello, Thanks for this great video! I am having difficulty working with a 2D case using snappyHexMesh. Despite defining the front and back patches as empty in the blockMeshDict file, snappyHexMesh is still refining the blockMesh in the third direction, which should not happen for a 2D case. Could you please provide some suggestions on what changes I should make? Thank you!
@Codeynamics
@Codeynamics 2 ай бұрын
Have you kept the third direction as a single cell length in blockMesh itself? I generally wouldn't recommend snappyHexMesh for 2D cases, it is good for 3D. You can try gmsh. That's much better.
@swap_pat29
@swap_pat29 2 ай бұрын
​@@Codeynamics Yes, I’ve kept the number of cells in the third direction to just a single cell. The blockMesh creates a good representation of a 2D mesh with only one cell in the third direction, as defined in the blockMeshDict file. The issue arises when I use snappyHexMesh to snap the mesh to the .stl geometry, which is a CD nozzle. I was trying out this particular geometry because I wanted hands-on experience with mesh generation, rather than just using the tutorial files. And also after running snappyHexMesh the boundary condition file in constant/boundary directory gets altered and shows absurd boundaries. I’ll definitely try Gmsh, but as I'm learning OpenFOAM, I’m curious: What do industries typically prefer for meshing-snappyHexMesh or Gmsh? Or does it depend on the specific problem? Thank you
@Codeynamics
@Codeynamics 2 ай бұрын
@@swap_pat29 The way to do that is, you have to take a section of the 3D geometry and extract the 2D. Then extrude it to give a thickness. Now use snappyHexMesh to make the 3D mesh. Then, you can use the extrudeMesh tool to change the thickness of the mesh to 0 and then extrude it back to 1 cell thickness. This sure is cumbersome. Most people prefer using blockMesh for simple 2D meshes. For geometry driven meshes, gmsh is much better and convenient than the above mentioned process. This is the thing with Open source tools. You learn one, and one way or the other you will have to learn the associated opensource tools as well sooner or later (if you want to be efficient at what you do).
@swap_pat29
@swap_pat29 2 ай бұрын
@@CodeynamicsThanks a lot for the detailed explanation! That makes sense now.
@anlongtran6850
@anlongtran6850 4 ай бұрын
Sorry for bothering you but I cannot successfully scale down the stl file, could you show me how to fix it ?
@Codeynamics
@Codeynamics 4 ай бұрын
Please mail your problem with detailed description to admin@codeynamics.com
@victorlorenzo3959
@victorlorenzo3959 5 ай бұрын
Thanks for your video, I change all the motorbike name for the goodone and launch simplefoam but at the time=6 i have a error with #1 to #12 line, do you know what's the cause?
@Codeynamics
@Codeynamics 5 ай бұрын
Thanks for commenting. Please mail the zipped case file to codeynamics@gmail.com we will get back to you asap
@victorlorenzo3959
@victorlorenzo3959 5 ай бұрын
@@Codeynamics thanks a lot, have a great day
@cleisonarmandomanriqueagui9176
@cleisonarmandomanriqueagui9176 Ай бұрын
How much time to run this ?
@Codeynamics
@Codeynamics Ай бұрын
Depends on the PC Config. It took me 8-10 mins. I only have an average PC.
@jayendrarajanala7047
@jayendrarajanala7047 6 ай бұрын
Need a help about the surfacefeatureExtract command its not working for me?
@Codeynamics
@Codeynamics 6 ай бұрын
Please write a detailed email about the error along with screenshots to codeynamics@gmail.com. Our engineers will reply soon.
@Codeynamics
@Codeynamics 3 ай бұрын
We do not suggest using the .org/foundation version. Especially anything after v-10. To follow our videos, please use ESI/.com version of OpenFOAM.
@Theoretical_Mass
@Theoretical_Mass 3 ай бұрын
@@Codeynamics Alright thanks so much!
@silviasimi4394
@silviasimi4394 2 ай бұрын
@@Codeynamics Hi, is this email address still active? Thanks!
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 36 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 14 МЛН
I missed this in my CFD geometry workflow for OpenFOAM simulations for years. This is how I fix it.
14:29
How to create your first mesh with cfMesh - tutorial
26:54
József Nagy (OpenFOAM tutorials)
Рет қаралды 30 М.
OpenFOAM fvSchemes explained in under 5 mins
4:52
CFD For Everyone - Nik L
Рет қаралды 15 М.
Simulation of internal flows with OpenFOAM and Ampersand
23:57
Open Foam Tutorial: Simulation with 3D Geometry (.stl)
14:03
Lily Stewart
Рет қаралды 47 М.
OpenFOAM SnappyHexMesh Tutorial
1:07:28
Calum Douglas
Рет қаралды 182 М.
OpenFOAM: SnapyHexMesh - Castellated
10:28
foamDude
Рет қаралды 47 М.
18th OpenFOAM Workshop - Easier meshing with snappyHexMesh and DICEHUB
1:23:40
Wolf Dynamics World - WDW
Рет қаралды 7 М.
blockMeshDict Basics [vertices | blocks | boundary]
18:41
DD Fluids
Рет қаралды 16 М.
Quando A Diferença De Altura É Muito Grande 😲😂
00:12
Mari Maria
Рет қаралды 36 МЛН