|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Zander Meiring
Join Date: Jul 2018
Posts: 125
Rep Power: 8 ![]() |
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've tried looking through source code, but I'm not even sure where to look for the definition of this variable. |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
|
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). |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
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 |