|
[Sponsors] |
October 3, 2019, 03:39 |
boundary "value" parameter
|
#1 |
New Member
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14 |
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 |
|
October 3, 2019, 05:34 |
|
#2 |
Senior Member
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 342
Rep Power: 28 |
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 |
|
October 3, 2019, 05:51 |
|
#3 |
New Member
David
Join Date: Mar 2012
Posts: 17
Rep Power: 14 |
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 |
|
Tags |
boundary condition, boundary definition |
|
|
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 |