CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

internalField in boundaryField

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 23, 2019, 10:24
Default internalField in boundaryField
  #1
Senior Member
 
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 8
yambanshee is on a distinguished road
Good day,

I've been following the suggestions of others on these forums, however I'm often seeing a similar value given for different boundary conditions; that being the internalField.

As an example, the outlet boundary for omega (with reverse flow) has been suggested to use

Code:
outlet
{
    type            inletOutlet;
    inletValue      $internalField;
}
I understand how inletOutlet works, but what does this setup use as the inletValue? is it the internal cell adjacent to the boundary? is it some averaged value across the whole domain? Is it something else?

I've tried looking through source code, but I'm not even sure where to look for the definition of this variable.
yambanshee is offline   Reply With Quote

Old   April 23, 2019, 16:16
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,938
Rep Power: 39
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

It is a value of internalField of the field. See https://github.com/OpenFOAM/OpenFOAM...iveEntry.C#L42.

In fact if you make a variable with

"var 10;"

further use as "$var" is expanded to 10.

Since usually value of the boundary conditions is recalculated on the following iterations, value entry is used as a placeholder (you have to put it there due to code architecture). So, writing "$internalField" allows to avoid "repeating yourself" (value entry of the boundary condition will be updated as you update internalField).
alexeym 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
reactingMultiphaseEulerFoam tonnykz OpenFOAM Running, Solving & CFD 2 June 15, 2020 02:09
error in fireFoam, when running the case wallFireSpread2D zhoubiao1088 OpenFOAM Running, Solving & CFD 9 February 1, 2018 18:45
Create internalfield from boundaryfield Dharoc OpenFOAM Programming & Development 0 December 17, 2017 11:17
Difference between 'internalField' and 'boundaryField'? Rusty Velo OpenFOAM 21 September 20, 2016 06:29
boundaryField vs. internalField sebonator OpenFOAM 10 January 24, 2011 16:43


All times are GMT -4. The time now is 21:54.