CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

mappedPatch BC

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

LinkBack Thread Tools Display Modes
Old   February 20, 2012, 09:42
Default mappedPatch BC
Victor-S. Eberhart
Join Date: Oct 2011
Posts: 35
Rep Power: 8
vigges is on a distinguished road
Hi all!!

I'm having a hard time setting up the boundary conditions for my 2D case.
I'm using OF 2.1.0 and simpleFoam.

What I need is a mapped patch at the inlet in order to get a fully developed turbulent flow before entering a diffuser.
I adjusted my constant/polyMesh/boundary and 0/U as followed:
        type            mappedPatch;
        nFaces          8;
        startFace       45368;
        sampleMode        nearestCell;
        sampleRegion    region0;
        samplePatch        none;
        offsetMode        uniform;
        offset            (0.035 0 0);
        type                        mapped;
        value                        uniform (30.22 0 0);
        interpolationScheme            cell;
        setAverage                    true;
        average                        (30.22 0 0);    
Unfortunately, it's not working.
Any ideas or suggestions what I could change?

vigges is offline   Reply With Quote

Old   February 20, 2012, 11:20
Senior Member
Steven van Haren
Join Date: Aug 2010
Location: The Netherlands
Posts: 149
Rep Power: 9
stevenvanharen is on a distinguished road
What do you exactly mean when you say it is not working?

I am not sure about version 2.1 but in 1.7 you should have directMappedPatch as type in the boundary file. And directMapped in the field file.

Did you check the tutorials? Or you sure this type is correct?
stevenvanharen is offline   Reply With Quote

Old   February 22, 2012, 04:38
Victor-S. Eberhart
Join Date: Oct 2011
Posts: 35
Rep Power: 8
vigges is on a distinguished road
Problem solved.
After converting my 3D sHM mesh into 2D using extrudeMesh and autoPatch, I forgot to reassign the properties to the inletPatch in constant/polyMesh/boundary.
vigges is offline   Reply With Quote

Old   May 9, 2012, 03:45
Senior Member
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 502
Rep Power: 12
samiam1000 is on a distinguished road
Hi all,

just a question: does the mappedPatch type allow you to set the interface between 2 fluid regions??

Thanks a lot,

samiam1000 is offline   Reply With Quote

Old   March 15, 2013, 07:39
Senior Member
Join Date: Jun 2012
Location: France
Posts: 152
Rep Power: 7
Djub is on a distinguished road
Hi Vigges,
May I ask you what is your 0/p boundary conditions for your inlet ?
Do you map also the pressure field or use a classic "zerogradient" condition?
For me, the NS equations are linking both fields. You should not take V without P! Nevertheless, tutorial are making this (U=mapped and p=zeroGradient ). What is your opinion about this?
For example, there is a under-pressure in the core of a large vortex. Don't you have to map it in the inlet? Or the NS solver is able to reconstruct it thanks to U-field?
I am still doubtfull, because within the calculated domain, from where you extract the V field, pressure field has no reason to be zerogradient!
How to deal with this?
Djub is offline   Reply With Quote

Old   March 8, 2015, 12:34
New Member
Jakob Hærvig
Join Date: Sep 2012
Location: Aalborg, Denmark
Posts: 20
Rep Power: 7
hrvig is on a distinguished road
I am asking the exact same questions as you Djub. What I have done so far is to place my sample patch sufficiently long away from the outlet, so that the type of BC here does not influence on the sample patch.

Did you find a way to solve your problem?

I am having convergence problems when mapping the pressure field from outlet to inlet. This approach does as well require you to specify a reference pressure inside the domain, which shouldn't be a problem.
hrvig is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

All times are GMT -4. The time now is 00:02.