|
[Sponsors] |
July 2, 2009, 07:18 |
3d array.....
|
#1 |
New Member
amit kumar barik
Join Date: May 2009
Posts: 12
Rep Power: 16 |
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)??? |
|
August 13, 2009, 13:24 |
|
#2 |
New Member
John Ludwig
Join Date: Aug 2009
Posts: 5
Rep Power: 16 |
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. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 | Siemens | 2 | September 22, 2008 15:39 |
How to convert cgns file in node array? | John | Siemens | 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 |