|
[Sponsors] |
March 14, 2016, 11:49 |
Error for refineMesh
|
#1 |
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
Hi,
I'm trying to run a test case but I'm facing with this Error . can anyone help me?? Thanks Code:
--> FOAM FATAL IO ERROR: cannot open file file: /home/mohsen/Desktop/NREL5MWRef/-overwrite at line 0. From function regIOobject::readStream() in file db/regIOobject/regIOobjectRead.C at line 87. FOAM exiting |
|
March 15, 2016, 21:08 |
|
#2 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
Look at your function call. It seems like you are calling refineMesh with -overwrite as the file name. What exactly was your function call (with arguments)? Cheers, Antimony |
|
April 4, 2016, 16:09 |
|
#3 | |
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
Quote:
this is My Allrun script : Code:
refineMeshByCellSet() { while [ $# -ge 1 ] do cp system/topoSetDict.$1 system/topoSetDict if [ -f log.topoSet.$1 ] then echo "topoSet level $1 already run on $PWD: remove log file to re-run" else echo "creating cell set for primary zone - $1" runApplication topoSet mv log.topoSet log.topoSet.$1 fi if [ -f log.refineMesh.$1 ] then echo "refineMesh level $1 already run on $PWD: remove log file to re-run" else echo "refining primary zone $1" runApplication refineMesh -dict -overwrite mv log.refineMesh log.refineMesh.$1 fi shift done } runApplication blockMesh refineMeshByCellSet 1 2 3 4 runApplication checkMesh |
||
April 4, 2016, 22:30 |
|
#4 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
It would seem that the problem stems from the -dict tag. Once you specify the -dict tag, OF expects the location of the dictionary file to follow it. In your case, instead of the location of the dictionary file, there is the -overwrite tag and so OF goes looking for a dictionary file called "-overwrite". So a solution would be to specify the location of the dictionary file after the -dict tag and then specify the -overwrite tag. Hope this helps. Cheers, Antimony |
|
April 5, 2016, 01:48 |
|
#5 |
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14 |
Dear Antimony, Thanks for your help . it worked
|
|
Tags |
error, refine mesh |
|
|