|
[Sponsors] |
[snappyHexMesh] SnappyHexMesh "Cannot open etc file" |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 4, 2018, 14:34 |
SnappyHexMesh "Cannot open etc file"
|
#1 |
New Member
Hank Beck
Join Date: Dec 2018
Posts: 2
Rep Power: 0 |
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. |
|
December 4, 2018, 18:17 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quick answers:
__________________
|
|
December 4, 2018, 19:52 |
|
#3 |
New Member
Hank Beck
Join Date: Dec 2018
Posts: 2
Rep Power: 0 |
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. |
|
March 6, 2019, 14:25 |
Same issue
|
#4 |
New Member
Eric Murphy
Join Date: Mar 2019
Posts: 3
Rep Power: 7 |
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? |
|
March 6, 2019, 14:43 |
Solved
|
#5 |
New Member
Eric Murphy
Join Date: Mar 2019
Posts: 3
Rep Power: 7 |
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 14:44. Reason: Grammar corrections/conciseness |
|
March 30, 2024, 12:05 |
|
#6 |
New Member
Join Date: Mar 2024
Posts: 3
Rep Power: 2 |
you rule a lot
|
|
Tags |
error, etc file, mesh, meshqualitydict, snappyhexmesh |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Tabulated thermophysicalProperties library | chriss85 | OpenFOAM Community Contributions | 62 | October 2, 2022 04:50 |
[swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
[swak4Foam] groovyBC in openFOAM-2.0 for parabolic velocity bc | ofslcm | OpenFOAM Community Contributions | 25 | March 6, 2017 11:03 |
Trouble compiling utilities using source-built OpenFOAM | Artur | OpenFOAM Programming & Development | 14 | October 29, 2013 11:59 |
"parabolicVelocity" in OpenFoam 2.1.0 ? | sawyer86 | OpenFOAM Running, Solving & CFD | 21 | February 7, 2012 12:44 |