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

3d array.....

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 2, 2009, 06:18
Unhappy 3d array.....
  #1
New Member
 
amit kumar barik
Join Date: May 2009
Posts: 12
Rep Power: 8
fastnfuriousamit is on a distinguished road
Hello friends,
Well I use PHOENICS 3.5.1 and am currently trying to do a current distribution problem in 3 dimensions.
I need to give the boundary conditions in 3-d patches.
While doing the same problem in 2-d i gave the following ground coding.
"DO IY=1,IG(2)
DO IX=NX,NX
F(INDYX(VAL))=23.008
ENDDO
ENDDO"
But how do i declare a 3-d array??
I need to know what functions should i use instead of F(INDYX)???
fastnfuriousamit is offline   Reply With Quote

Old   August 13, 2009, 12:24
Default
  #2
New Member
 
John Ludwig
Join Date: Aug 2009
Posts: 5
Rep Power: 7
John_L is on a distinguished road
The patches are always visited 'per Z plane', and only on planes where the patch exists. You do not need to declare 3D arrays or change your code, though something like:

l0val=l0f(val)
do ix=ixf,ixl
do iy=iyf,iyl
i=(ix-1)*ny+iy
f(l0val+i)=23
enddo
enddo

would be a more normal way of doing it. ixf,ixl,iyf,oyl are set internally to the limts of the current patch so you don't need to set them yourself.
John_L 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
Geometry array in Gambit CUser FLUENT 0 November 1, 2008 11:50
ARRAY PASSING in STAR4 John CD-adapco 2 September 22, 2008 14:39
How to convert cgns file in node array? John CD-adapco 0 November 12, 2006 23:55
How to convert cgns filr in node array? John FLUENT 0 November 12, 2006 23:54
How to conevrt cgns file in node array for metis? John CFX 0 November 12, 2006 23:54


All times are GMT -4. The time now is 17:23.