04-22-2012 02:16 PM
It looks like a good start.
Remember what I said about For Loops. The iteration counter begins at 0. But your loops start at either 1 (for n loop) or 2 (for i and j loops). So you need to add 1 or 2 to your iteration value before you do anything else.
From here on, you'll just have to add more code to account for the other parts of your equation.
04-22-2012 02:20 PM
thank you, i completed that section. and now need to set the boundary conditions because as i run the code i encounter the error that labvoew has run out of memory, so again using index array and replace array subset in the first loop i have to carry out this code. how could i equate them?
u(1,:,n+1) = u(2,:,n+1) ;
u(length(x),:,n+1) = u(ni-1,:,n+1) ;
u(:,1,n+1) = -u(:,2,n+1) ;
u(:,length(y),n+1) = -u(:,nj-1,n+1) ;
kindest Regards,
04-22-2012 02:31 PM
I don't know what you mean by "set the boundary conditions".
04-22-2012 02:56 PM
i want to set a maximum limit for the arrays when they execute, as my code stand it doenst run because there isnt enough memory in labview.
04-22-2012 03:06 PM