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

[mesh manipulation] Error for refineMesh

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 14, 2016, 10:49
Exclamation Error for refineMesh
  #1
Member
 
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14
mohsen.boojari is on a distinguished road
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
mohsen.boojari is offline   Reply With Quote

Old   March 15, 2016, 20:08
Default
  #2
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
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
Antimony is offline   Reply With Quote

Old   April 4, 2016, 15:09
Default
  #3
Member
 
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14
mohsen.boojari is on a distinguished road
Quote:
Originally Posted by Antimony View Post
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
Hi,
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
mohsen.boojari is offline   Reply With Quote

Old   April 4, 2016, 21:30
Default
  #4
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 16
Antimony is on a distinguished road
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
Antimony is offline   Reply With Quote

Old   April 5, 2016, 00:48
Default
  #5
Member
 
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14
mohsen.boojari is on a distinguished road
Dear Antimony, Thanks for your help . it worked
mohsen.boojari is offline   Reply With Quote

Reply

Tags
error, refine mesh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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



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