CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Mapped boundary condition warning message

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 2, 2015, 16:59
Unhappy Mapped boundary condition warning message
  #1
New Member
 
Fernando Soares Alves
Join Date: Oct 2013
Posts: 16
Rep Power: 13
FernandoSoares is on a distinguished road
Hi there Foamers,

I am trying to improve my simulation using the mapped boundary condition on OF240. I found it on a tutorial
Code:
$FOAM_RUN/incompressible/pisoFoam/les/pitzDailyMapped
Since my geometry is pretty similar (also a backward facing step) to the one used in the tutorial I imagined I'd have no issues trying to use such a b.c. .

In my blockMeshDict file I defined it as

Code:
boundary
(
    inlet                       //0
    {
        type            mappedPatch;
        offset          (-20 0 0 );
        sampleregion    region0;
        sampleMode      nearestCell;
        samplePatch     none;
        faces
        (
        ...
        );
    }
...
)
just as in the tutorial mentioned, and in 0/U as

Code:
boundaryField
{
    inlet
    {
        type            mapped;
        value           nonuniform List<vector> 90( ... );        interpolationScheme     cell;
        setAverage              true;
        average                 (1 0 0);
    }
...
}
My simulation stars fine, however I get the following message

Code:
--> FOAM Warning :
    From function mappedPatchBase::mappedPatchBase
(
    const polyPatch& pp,
    const word& sampleRegion,
    const sampleMode mode,
    const word& samplePatch,
    const vector& offset
)

    in file mappedPatches/mappedPolyPatch/mappedPatchBase.C at line 631
    Did not find 90 out of 90 total samples. Sampling these on owner cell centre instead.
On patch inlet on region region0 in mode nearestCell
with offset mode uniform. Suppressing further warnings from mappedPatch
What have I set wong? I know the tutorial isn't really for a steady state problem (LES, pisoFoam, etc.), but I believed I was using it properly (which I am probably not). I would like to map the plane at x=-20 with (1 0 0) as normal vector for my U field at the inlet. Is offset defined correctly?

Has anyone ever faced such mesage(s) using this b.c.? Any experienced Foamer? I looked at the code but I didn't really get why I am having this issue.

Any help would be greatly appreciated.

F. Soares
FernandoSoares is offline   Reply With Quote

Old   November 4, 2015, 10:39
Default
  #2
mgg
New Member
 
Join Date: Nov 2012
Posts: 27
Rep Power: 14
mgg is on a distinguished road
Hallo Soares,

did you fix that issue?

Grüße,
Chu

Quote:
Originally Posted by FernandoSoares View Post
Hi there Foamers,

I am trying to improve my simulation using the mapped boundary condition on OF240. I found it on a tutorial
Code:
$FOAM_RUN/incompressible/pisoFoam/les/pitzDailyMapped
Since my geometry is pretty similar (also a backward facing step) to the one used in the tutorial I imagined I'd have no issues trying to use such a b.c. .

In my blockMeshDict file I defined it as

Code:
boundary
(
    inlet                       //0
    {
        type            mappedPatch;
        offset          (-20 0 0 );
        sampleregion    region0;
        sampleMode      nearestCell;
        samplePatch     none;
        faces
        (
        ...
        );
    }
...
)
just as in the tutorial mentioned, and in 0/U as

Code:
boundaryField
{
    inlet
    {
        type            mapped;
        value           nonuniform List<vector> 90( ... );        interpolationScheme     cell;
        setAverage              true;
        average                 (1 0 0);
    }
...
}
My simulation stars fine, however I get the following message

Code:
--> FOAM Warning :
    From function mappedPatchBase::mappedPatchBase
(
    const polyPatch& pp,
    const word& sampleRegion,
    const sampleMode mode,
    const word& samplePatch,
    const vector& offset
)

    in file mappedPatches/mappedPolyPatch/mappedPatchBase.C at line 631
    Did not find 90 out of 90 total samples. Sampling these on owner cell centre instead.
On patch inlet on region region0 in mode nearestCell
with offset mode uniform. Suppressing further warnings from mappedPatch
What have I set wong? I know the tutorial isn't really for a steady state problem (LES, pisoFoam, etc.), but I believed I was using it properly (which I am probably not). I would like to map the plane at x=-20 with (1 0 0) as normal vector for my U field at the inlet. Is offset defined correctly?

Has anyone ever faced such mesage(s) using this b.c.? Any experienced Foamer? I looked at the code but I didn't really get why I am having this issue.

Any help would be greatly appreciated.

F. Soares
mgg is offline   Reply With Quote

Old   November 4, 2015, 13:30
Default
  #3
New Member
 
Fernando Soares Alves
Join Date: Oct 2013
Posts: 16
Rep Power: 13
FernandoSoares is on a distinguished road
Hi.

Actually I have not. I believe I just increased my inlet region before the step, which is not optimal but it was better than nothing. Anyway good luck.

Mit freundlichen Grüßen,

F. Soares.
FernandoSoares is offline   Reply With Quote

Old   December 29, 2016, 18:01
Default
  #4
Member
 
Join Date: Apr 2016
Posts: 34
Rep Power: 10
Eman. is on a distinguished road
Quote:
Originally Posted by mgg View Post
Hallo Soares,

did you fix that issue?

Grüße,
Chu
Hi,

Probably you wouldn't need the answer anymore. I had the same problem, and it was due to my rotated coordinate system. Whenever the offset vector is out of your domain you get this warning. In my case, my initial offset vector was (0 0 10) and I had to reverse its direction. I used (0 0 -10) and it worked just fine.
Eman. is offline   Reply With Quote

Old   July 6, 2019, 05:42
Default
  #5
Senior Member
 
Jianrui Zeng
Join Date: May 2018
Location: China
Posts: 157
Rep Power: 8
calf.Z is on a distinguished road
Quote:
Originally Posted by Eman. View Post
Hi,

Probably you wouldn't need the answer anymore. I had the same problem, and it was due to my rotated coordinate system. Whenever the offset vector is out of your domain you get this warning. In my case, my initial offset vector was (0 0 10) and I had to reverse its direction. I used (0 0 -10) and it worked just fine.
I got the warning that did not find 1253 out of 12354 total samples.... I am sure I did not mix up the direction. So I do not know why.
calf.Z is offline   Reply With Quote

Reply

Tags
boundary condition u, mapped boundary condition, warning message


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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 08:38
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 08:30
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
Version 15 on Mac OS X gschaider OpenFOAM Installation 113 December 2, 2009 11:23


All times are GMT -4. The time now is 13:49.