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

An unknown array definition in fortran

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 20, 2011, 04:32
Default An unknown array definition in fortran
  #1
Senior Member
 
morteza08's Avatar
 
Morteza
Join Date: May 2010
Location: Iran,Islamic Republic of
Posts: 159
Rep Power: 7
morteza08 is on a distinguished road
Hi all
I have encountered a problem in a cfd code(GENMIX by Splading).
In this code, the computational domain is 20*92
----------------------------------------------
An array is defined in the code as below:
F(20,9) ,,,real type
It is declared inside code that:
F(20,a1)=temperature
F(20,a2)=enthalpy
.
.
.
F(20,a9)=pressure
---------------
It means the second dimension of the array is related to a specific property.
but the problem is here:
each one of a1,a2,...,a9 parameters refers to a seies of data for 92 point.

for example :
write(*,*) F(4,a2)
prints 92 real numbers for the 4th row of the domain.
==========
generally, ai (i=1 to 9) is not a number. it is a 92 numbers.
----
i have learnt , in a two dimensional array, each element refers to a number not to a series of numbers.

==================
by the way, if anybody has a tutorial for the GENMIX code please send me if possible or send me a link to download.
morteza08 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
dsmcInitialise - dsmcFoam archymedes OpenFOAM Pre-Processing 93 February 11, 2014 02:22
fluent3DMeshToFoam bego OpenFOAM 27 May 29, 2013 13:08
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
compressible two phase flow in CFX4.4 youngan CFX 0 July 1, 2003 23:32


All times are GMT -4. The time now is 07:52.