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.
Re: Species variable
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)
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
Species variable: THANKS
THANKS FOR YOU HELP!
|All times are GMT -4. The time now is 02:42.|