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

boundary "value" parameter

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2019, 03:39
Default boundary "value" parameter
  #1
New Member
 
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14
kiski is on a distinguished road
Hi,


In simple boundary values, such as fixedValue "value" parameter is well explained even in documentation (for example, command `foamInfo fixedValue` reports its usage).


But in less standard ones information is missing and is sometimes even not consistent. For example, `foamInfo pressureDirectedInletOutletVelocity` reports

...
Usage
\table
Property | Description | Required | Default value
phi | flux field name | no | phi
rho | density field name | no | rho
inletDirection | inlet direction per patch face | yes |
\endtable

Example of the boundary condition specification:
\verbatim
<patchName>
{
type pressureDirectedInletOutletVelocity;
phi phi;
rho rho;
inletDirection uniform (1 0 0);
value uniform 0;
}
\endverbatim
...

Here "value" is not reported, and when using it, it actually requires a vector or it complains, i.e. "value (0 1 0);" The example given in the documentation itself is not working.


The question is, for given pressureDirectedInletOutletVelocity example, what is value doing? I am not able to figure it out from code. Too hard for me. Also, is there any other source of information where I can find this info for other boundaries?

Thank you for your help
kiski is offline   Reply With Quote

Old   October 3, 2019, 05:34
Default
  #2
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 335
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
The value parameter is part of one of the very base classes of the boundary conditions. So, most boundary conditions inherit it from their ancestry.
However, the more complex classes have no particular use for this parameter, as they compute the boundary value. Thus, the user-provided value value is ignored.

The placeholder comment in some header-descriptions of BCs is an indication.

Code:
Class
    Foam::turbulentIntensityKineticEnergyInletFvPatchScalarField

Description
    This boundary condition provides a turbulent kinetic energy condition,
    based on user-supplied turbulence intensity, defined as a fraction of the
    mean velocity:

        \f[
            k_p = 1.5 (I |U|)^2
        \f]

    where

    \vartable
        k_p     | kinetic energy at the patch
        I       | turbulence intensity
        U       | velocity field
    \endvartable

    In the event of reverse flow, a zero-gradient condition is applied.

Usage
    \table
        Property     | Description             | Required    | Default value
        intensity    | fraction of mean field [0-1] | yes    |
        U            | velocity field name     | no          | U
        phi          | flux field name         | no          | phi
    \endtable

    Example of the boundary condition specification:
    \verbatim
    <patchName>
    {
        type        turbulentIntensityKineticEnergyInlet;
        intensity   0.05;           // 5% turbulence
        value       uniform 1;      // placeholder
    }
    \endverbatim

See also
    Foam::inletOutletFvPatchField

SourceFiles
    turbulentIntensityKineticEnergyInletFvPatchScalarField.C
GerhardHolzinger is offline   Reply With Quote

Old   October 3, 2019, 05:51
Default
  #3
New Member
 
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14
kiski is on a distinguished road
Thank you for your answer. I just realized that in some of such advanced conditions, the value value is used for initialization, and then ignored I guess.


Cheers
kiski is offline   Reply With Quote

Reply

Tags
boundary condition, boundary definition

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 02:44
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 02:27
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 05:39
Radiation interface hinca CFX 15 January 26, 2014 18:11
Low Mixing time Problem Mavier CFX 5 April 29, 2013 01:00


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