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

[snappyHexMesh] SnappyHexMesh "Cannot open etc file"

Register Blogs Community New Posts Updated Threads Search

Like Tree13Likes
  • 1 Post By htbeck
  • 12 Post By EMurphy

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 4, 2018, 13:34
Unhappy SnappyHexMesh "Cannot open etc file"
  #1
New Member
 
Hank Beck
Join Date: Dec 2018
Posts: 2
Rep Power: 0
htbeck is on a distinguished road
Hello, I'm a newbie to OpenFOAM who's been trying to set up a case using SnappyHexMesh on a set of STL files to try and simulate flow through a troublesome pipe system.
Originally, I attempted to modify the motorbike tutorial included with my installation, but every time I attempted to run SnappyHexMesh an error of the following form appeared:

--> FOAM FATAL IO ERROR:
Cannot open etc file "caseDicts/meshQualityDict" while reading dictionary "/home/htbeck/OpenFOAM/OpenFOAM-v1806/projects/fillingOfTank/mesh/system/snappyHexMeshDict.meshQualityControls"

After much tweaking to try and correct any issues with my dictionary files, I attempted to run the unmodified tutorial case and received the same error. Finding no answers on Google, I decided to try a different functional SnappyHexMesh case that was known to work. I downloaded the files for the "Filling of Tank" tutorial created by József Nagy and attempted to follow along with his Multiphase video series. https://www.youtube.com/watch?v=c23j...gbFRbm&index=2

Unfortunately, I ran into the same error when attempting to run SnappyHexMesh. The background mesh created by BlockMesh was created with no issues.

Is this issue a bug or beginner's mistake I keep repeating? I haven't found anyone that seems to have experienced the same error for every case they attempt.

If it matters, my dictionary headers all say I'm using version 6 while my folders say v1806. I'm running OpenFOAM on an Ubuntu bash in Windows 10.

Any advice or insight is greatly appreciated.
htbeck is offline   Reply With Quote

Old   December 4, 2018, 17:17
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answers:
  1. Check which version of OpenFOAM you are using by running this command:
    Code:
    blockMesh -help
    If you are using OpenFOAM 6, then it will tell you something like this:
    Code:
    Using: OpenFOAM-6 (see www.OpenFOAM.org)
    Build: 6-00e347c45aa3
  2. This error:
    Code:
    Cannot open etc file "caseDicts/meshQualityDict"
    depends on what's written inside the block "meshQualityControls" in the file "snappyHexMeshDict".
  3. When in doubt for searching for working cases, you should look into the tutorials folder of the version you are using. You can usually find them by running these commands:
    Code:
    cd $FOAM_TUTORIALS
    ls -l
    find . -name snappyHexMeshDict
    1. Change to the "tutorials" folder, which only works if the OpenFOAM shell environment is activated.
    2. List files and folders in the current folder, including details about them.
    3. Find all files named "snappyHexMeshDict" in the current folder "."
__________________
wyldckat is offline   Reply With Quote

Old   December 4, 2018, 18:52
Default
  #3
New Member
 
Hank Beck
Join Date: Dec 2018
Posts: 2
Rep Power: 0
htbeck is on a distinguished road
Thank you for the tips. I actually ended up clearing out my ubuntu bash and doing a fresh install. Since doing this the included tutorial cases seem to be successfully running.

I'll make sure to look closer at how my meshQualityControls in SnappyHexMeshDict differ from the tutorial cases going forward. Hopefully this fresh installation works though.

Thanks again.
wyldckat likes this.
htbeck is offline   Reply With Quote

Old   March 6, 2019, 13:25
Unhappy Same issue
  #4
New Member
 
Eric Murphy
Join Date: Mar 2019
Posts: 3
Rep Power: 7
EMurphy is on a distinguished road
Hi was wondering if this problem was ever closed out, and the source of the error found. I am having the same problem as the OP on Josef Nagy's multiphase tutorial (OpenFOAM-6 Build: 6-6257b17a4cf8).

When the #includeEtc "caseDicts/meshQualityDict" on line 21 is commented out of meshQualityDict, snappy seems to run fine until it comes time to check the final mesh and plenty of keywords remained undefined e.g. maxNonOrtho.

Is this caseDicts/meshQualityDict supposed to be an additional file that doesn't even exist?
EMurphy is offline   Reply With Quote

Old   March 6, 2019, 13:43
Default Solved
  #5
New Member
 
Eric Murphy
Join Date: Mar 2019
Posts: 3
Rep Power: 7
EMurphy is on a distinguished road
Found the solution online. I will repost the solution here, since I could not readily find it via google search.

Line 21 in meshQualityDict must be changed from

#includeEtc "caseDicts/meshQualityDict"

to

#includeEtc "caseDicts/mesh/generation/meshQualityDict"

due to changes in the etc folder structure in version 6.

Last edited by EMurphy; March 6, 2019 at 13:44. Reason: Grammar corrections/conciseness
EMurphy is offline   Reply With Quote

Old   March 30, 2024, 11:05
Default
  #6
New Member
 
Join Date: Mar 2024
Posts: 3
Rep Power: 2
aampic is on a distinguished road
you rule a lot
aampic is offline   Reply With Quote

Reply

Tags
error, etc file, mesh, meshqualitydict, snappyhexmesh


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
[Other] Tabulated thermophysicalProperties library chriss85 OpenFOAM Community Contributions 62 October 2, 2022 03:50
[swak4Foam] funkyDoCalc with OF2.3 massflow NiFl OpenFOAM Community Contributions 14 November 25, 2020 03:30
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc ofslcm OpenFOAM Community Contributions 25 March 6, 2017 10:03
Trouble compiling utilities using source-built OpenFOAM Artur OpenFOAM Programming & Development 14 October 29, 2013 10:59
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44


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