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.
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.
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.
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?
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?
@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.
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?
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
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
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
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.
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.
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!
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?
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).
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...
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.
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
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 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
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 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.
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.
@@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.
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!
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.
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.
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 :)
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?
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 :)