snappyHexMesh segmentation fault
3 Attachment(s)
Hi everyone!
I Am currently trying to model a flow over an airfoil. For that I created a BlockMesh base and i am trying to use snappyhexmesh to enter my geometry in the mesh. Everytime I try to run snappyhexmesh i get a segmentation fault (core dumped). I am new in OpenFoam and i would appreciate any help. I have attached my snappyHexMeshDict, blockmeshDict and .stl file. Here is also the error message : Code:
/*---------------------------------------------------------------------------*\ Tell me if I need to submit any additional files. Thank you |
I would believe the segmentation fault may be a "red herring" in your debugging process. Let fix the location in mesh part first.
1. Assuming you want to simulate flow external to the geometry. The location in mesh should be a point within the rectangle, but it should NOT be within the airfoil geometry. 2. For shm to know where the airfoil stl is, use the geometry sub dictionary inside of shm. It is in the top of the file. Also remember that shm only looks For STL files located in the case/constant/triSurface directory. |
Thank you for your advice! I finally managed to find my problem. I believe it was the STL file taken out from solidworks. It was in binary and not in ASCII, I did the conversion using the surfaceConvert from OpenFoam.
Regarding the location in Mesh, it is simply the coordinates of my blockmesh that I can shift (vertices), or shit my geometry in solidworks with respect to the frame. |
Quote:
|
Sorry...
I meant that I found a way to place my geometry in my base Mesh (generated through blockMesh). I though first that snappyHexMesh can place my geometry in a disered place but it doesnt (correct me if i am wrong). So basically, I just changed the coordinates of my base mesh to have my airfoil in the center for example. |
Your are correct.
SnappyHexMesh does not move surface file to the background mesh Open foam does have the "surfaceTransformPoints" function, which can be used to move, scale, and rotate surfaces. https://www.openfoam.com/documentati...ormPoints.html |
All times are GMT -4. The time now is 05:53. |