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

[mesh manipulation] refineMesh Error

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2016, 15:36
Cool refineMesh Error
  #1
Member
 
Mohsen
Join Date: Oct 2012
Posts: 47
Rep Power: 14
mohsen.boojari is on a distinguished road
Hi,
I'm trying to use the utility refineMesh but I've faced with this error :

Code:
Create polyMesh for time = 0

Mesh edge statistics:
    x aligned :  number:390150    minLen:0.36    maxLen:0.36
    y aligned :  number:385050    minLen:0.36    maxLen:0.36
    z aligned :  number:385050    minLen:0.36    maxLen:0.36
    other     :  number:0    minLen:1e+15    maxLen:-1e+15

Refining according to refineMeshDict



--> FOAM FATAL IO ERROR: 
cannot find file

file: /home/mohsen/Desktop/case18_MEXICO1/-overwrite at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting
can anyone help me??
thanks guys
mohsen.boojari is offline   Reply With Quote

Old   December 13, 2016, 17:26
Default
  #2
Senior Member
 
Join Date: Mar 2010
Location: Germany
Posts: 154
Rep Power: 16
cutter is on a distinguished road
Hi,

the error message clearly states that the file /home/mohsen/Desktop/case18_MEXICO1/-overwrite is missing.

Since you didn't provide the whole call to refineMesh I can provide an assumption only: You're probably using some kind of script to call refineMesh which contains some errors. Instead of assembling the correct path to refineMeshDict the script appends the -overwrite option without any separating spaces.

Cutter
cutter is offline   Reply With Quote

Old   March 1, 2018, 22:57
Default
  #3
Member
 
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8
jiahui_93 is on a distinguished road
Quote:
Originally Posted by mohsen.boojari View Post
Hi,
I'm trying to use the utility refineMesh but I've faced with this error :

Code:
Create polyMesh for time = 0

Mesh edge statistics:
    x aligned :  number:390150    minLen:0.36    maxLen:0.36
    y aligned :  number:385050    minLen:0.36    maxLen:0.36
    z aligned :  number:385050    minLen:0.36    maxLen:0.36
    other     :  number:0    minLen:1e+15    maxLen:-1e+15

Refining according to refineMeshDict



--> FOAM FATAL IO ERROR: 
cannot find file

file: /home/mohsen/Desktop/case18_MEXICO1/-overwrite at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 73.

FOAM exiting
can anyone help me??
thanks guys
Hi, I faced it before and solve by mention the complete path as bellow:
Code:
 refineMesh -dict system/refineMeshDict -overwrite
Hope it works for your case good luck
jiahui_93 is offline   Reply With Quote

Old   March 1, 2018, 23:07
Default
  #4
Member
 
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8
jiahui_93 is on a distinguished road
Btw, I am facing a problem in refineMesh based on refineMeshDict. i had successfully refine it without adding option -dict, but i want to refine more for the surface and surrounding region.

I run refineMesh -dict system/refineMeshDict as following:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  plus                                  |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    location    "system";
    object      refineMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

set             carExtCS;

coordinateSystem global;

globalCoeffs
{
    tan1            (1 0 0);
    tan2            (0 1 0);
    tan3            (0 0 1);
}

directions      ( tan1 tan2 tan3 );

useHexTopology  yes;

geometricCut    no;

writeMesh       no;


// ************************************************************************* //

and got this errors code. (too long to post, so i cut some of it)

Code:
 --> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84049 centre:(0.625 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84050 centre:(0.675 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84051 centre:(0.725 2.525 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84052 centre:(0.775 2.525 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84053 centre:(0.725 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84054 centre:(0.775 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84055 centre:(0.825 2.525 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84056 centre:(0.875 2.525 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84057 centre:(0.825 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84058 centre:(0.875 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84059 centre:(0.925 2.525 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84060 centre:(0.975 2.525 2.675) is in two zones:noCarIntCZ and 
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84085 centre:(1.525 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84086 centre:(1.575 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84087 centre:(1.625 2.525 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84088 centre:(1.675 2.525 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84089 centre:(1.625 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84090 centre:(1.675 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84091 centre:(1.725 2.525 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84092 centre:(1.775 2.525 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84093 centre:(1.725 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84094 centre:(1.775 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84095 centre:(1.825 2.525 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84096 centre:(1.875 2.525 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84097 centre:(1.825 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84098 centre:(1.875 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84099 centre:(1.975 2.525 2.625) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84100 centre:(1.975 2.575 2.625) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84101 centre:(1.925 2.525 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84102 centre:(1.975 2.525 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84103 centre:(1.925 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84104 centre:(1.975 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84105 centre:(0.425 2.675 2.625) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84106 centre:(0.425 2.625 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84107 centre:(0.475 2.625 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84108 centre:(0.425 2.675 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84109 centre:(0.475 2.675 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84110 centre:(0.525 2.625 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
...............................................
   
--> FOAM Warning :
    From function void Foam::polyTopoChange::addMesh(const Foam::polyMesh&, const labelList&, const labelList&, const labelList&, const labelList&)
    in file polyTopoChange/polyTopoChange/polyTopoChange.C at line 2360
    Cell:84335 centre:(1.975 2.875 2.675) is in two zones:noCarIntCZ and carExtCZ
    This is not supported. Continuing with first zone only.
Writing refined cells (79488) to cellSet "0.02/polyMesh/sets/refinedCells"

Writing map from new to old cell to "/home/ang/OpenFOAM/jhTutorial/pimpleDyMfoam/NewblockMRefined1_deletedCarRefinedSurf/0.02/polyMesh/cellMap"

Mesh edge statistics:
    x aligned :  number:710148  minLen:0.025    maxLen:0.05
    y aligned :  number:725484  minLen:0.025    maxLen:0.05
    z aligned :  number:718226  minLen:0.025    maxLen:0.05
    other     :  number:0       minLen:1e+15    maxLen:-1e+15

End

I checked the total cells and thr's additional cells compared to that before refineMesh. So, i assume it was refined. But I cant understand what's the probem reported as above. I am totally run out of idea

May i get some help here? i would be grateful if there is advice for me. Thanks a lot

Last edited by jiahui_93; March 2, 2018 at 00:25.
jiahui_93 is offline   Reply With Quote

Reply

Tags
error, refine mesh


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
[OpenFOAM.org] compile error in dynamicMesh and thermophysicalModels libraries NickG OpenFOAM Installation 3 December 30, 2019 01:21
[blockMesh] blockMesh with double grading. spwater OpenFOAM Meshing & Mesh Conversion 92 January 12, 2019 10:00
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
OpenFOAM without MPI kokizzu OpenFOAM Installation 4 May 26, 2014 10:17
DecomposePar links against liblamso0 with OpenMPI jens_klostermann OpenFOAM Bugs 11 June 28, 2007 18:51


All times are GMT -4. The time now is 10:19.