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 and Foam warning

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 2, 2018, 00:25
Default RefineMesh Error and Foam warning
  #1
Member
 
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8
jiahui_93 is on a distinguished road
Hi everyone, may I seek for some advice? 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
jiahui_93 is offline   Reply With Quote

Old   March 3, 2018, 05:32
Default
  #2
Member
 
Anurag
Join Date: Aug 2014
Location: Germany
Posts: 57
Rep Power: 12
anuragm is on a distinguished road
The accompanying message is just a warning, not an error. So, the refinement took place. However, you should read the messages more carefully, for example:

Quote:
Cell:84049 centre0.625 2.575 2.675) is in two zones:noCarIntCZ and carExtCZ
This is not supported. Continuing with first zone only.
The message is telling you that some cells belong to two zones simultaneously (noCarIntCZ and carExtCZ). This could signify a problem in the way you have defined your zones in the mesh, especially at the boundary of the two zones. However, the code is making some assumptions about the problem in order to continue its job nevertheless (Continuing with first zone only). You should take a look at your case and check if you have defined some regions in both zones, and whether the mesh was appropriately refined at the boundary of these two zones.
anuragm is offline   Reply With Quote

Old   March 3, 2018, 08:35
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 anuragm View Post
The accompanying message is just a warning, not an error. So, the refinement took place. However, you should read the messages more carefully, for example:



The message is telling you that some cells belong to two zones simultaneously (noCarIntCZ and carExtCZ). This could signify a problem in the way you have defined your zones in the mesh, especially at the boundary of the two zones. However, the code is making some assumptions about the problem in order to continue its job nevertheless (Continuing with first zone only). You should take a look at your case and check if you have defined some regions in both zones, and whether the mesh was appropriately refined at the boundary of these two zones.
Hi, thanks for your explanation. Nw i understood.
Yes, i had assigned same cells twice in different cell zone

Is it i can only assign the same cell for once, n cannot assign twice (in 2 different cell zone)? Thanks
jiahui_93 is offline   Reply With Quote

Old   March 3, 2018, 10:39
Default
  #4
Member
 
Anurag
Join Date: Aug 2014
Location: Germany
Posts: 57
Rep Power: 12
anuragm is on a distinguished road
It is definitely possible to assign a particular region to two zones, in fact, some times it is a necessary part of your problem (e.g. rotating + temperature control)! Having said that, you should be a little careful when it comes to defining boundary conditions, etc. using these zones so as to ensure consistency in your case. Usually this will not be an issue if you follow the physics of your problem.
anuragm is offline   Reply With Quote

Old   March 3, 2018, 12:32
Default
  #5
Member
 
Join Date: Jan 2018
Location: Malaysia
Posts: 58
Rep Power: 8
jiahui_93 is on a distinguished road
Quote:
Originally Posted by anuragm View Post
It is definitely possible to assign a particular region to two zones, in fact, some times it is a necessary part of your problem (e.g. rotating + temperature control)! Having said that, you should be a little careful when it comes to defining boundary conditions, etc. using these zones so as to ensure consistency in your case. Usually this will not be an issue if you follow the physics of your problem.
Noted. Thx again for your fast reply and clear explanation ☺️ btw, do hav some ideas regarding the obstacle moving mesh within a fluid domain? If you don't mind, i hav a question to ask you .
Extreme value of field data
Thanks 😊
jiahui_93 is offline   Reply With Quote

Reply


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 10:14.