CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Main CFD Forum (
-   -   grid data (

white heart May 4, 2010 06:06

grid data
I have grid data in two dimensions A(0:99,0:99). I want to work on a similar grid data but in a big size ,i.e., A(0:100,0:100), how can I make the extension?
I done the following but not sure if it is right:
do 12 i=0,99
do 12 j=0,99
12 a(i,j)=a(i,j)

do 13 i=0,99
13 a(i,100)=a(i,0)

do 14 j=0,99
14 a(100,j)=a(0,j)
Please help me if I am in a wrong way.

DoHander May 4, 2010 06:34


you need to use some interpolation formula, do you have structured Cartesian grids ?


white heart May 4, 2010 07:00

Yes I have structured Cartesian grids.

DoHander May 4, 2010 07:07

You are lucky, you can use a built in Matlab function to interpolate between your grids:

If you don't have a Matlab license you can use Octave (which is an Open Source Matlab replacement and works on all major operating systems and it is free):

Or possible Fortran:

Hope this will help,


white heart May 4, 2010 09:05

Thank you very much Do for your help.

All times are GMT -4. The time now is 01:26.