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

Syntax What does mean

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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: 8
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: 12
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: 8
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Syntax Error Virag CFX 2 March 15, 2011 12:53
Equation syntax shrina OpenFOAM Running, Solving & CFD 0 October 13, 2006 13:03
Calculus syntax chris1980 OpenFOAM 1 April 29, 2006 09: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 01:33.