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

How to properly use mappedFlowRate

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 11, 2012, 16:29
Default How to properly use mappedFlowRate
  #1
New Member
 
Arve
Join Date: Sep 2011
Location: Norway
Posts: 8
Rep Power: 5
Taltan is on a distinguished road
I am trying to simulate compressible LES in an infinite pipe with periodic boundary conditions. I can not use the cyclic boundary as it would not drive the flow, so I have to use the mapped boundary condition. I would use the boundary condition called directMapped from 2.0.0 (I think it is called mappedField now), but I am uneasy to the whole averaging. I need to capture flow characteristics which could be dampened by this averaging. So I have opted for the mappedFlowRate.

However, I am at a loss in figuring how to properly use the mappedFlowRate (renamed from directMappedFlowRate in 2.0.0) boundary condition.

In the source code the example states
Code:
    inlet
    {
        type            mappedFlowRate;
        phi             phi;
        rho             rho;
        neigPhi         neigPhiName_;    // Volumetric/mass flow rate
                                         // [m3/s or kg/s]
        value           uniform (0 0 0); // placeholder
    }
It is the neighPhi I am not sure how to define.

I would guess that you specify a phi (from a file?) which has the proper units (either m3/s or kg/s). If this is the case, how would I generate this file?

In my boundary file I have defined the inlet patch as
Code:
    inlet
    {
        type            mappedPatch;
	sampleMode	nearestPatchFace;
	samplePatch	outlet;
	offset		(9e-3 0 0);
        nFaces          100;
        startFace       70820;
    }
and my U file has
Code:
    inlet
    {
        type            mappedFlowRate;
	rho		rho;
	phi		phi;
	neigPhi		neigPhiName_;
        value           nonuniform List<vector>
Here I have used potentialFoam to get an initial velocity field in my pipe such that the mappedFlowRate has some values to use. It seems like the neigPhi parameter does nothing when I change it. No error messages even.

This does run without problems, but it does not seem to maintain the mass flow rate at the inlet.

Has anyone successfully used this boundary condition? Any help would be greatly appreciated!
Taltan is offline   Reply With Quote

Old   May 12, 2012, 09:04
Default
  #2
New Member
 
Arve
Join Date: Sep 2011
Location: Norway
Posts: 8
Rep Power: 5
Taltan is on a distinguished road
I found a tutorial case which uses this boundary condition (/tutorials/combustion/fireFoam/les/oppositeBurningPanels). However in this case the inlet is not the boundary on which the mappedFlowRate is used.
The boundary condition looks like this in the U file:
Code:
    "(region0_to.*)"
    {
        type            mappedFlowRate;
        phi             phi;
        nbrPhi          phiGas;
        rho             rho;
        value           uniform (0 0 0);
    }
Apparently the nbrPhi is called phiGas. This is the only occurence where the name phiGas appeared in this case. It seems like this variable does not do much.
Taltan is offline   Reply With Quote

Old   January 2, 2014, 04:11
Default
  #3
Member
 
vishal
Join Date: Mar 2013
Posts: 54
Rep Power: 4
vishal_s is on a distinguished road
Hi Arve, did you figured out how to use it??
vishal_s is offline   Reply With Quote

Old   August 7, 2014, 04:54
Default
  #4
Senior Member
 
adambarfi's Avatar
 
Mostafa Mahmoudi
Join Date: Jan 2012
Posts: 314
Rep Power: 6
adambarfi is on a distinguished road
Send a message via Yahoo to adambarfi Send a message via Skype™ to adambarfi
I had the same problem and I found the solution.
here you are the way you should implement the mappedFlowRate:

Code:
    myPatch
    {
        type            mappedFlowRate;
        phi             phi;
        rho             rho;
        neigPhi         phi;
        value           uniform (0 0 0); // placeholder
    }
in which:
phi: not required --> default value=phi
rho: not required --> default value=rho
neigPhi: required --> name of flux field on neighbour mesh

you can find more information about it here

hope this help
adambarfi is offline   Reply With Quote

Reply

Tags
directmappedflowrate, infinite pipe, mappedflowrate

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Meshing a 2D airfoil properly jms Main CFD Forum 2 March 28, 2011 03:30
GAMBIT Error Msg database file not properly closed Janomano ANSYS Meshing & Geometry 8 November 23, 2010 05:14
[GAMBIT] whenever i try opening a .jou file, it just does not open..properly kamran651 ANSYS Meshing & Geometry 0 November 23, 2010 05:08
Properly using symmetry with both CFX and ANSYS workbench for a FSI analysis, help! Cirion0000 CFX 0 July 6, 2009 14:26
GUI problem : Long dialog boxes are seen properly Nuray FLUENT 0 July 26, 2006 11:09


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