|
[Sponsors] |
[snappyHexMesh] Need Tutorial for using snappyHexMesh with STL |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 18, 2017, 04:50 |
Need Tutorial for using snappyHexMesh with STL
|
#1 |
New Member
CA
Join Date: Nov 2017
Posts: 1
Rep Power: 0 |
I have created a vehicle and output a STL file. First I want to use snappyHexMesh to convert the STL file to the proper format for OpenFOAM. Then I want to run a few airflow simulations
I am using OpenFOAM's 5.x and my case directory is here: https://github.com/anujgoyal/openfoam Slide 13 of this presentation: http://openfoamwiki.net/images/f/f0/...SlidesOFW7.pdf says that 5 requirements are needed:
I am having some trouble understanding what values should be in the Hexahedral base mesh, controlDict, fvSchemes and fvSolutions - does anyone have any recommendations? or could you point me to some detailed tutorials that they recommend? I have also cross-referenced it on stackoverflow.com https://stackoverflow.com/questions/...le-in-openfoam Last edited by morkman; November 19, 2017 at 21:30. Reason: added image, added url |
|
November 21, 2017, 07:21 |
|
#2 |
New Member
Join Date: Oct 2017
Location: Germany
Posts: 26
Rep Power: 9 |
You can use Helyx-OS (on Linux) to mesh, setup the case and run it.
The base mesh sizing depends upon the size of your model. Tutorials you can find in the OpenFoam/tutorials directory. I hope it helps a bit. |
|
November 21, 2017, 08:02 |
|
#3 |
Member
Anders Utnes
Join Date: May 2017
Location: Norway
Posts: 34
Rep Power: 9 |
Hex base mesh:
Snappyhexmesh basically works by using a large cubic mesh (base mesh) that surrounds your car, and removes all cells that are inside your car, and then gives you the remaining mesh. Exactly HOW you create this base mesh is irrelevant, but blockMesh is usually a good option. snappyHexMeshDict: This describes how exact the car is removed. If the end result is not awesome, then modify this until it is. You will most certainly have to do this quite a few times. For parallell runs of multiple processors: You will basically have to divide the mesh into multiple equal parts, and then each processor takes one part. Then reconstruct the mesh once the simulation is done. The decomposeParDict defines how the mesh should be split. fvSolutions: This defines how accurate the calculation needs to be. If you have converge problems, look here. If you have to strict requirements, your calculation gets much slower than it needs to be. fvSchemes: This defines what mathematical functions Openfoam should use to calculate your solution. controlDict: This is the main control document for the simulation. Note especially the timesteps and write interval. I suggest going to the tutorial cases, and trying to find a case simular to your own, then adapt it to fit your needs. I imagine examining <incompressible/pisofoam/les/motorbike> would be interesting to you. |
|
November 21, 2017, 08:05 |
|
#4 |
Member
Anders Utnes
Join Date: May 2017
Location: Norway
Posts: 34
Rep Power: 9 |
I belive there also is a good youtube tutorial available.
|
|
November 30, 2017, 03:45 |
|
#5 |
Member
hulli graemer
Join Date: Oct 2014
Posts: 48
Rep Power: 12 |
||
March 13, 2019, 11:01 |
|
#6 | |
New Member
emre
Join Date: Jul 2015
Posts: 12
Rep Power: 11 |
Quote:
Hello morkman, I have been trying similar study like your case. Did you manage this problem? If you did this case, would you describe for me (step by step) that how can I modify/replace my Car.stl file instead of the motorBike case? Thanks, |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error with snappyHexMesh when using another propeller in propeller tutorial | quarkz | OpenFOAM Running, Solving & CFD | 4 | May 24, 2021 16:59 |
[snappyHexMesh] snappyHexMesh is not using the stl file | a_habib | OpenFOAM Meshing & Mesh Conversion | 9 | June 12, 2020 18:36 |
[snappyHexMesh] snappyHexMesh - different patch names from stl file | cptlddd | OpenFOAM Meshing & Mesh Conversion | 6 | November 22, 2017 07:54 |
[snappyHexMesh] Creating stl file for snappyHexMesh from xyz coordinates | Vignesh2508 | OpenFOAM Meshing & Mesh Conversion | 2 | April 25, 2017 09:43 |
[snappyHexMesh] Problem with the turbineSiting tutorial and snappyHexMesh | Thaemos | OpenFOAM Meshing & Mesh Conversion | 0 | June 28, 2013 05:32 |