CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] Making Emesh file

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 12, 2024, 11:53
Unhappy Making Emesh file
  #1
New Member
 
Hussain
Join Date: Nov 2024
Posts: 8
Rep Power: 2
hussainazam2002 is on a distinguished road
I am a beginner to openfoam and have been working on a project for a few weeks now trying to navigate my way around to learn how to use it. Initially on one of my test mesh models I used, i easily ran surfaceFeatureExtract and an emesh file was made and i could see this in the constant/triSurface/ directory.

Now after some fixing of my model and a lot of trial and error with many different models ( built in CAD exported as STL files) I have come back to running the command to make the emesh file. I did this normaly many times before but it just will not work anymore. I am not getting any errors, I have checked my stl file using meshlab and rebooted my computer. I used my old stl files where earlier the command was working and emesh was forming, but now even this wont work. I dont get an error and get a generation time of 0 seconds (instant). I have attached some screenshots below and would appreciate any help to overcome this issue.
Attached Images
File Type: jpg Surface 1.JPG (83.3 KB, 2 views)
File Type: jpg Surface.JPG (43.2 KB, 3 views)
hussainazam2002 is offline   Reply With Quote

Old   November 12, 2024, 14:04
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Hussain,

Your surfaceFeatureExtractDict looks weird, you should not have a "geometry" dictionary there. Have a look at this example: https://develop.openfoam.com/Develop...ureExtractDict

You should have something like:
Code:
closed1.stl
{
    extractionMethod    extractFromSurface;
    includedAngle       120;
}
Regards,
Yann
Yann is offline   Reply With Quote

Old   November 13, 2024, 09:30
Default
  #3
New Member
 
Hussain
Join Date: Nov 2024
Posts: 8
Rep Power: 2
hussainazam2002 is on a distinguished road
Hi Yann,

Thank you for your help, I cant believe I was stuck on such a simple error for so long.

I have another question regarding the meshing process if you are able to help. I build a CAD model of a very simplified reactor in Solidworks. I cut a hole out of the side of the reactor. I then created a surface coincident to this and defined this as an inlet. I have 3 similar surface bodies and 1 solid body. I exported all of these as stl files to openfoam. I have generated emesh and added them all to my snappyHexMesh file. My blockMeshDict file is very simple and creates a cuboidal geometry. I ran snappyHexMesh and it finished and I opened the case in paraview. The geometry shows only a cuboid. I am guessing this has something to do with my snappyHexMesh not being read correctly. This is confusing as in the mesh region on paraview it shows the all the different patches i had defined.

Would you have any idea as to what I have done wrong or what I could change ??

Best regards,
Hussain
hussainazam2002 is offline   Reply With Quote

Old   November 13, 2024, 09:54
Default
  #4
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,238
Rep Power: 29
Yann will become famous soon enoughYann will become famous soon enough
Hello Hussain,

It's difficult to answer, as many things could have been done wrong.

If you can share your snappyHexMeshDict file and some screenshots of your resulting mesh, it could be helpful to know what is going on.

Regards,
Yann
Yann is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
polynomial BC srv537 OpenFOAM Pre-Processing 4 December 3, 2016 10:07
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 02:41
[swak4Foam] funkySetFields compilation error tayo OpenFOAM Community Contributions 39 December 3, 2012 06:18
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 12:44
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 18:18.