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

Pressure outlet boundary condition

Register Blogs Community New Posts Updated Threads Search

Like Tree18Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 4, 2013, 15:41
Default
  #41
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
thanks Daniel.it compiled well.
do you know how can use that in groovyBC?
immortality is offline   Reply With Quote

Old   April 4, 2013, 20:20
Default
  #42
Senior Member
 
immortality's Avatar
 
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27
immortality is on a distinguished road
whats the main part of this BC code so that i can write it in groovyBC format?
How does it work?can anyone give a point to start?
Does anyone know about the reason behind this bc?
Whats its formula?
immortality is offline   Reply With Quote

Old   April 10, 2013, 09:50
Default
  #43
New Member
 
Petr Vaněk
Join Date: Nov 2012
Posts: 7
Rep Power: 14
vanekp is on a distinguished road
Thank you very much Dan, now it works perfectly.

Chears,
Petr
vanekp is offline   Reply With Quote

Old   October 25, 2013, 12:24
Default
  #44
Senior Member
 
sivakumar selvaraju
Join Date: Mar 2009
Location: India
Posts: 205
Rep Power: 18
sivakumar is on a distinguished road
Send a message via Skype™ to sivakumar
Hi There and Daniel,
I want to use the fixedMeanValue BC. I think I have compiled the code, but I am not sure, I dont know How to check as well.

I copied the fixedMeanValue BC code to

/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/fields/fvPatchFields/derived

After that,

The steps I followed are:

1) I copied and pasted the following lines in to the fixedMeanValue/Make/files

$(derivedFvPatchFields)/fixedMeanValue/fixedMeanValueFvPatchFields.C
$(derivedFvPatchFields)/waveSurfacePressure/waveSurfacePressureFvPatchScalarField.C




2) then went the main directory and executed ./Allwmake

I am not sure, is it the right way or not.

I tried a case, it is running with that BC,

I have noticed that in the main folder there is an additional folder with the user name (cerecam2-1.1). is it normal??. This folder has lib file in it.

I hope everything is fine, please correct me if there is any mistake.

Thanks,
Sivakumar
sivakumar is offline   Reply With Quote

Old   October 25, 2013, 12:51
Default
  #45
Senior Member
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0
chegdan will become famous soon enoughchegdan will become famous soon enough
There was no need to put that BC in the source directories of OpenFOAM. It was made to be compiled separately in a working directory so you did not need to modify core files in your installation. In fact that is one of the beautiful parts of OpenFOAM ....that you can modularize components and add them as you wish with

Code:
libs ( "somethingSomething.so");
In your controlDict file on a case-by-case basis.

Quote:
I have noticed that in the main folder there is an additional folder with the user name (cerecam2-1.1). is it normal??
If your user name is "cerecam" then yes!

I suggest you undo your changes of moving the BC to /OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/fields/fvPatchFields/derived

and just place the orginal BC folder and files in a folder located at cerecam2-1.1/applications and then go to the BC folder and wmake libso. Read through some of the older posts in this thread for some clarity!
chegdan is offline   Reply With Quote

Old   October 25, 2013, 12:58
Default
  #46
Senior Member
 
sivakumar selvaraju
Join Date: Mar 2009
Location: India
Posts: 205
Rep Power: 18
sivakumar is on a distinguished road
Send a message via Skype™ to sivakumar
Thanks Daniel,
sivakumar is offline   Reply With Quote

Old   October 25, 2013, 13:28
Default
  #47
Senior Member
 
sivakumar selvaraju
Join Date: Mar 2009
Location: India
Posts: 205
Rep Power: 18
sivakumar is on a distinguished road
Send a message via Skype™ to sivakumar
Hi There,
I have few question regarding the theory of the fixedMeanValue BC.

1) what is the equation for it?
2) how it is differing from fixedValue?
3)how do we need to determine the mean value?
4)the meanValue, is it always "0" ?

Please give some input for this questions.

Thanks,
Sivakumar

Last edited by sivakumar; October 28, 2013 at 10:17.
sivakumar is offline   Reply With Quote

Old   November 2, 2013, 06:44
Default
  #48
Member
 
Yao Lu
Join Date: May 2013
Posts: 33
Rep Power: 13
shuoxue is on a distinguished road
Quote:
Originally Posted by mohsen cheraghi View Post
Hello to all
I'm a new user of OpenFoam and I'm looking for a boundary condition like outflow B.C like Fluent. Help me please.
Hi, Mohsen!

Have you found out the way to simulate outflow BC in openfoam?
shuoxue is offline   Reply With Quote

Old   March 2, 2014, 09:06
Default
  #49
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
I modified the boundary condition so it can use time varying meanValues.

An example for a time varying velocity boundary condition is:
Code:
    INLET
    {
        type            fixedMeanValue;
        meanValue       table
            (
                (0 (0 0 -10))
                (5 (0 0 10))
                (6 (0 0 -10))
                (20 (0 0 -10))
            );
        value uniform (0 0 -10);
    }
The example below should still work.
(I compiled it with OpenFOAM 2.2.2 and 2.3.0)
Quote:
Originally Posted by chegdan View Post
@immortality: Just to quadruple check if I was crazy or not, I went through the thread, made a new fixedMeanValue from the information on this thread, and it works for OF-2.2.x. It literally took longer to write this post than to actually find out if it was compatible .

@vanekp if you have the capability of compiling your own solvers/application in your user directory on your cluster, you can use this BC. Just take the attached code, unzip in your user foam directory, move into the directory and do a

Code:
wmake libso
where you need to place

Code:
libs ( "libfixedMeanValue.so");
in your caseName/system/controlDict file. To use the code, in your case you are using the BC like

Code:
    outlet
    {
        type            fixedMeanValue;
    meanValue        0;    
        value           uniform 0;
    }
This code has been confirmed to work with 2.1.x and 2.2.x.

But there is a fixedMean boundary condition in 2.2.x that may be what you want also.
Attached Files
File Type: gz fixedMeanValueTimeVarying-2.x.x.tar.gz (2.7 KB, 35 views)
jherb is online now   Reply With Quote

Old   March 5, 2014, 18:00
Default
  #50
Senior Member
 
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17
ziemowitzima is on a distinguished road
Hello,
Can anyone tell me how can I get the fixedMeanValue BC ?
thanks!
ziemowitzima is offline   Reply With Quote

Old   March 5, 2014, 18:06
Default
  #51
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
Download the archive from the above comment, unpack into a directory, call wmake libso, add the library to controlDict and use the boundary condition for the corresponding field (see also comments above).

Quote:
Originally Posted by ziemowitzima View Post
Hello,
Can anyone tell me how can I get the fixedMeanValue BC ?
thanks!
jherb is online now   Reply With Quote

Old   March 5, 2014, 18:28
Default
  #52
Senior Member
 
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17
ziemowitzima is on a distinguished road
Thanks a lot !
I do not know how I miss your previous post !
I did compile it, and use it as follows:
type fixedMeanValue;
meanValue constant 100000;
value uniform 100000;

my question is, what is the purpose/difference between the second and the last line ?

what in this case is appropriate BC for outlet velocity, zeroGradient ?

Thanks
ZMM
ziemowitzima is offline   Reply With Quote

Old   March 6, 2014, 05:26
Default
  #53
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
"value" is used for initialization of the simulation or the value calculated in the last time step (or SIMPLE iteration). So in post processing you see how the values are distributed across the boundary.

"meanValue" is what you specify as boundary condition. It correspondent to the "value" of the fixedValue boundary condition.

See also the discussion in http://www.cfd-online.com/Forums/ope...egionfoam.html

Quote:
Originally Posted by ziemowitzima View Post
Thanks a lot !
I do not know how I miss your previous post !
I did compile it, and use it as follows:
type fixedMeanValue;
meanValue constant 100000;
value uniform 100000;

my question is, what is the purpose/difference between the second and the last line ?

what in this case is appropriate BC for outlet velocity, zeroGradient ?

Thanks
ZMM
jherb is online now   Reply With Quote

Old   March 14, 2014, 04:36
Default
  #54
Senior Member
 
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17
ziemowitzima is on a distinguished road
Dear Jherb,
I have one more question.
Starting form OF220, there is derived BC called:
fixedMean
its description says:

Description
This boundary condition extrapolates field to the patch using the near-cell
values and adjusts the distribution to match the specified mean value.

\heading Patch usage

\table
Property | Description | Required | Default value
meanValue | mean value | yes |
\endtable

Example of the boundary condition specification:
\verbatim
myPatch
{
type fixedMean;
meanValue 1.0;
}
\endverbatim

Is it the same BC as "fixedMeanValue" discussed in this posts/thread ?

Thanks
ZMM
ziemowitzima is offline   Reply With Quote

Old   March 14, 2014, 10:25
Default
  #55
Senior Member
 
sivakumar selvaraju
Join Date: Mar 2009
Location: India
Posts: 205
Rep Power: 18
sivakumar is on a distinguished road
Send a message via Skype™ to sivakumar
hi,
I think its the same.
sivakumar is offline   Reply With Quote

Old   March 17, 2014, 05:13
Default problem with unphysically strong reverse flow at the outlet
  #56
Senior Member
 
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17
ziemowitzima is on a distinguished road
Dear Foamers,
Even though I was using fixedMeanValue, or fixedMean (from OF221), or totalPressure BC at the outlet (keeping zeroGradnient, or inletOutlet for U) I still have a problem with constitution of unphysical strong reverse flow at the outlet, please see attached figure.

Does anyone of you know how to avoid such problem ?

Thanks
ZMMbc_problem.jpg
ziemowitzima is offline   Reply With Quote

Old   March 19, 2014, 05:46
Default
  #57
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22
jherb is on a distinguished road
The two boundary conditions are nearly the same. The boundary condition of this thread uses gAverage to calculate the averages (=mean) of the field values on the boundary patch, whereas the OF core version uses a weighted average, using the face areas as weights. The latter version seams to make more sense physically.


Quote:
Originally Posted by ziemowitzima View Post
Dear Jherb,
I have one more question.
Starting form OF220, there is derived BC called:
fixedMean
its description says:

Description
This boundary condition extrapolates field to the patch using the near-cell
values and adjusts the distribution to match the specified mean value.

\heading Patch usage

\table
Property | Description | Required | Default value
meanValue | mean value | yes |
\endtable

Example of the boundary condition specification:
\verbatim
myPatch
{
type fixedMean;
meanValue 1.0;
}
\endverbatim

Is it the same BC as "fixedMeanValue" discussed in this posts/thread ?

Thanks
ZMM
jherb is online now   Reply With Quote

Old   August 28, 2014, 10:58
Default
  #58
New Member
 
Parth Thaker
Join Date: Mar 2014
Location: Surat , Gujarat , INDIA
Posts: 26
Rep Power: 12
Parth04 is on a distinguished road
hi to all,
can anyone help me with these , how to apply same B.C. i.e. fixed mean value at outlet??
i m simulating stratified flow using C language???
thnx in advance...
Parth04 is offline   Reply With Quote

Old   November 12, 2014, 14:51
Default
  #59
Senior Member
 
SinaJ
Join Date: Nov 2009
Posts: 136
Rep Power: 17
sina_mech is on a distinguished road
Daniel P. Combest

I just wanted to update you that it also works well with OpenFOAM 2.3. Thank you. It really helped me.
chegdan likes this.
sina_mech is offline   Reply With Quote

Old   January 26, 2016, 22:01
Default fixedMean magic
  #60
New Member
 
Sri
Join Date: Nov 2012
Posts: 10
Rep Power: 14
srivatta is on a distinguished road
Just wanted to narrate a recent experience on the difference between fixed value of pressure at out versus fixedMean. I applied both bcs (separately of course) to a slot jet impinging on a wall. See the difference in the coefficient of pressure in each case. (in a confined jet, vortices leave the domain!).
Attached Files
File Type: gz cfd-o.tar.gz (49.7 KB, 45 views)
random_ran likes this.
srivatta 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outlet pressure boundary condition adamsview OpenFOAM Running, Solving & CFD 2 November 7, 2011 14:07
pressure outlet boundary condition Sastry FLUENT 4 February 19, 2011 02:33
Pressure outlet boundary condition jubs FLUENT 0 February 8, 2007 01:27
Pressure outlet boundary condition Rizwan FLUENT 1 March 6, 2006 08:07
Pressure outlet condition? David FLUENT 3 March 19, 2004 05:40


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