|
[Sponsors] |
November 23, 2005, 08:55 |
Hi, everyone!
I have a que
|
#1 |
Member
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17 |
Hi, everyone!
I have a question about syntax. In anlitycalCylinder (from tutorials) I came across next code U.boundaryField()[3][0].x() U.mesh().boundary()[4].Cf()[0] What do [3][0] in the first case and [4]...[0] in the second case mean? Is it a some kind of element indexing? I've read Guides very attentively, but unfortunately there is no information at all. Hope to get some help. |
|
November 23, 2005, 09:31 |
It is indeed indexing.
U.bo
|
#2 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
It is indeed indexing.
U.boundaryField()[3][0].x() This is the x component of velocity for face number 0 from boundary region number 3. I.e. the first index accesses a specific boundary region of the U field, while the second addresses the face within that region. U.mesh().boundary()[4].Cf()[0] This is the face centre vector for face number 0 from boundary region number 4. |
|
November 23, 2005, 09:42 |
I was thinking something like
|
#3 |
Member
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17 |
I was thinking something like that, but I wanted to be sure
Thank you for reply |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Syntax Error | Virag | CFX | 4 | February 3, 2019 08:59 |
Equation syntax | shrina | OpenFOAM Running, Solving & CFD | 0 | October 13, 2006 14:03 |
Calculus syntax | chris1980 | OpenFOAM | 1 | April 29, 2006 10:26 |
Syntax | r2d2 | OpenFOAM | 1 | December 13, 2005 14:19 |
Syntax changes between versions 1.0.x and 1.1 | OpenFOAM discussion board administrator | OpenFOAM Announcements from ESI-OpenCFD | 0 | March 11, 2005 12:48 |