|
[Sponsors] |
April 4, 2013, 15:41 |
|
#41 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
thanks Daniel.it compiled well.
do you know how can use that in groovyBC? |
|
April 4, 2013, 20:20 |
|
#42 |
Senior Member
Ehsan
Join Date: Oct 2012
Location: Iran
Posts: 2,208
Rep Power: 27 |
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? |
|
April 10, 2013, 09:50 |
|
#43 |
New Member
Petr Vaněk
Join Date: Nov 2012
Posts: 7
Rep Power: 14 |
Thank you very much Dan, now it works perfectly.
Chears, Petr |
|
October 25, 2013, 12:24 |
|
#44 |
Senior Member
|
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 |
|
October 25, 2013, 12:51 |
|
#45 | |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
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"); Quote:
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! |
||
October 25, 2013, 12:58 |
|
#46 |
Senior Member
|
Thanks Daniel,
|
|
October 25, 2013, 13:28 |
|
#47 |
Senior Member
|
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. |
|
November 2, 2013, 06:44 |
|
#48 |
Member
Yao Lu
Join Date: May 2013
Posts: 33
Rep Power: 13 |
||
March 2, 2014, 09:06 |
|
#49 | |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
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); } (I compiled it with OpenFOAM 2.2.2 and 2.3.0) Quote:
|
||
March 5, 2014, 18:00 |
|
#50 |
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17 |
Hello,
Can anyone tell me how can I get the fixedMeanValue BC ? thanks! |
|
March 5, 2014, 18:06 |
|
#51 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
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).
|
|
March 5, 2014, 18:28 |
|
#52 |
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17 |
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 |
|
March 6, 2014, 05:26 |
|
#53 | |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
"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:
|
||
March 14, 2014, 04:36 |
|
#54 |
Senior Member
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17 |
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 |
|
March 14, 2014, 10:25 |
|
#55 |
Senior Member
|
hi,
I think its the same. |
|
March 17, 2014, 05:13 |
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 |
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 |
|
March 19, 2014, 05:46 |
|
#57 | |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
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:
|
||
August 28, 2014, 10:58 |
|
#58 |
New Member
Parth Thaker
Join Date: Mar 2014
Location: Surat , Gujarat , INDIA
Posts: 26
Rep Power: 12 |
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... |
|
November 12, 2014, 14:51 |
|
#59 |
Senior Member
SinaJ
Join Date: Nov 2009
Posts: 136
Rep Power: 17 |
Daniel P. Combest
I just wanted to update you that it also works well with OpenFOAM 2.3. Thank you. It really helped me. |
|
January 26, 2016, 22:01 |
fixedMean magic
|
#60 |
New Member
Sri
Join Date: Nov 2012
Posts: 10
Rep Power: 14 |
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!).
|
|
|
|
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 |