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

Syntax What does mean

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 23, 2005, 08:55
Default Hi, everyone! I have a que
  #1
Member
 
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17
evgenii is on a distinguished road
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.
evgenii is offline   Reply With Quote

Old   November 23, 2005, 09:31
Default It is indeed indexing. U.bo
  #2
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21
eugene is on a distinguished road
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.
eugene is offline   Reply With Quote

Old   November 23, 2005, 09:42
Default I was thinking something like
  #3
Member
 
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17
evgenii is on a distinguished road
I was thinking something like that, but I wanted to be sure

Thank you for reply
evgenii 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
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


All times are GMT -4. The time now is 09:49.