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

grid data

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

Reply
 
LinkBack Thread Tools Display Modes
Old   May 4, 2010, 06:06
Default grid data
  #1
New Member
 
Join Date: Apr 2010
Posts: 5
Rep Power: 7
white heart is on a distinguished road
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)
a(100,100)=a(0,0)
Please help me if I am in a wrong way.
Thanks.
white heart is offline   Reply With Quote

Old   May 4, 2010, 06:34
Default
  #2
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 10
DoHander is on a distinguished road
Hello,

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

Do
DoHander is offline   Reply With Quote

Old   May 4, 2010, 07:00
Default
  #3
New Member
 
Join Date: Apr 2010
Posts: 5
Rep Power: 7
white heart is on a distinguished road
Yes I have structured Cartesian grids.
white heart is offline   Reply With Quote

Old   May 4, 2010, 07:07
Default
  #4
Senior Member
 
Join Date: Nov 2009
Posts: 411
Rep Power: 10
DoHander is on a distinguished road
You are lucky, you can use a built in Matlab function to interpolate between your grids:

http://www.mathworks.com/access/help...f/interp2.html

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):

http://www.gnu.org/software/octave/d...rpolation.html

Or possible Fortran:

http://people.sc.fsu.edu/~burkardt/f...al/alscal.html

Hope this will help,

Do
DoHander is offline   Reply With Quote

Old   May 4, 2010, 09:05
Default
  #5
New Member
 
Join Date: Apr 2010
Posts: 5
Rep Power: 7
white heart is on a distinguished road
Thank you very much Do for your help.
white heart 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
Plasma Flow Modelling using Source term and cell's data Constantine Fluent UDF and Scheme Programming 2 May 19, 2010 21:06
writing grid data caponewilliam Fluent UDF and Scheme Programming 0 February 24, 2010 04:57
"grid points" or "grid interface" ztdep Main CFD Forum 1 June 6, 2007 15:00
Grid data George FLUENT 0 November 12, 2006 08:05
Numerical methods for discontinuous grid interfaces? Hansong Hang Main CFD Forum 12 September 16, 1998 22:26


All times are GMT -4. The time now is 04:45.