|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 15 ![]() |
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
|
|
|
|
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 17 ![]() |
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 |
|
|
|
|
|
|
|
|
#3 | |
|
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 15 ![]() |
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
|
||
|
|
|
||
|
|
|
#4 |
|
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 17 ![]() |
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 |
|
|
|
|
|
|
|
|
#5 |
|
Member
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 15 ![]() |
Dear Antimony, Thanks for your help . it worked
|
|
|
|
|
|
![]() |
| Tags |
| error, refine mesh |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|