CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   How to set mass fraction at inlet boundary conditi (http://www.cfd-online.com/Forums/cfx/19867-how-set-mass-fraction-inlet-boundary-conditi.html)

Eric September 3, 2003 11:52

How to set mass fraction at inlet boundary conditi
 
I want to use user-fortran to read one mass fraction value from an outlet boundary and set the read value to an inlet boundary. Can anyone tell me how to read the mass fraction value from an outlet and how to set the value to an inlet?


Carola September 5, 2003 13:31

Re: How to set mass fraction at inlet boundary con
 
Have you ever read the tutorial about a combustion chamber?, here they have this example ( mass fraction value to an inlet )

Take care

Carola

Eric September 7, 2003 04:23

Re: How to set mass fraction at inlet boundary con
 
Hi Carola,

I use CFX4.4 and I don't where can find the tutorial abour a combustion chamber. I refer to some example for User-fortran and I don't know how to use USRBCS to set mass fraction at an inlet. My source code is as follow. Can you give me some comment or advise?

CALL GETSCA('MASS FRACTION1',IVAR,CWORK) CALL IPREC('INLET-AS1','PATCH','CENTRES',IPT,ILEN,JLEN,KLEN,CWORK,IW ORK)

IPHS = 1

DO 100 K = 1,KLEN

DO 110 J = 1,JLEN

DO 120 I = 1,ILEN

INODE = IP(I,J,K)

SCAL(INODE,IPHS,IVAR) = 0.5

120 CONTINUE

110 CONTINUE

100 CONTINUE

Thank you!

Eric

Carola September 8, 2003 13:09

Re: How to set mass fraction at inlet boundary con
 
Hi Eric!, Iīm afraid that I canīt help you. I thought that you had CFX-5.5.1!, sorry!.

take Care,

Carola


All times are GMT -4. The time now is 05:24.