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

Mapped boundary condition mass flow rate behavior

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 4, 2020, 11:05
Question Mapped boundary condition mass flow rate behavior
  #1
Member
 
Join Date: Mar 2019
Posts: 81
Rep Power: 7
mm66 is on a distinguished road
Dear Foamers,


I am working on a case where I have to use a smaller geometry by achieving fully developed condition at the inlet (due to its complexity simulating a bigger geometry takes way too long)...


To do so, I imposed the following boundary condition on U:

Code:
    outlet
    {
        type                 zeroGradient;
        value               uniform (0 0 0);
    }
    inlet
    {
        type                 mapped;
        interpolationScheme cell;
        value               uniform (0 0 -0.4021);
        setAverage   false;
    }
My intention is to achieve 1.65 kg/s of mass flow rate. My calculation shows it is equivalent to 0.4021 m/s. So I conducted the simulations and the mass flow rate is changing in the range 3 to 4 kg/s (!)


Here is my main question: So I made a change and imposed "setAverage" as follows:

Code:
    outlet
    {
        type                 zeroGradient;
        value               uniform (0 0 0);
    }
    inlet
    {
        type                  mapped;
        interpolationScheme cell;
        value                uniform (0 0 -0.4021);
        setAverage    true;
        average           (0 0 -0.4021);
    }
Now what I see in the console is that the mass flow rate goes from roughly 1.65 to roughly -1.65 kg/s successively. So for even iterations it is positive while for odd iterations it is negative. Any ideas guys? Please help.


Cheers,
MJ
mm66 is offline   Reply With Quote

Old   September 18, 2020, 03:52
Default
  #2
New Member
 
Ran Yi
Join Date: May 2019
Posts: 9
Rep Power: 7
lizzy is on a distinguished road
Hi MJ,

1. What is your inlet setting in polyMesh/boundary?
2. What does your geometry look like? I noticed the velocity in Z-direction is negative.

BTW, have you solved this issue?

Best,
Ran
lizzy is offline   Reply With Quote

Old   November 5, 2020, 11:32
Default
  #3
Member
 
Join Date: Mar 2019
Posts: 81
Rep Power: 7
mm66 is on a distinguished road
Quote:
Originally Posted by lizzy View Post
Hi MJ,

1. What is your inlet setting in polyMesh/boundary?
2. What does your geometry look like? I noticed the velocity in Z-direction is negative.

BTW, have you solved this issue?

Best,
Ran

Hi Ran,


Thanks a lot for the reply and please accept my apologies for responding rather late...


1. The inlet boundary type is "patch"
2. It is a vertical geometry (in z-direction) where the fluid enters the domain from the bottom. Unfortunately I cannot share the geometry


I really appreciate your thoughts on this.

Regards,
MJ
mm66 is offline   Reply With Quote

Old   November 5, 2020, 12:35
Default
  #4
Senior Member
 
Adhiraj
Join Date: Sep 2010
Location: Karnataka, India
Posts: 187
Rep Power: 16
adhiraj is on a distinguished road
When I use this boundary condition I have to set the inlet boundary type to
mappedPatch. This is in OpenFOAM 2.3.1.

Here is an example from my constant/polyMesh/boundary file:
Code:
inAir
{
    type            mappedPatch;
    inGroups        1(mappedPatch);
    nFaces          16000;
    startFace       16759500;
    sampleMode      nearestCell;
    sampleRegion    region0;
    samplePatch    none;
    offsetMode     uniform;
    offset    (0 0 0.04);
}
adhiraj is offline   Reply With Quote

Old   November 5, 2020, 14:57
Exclamation
  #5
Member
 
Join Date: Mar 2019
Posts: 81
Rep Power: 7
mm66 is on a distinguished road
Quote:
Originally Posted by adhiraj View Post
When I use this boundary condition I have to set the inlet boundary type to
mappedPatch. This is in OpenFOAM 2.3.1.

Here is an example from my constant/polyMesh/boundary file:
Code:
inAir
{
    type            mappedPatch;
    inGroups        1(mappedPatch);
    nFaces          16000;
    startFace       16759500;
    sampleMode      nearestCell;
    sampleRegion    region0;
    samplePatch    none;
    offsetMode     uniform;
    offset    (0 0 0.04);
}
Dear Adhiraj,

Thank you very much for your prompt response.

I tried this with OpenFOAM 1812 and (unfoirtunately) "mappedPatch" is not recognized as a valid boundary condition:

Code:
--> FOAM FATAL IO ERROR:
Unknown patchField type mappedPatch for patch type mappedPatch
Regards,
MJ
mm66 is offline   Reply With Quote

Reply

Tags
chtmultiregionsimplefoam, mapped, mass flow rate, openfoam 1812


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
Wind turbine simulation Saturn CFX 60 July 17, 2024 06:45
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 19:02
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 07:20
Low torque values on Screw Turbine Shaun Waters CFX 34 July 23, 2015 09:16
Radiation interface hinca CFX 15 January 26, 2014 18:11


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