CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Species variable

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2004, 11:45
Default Species variable
  #1
RK
Guest
 
Posts: n/a
Hello;

Does anyone know how to obatain the species alias in CFX 4.4? Is it through GETSCA? If so what would be the syntax procedure?

For in places where temperatures are not avaiable one could use the GETADD function to get the tempearure variable where it would be available as WORK(JT+INODE-1). What is the syntax for the species variable?

Thanks in advance.

RK
  Reply With Quote

Old   September 17, 2004, 09:55
Default Re: Species variable
  #2
Jeff
Guest
 
Posts: n/a
Mass fractions, species, and user variables are all indexed through the SCAL array. That is, each of these variables is stored sequentially within SCAL.

To find the "index" of your species in the SCAL array use:

CALL GETSCA('my species',ISPEC,CWORK)

ISPEC will be returned as the index position within SCAL.

If the SCAL array is available in your subroutine, simply access your species through SCAL(INODE,IPHASE,ISCAL).

If SCAL is not available, you can access it through the WORK array as such (assuming single phase):

CALL GETADD('MYSUBR','VAR ','SCAL ',ILEVEL,JSCAL)

then access:

WORK(JSCAL + (ISPEC-1)*NNODE + INODE-1)

to get the species at each node.

If this is not a single phase problem, you need to reference:

WORK(JSCAL + (ISCAL-1)*NNODE*NPHASE + (IPHASE-1)*NNODE + INODE-1)

Check the documentation for usage of GETADD and GETSCA.

Hope this helps, Jeff
  Reply With Quote

Old   September 20, 2004, 10:21
Default Species variable: THANKS
  #3
RK
Guest
 
Posts: n/a
THANKS FOR YOU HELP!

RK
  Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Modelling Biomass Combustion via Species Transport Racheal FLUENT 39 January 8, 2022 07:42
emag beta feature: charge density charlotte CFX 4 March 22, 2011 09:14
error in COMSOL:'ERROR:6164 Duplicate Variable' bhushas COMSOL 1 May 30, 2008 04:35
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 04:27
Replace periodic by inlet-outlet pair lego CFX 3 November 5, 2002 20:09


All times are GMT -4. The time now is 19:16.