CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Siemens (
-   -   scalar flux boundary condition (

Murali May 21, 2003 21:56

scalar flux boundary condition
<font face = "arial">Does anybody know how to specify the following boundary condition ?

flux = -D---- = q^0.5

where q is a user-defined scalar. Any idea which user-subroutine is to be used and how ?


John May 22, 2003 07:49

Re: scalar flux boundary condition
Define the wall region where you want to specify the species flux as constant flux region and use user code bcdefw to change the flux according to solution.

Murali May 22, 2003 14:18

Re: scalar flux boundary condition
<font face = "arial">Hello John,

nice suggn. Thanx. The subroutine BCDEFW requires me to RETURN the value of SCALAR(IS). Are you suggesting that if I have the previous boundary condition, I specify a constant flux say A close to te value of q^0.5 ? i.e.
flux = -D---- = q^0.5 = approx A where A is a constant

So if I specify A as the constant flux, I would then correct it to the required flux using a finite difference expression, involving the values at the centre of the adjacent cell and value at wall ??? i.e.Since,
flux = -D ---------------------

does that mean,

SCALAR(IS) = SCALC(IS)+flux*deltax/D ? Are you suggesting I iterate on this value locally ?


John May 23, 2003 06:28

Re: scalar flux boundary condition
Since you already know A, just put A in whichever scalar, say:

IF(IREG.EQ.1) THEN scalar(1)=a endif

SEE file in ufile directory because for BCDEFW, scalar is either mass fraction or its flux depending on what boundary condition you specified in prostar.

Murali May 23, 2003 11:50

Re: scalar flux boundary condition

wonderful. thanx a lot.

Regards Murali

All times are GMT -4. The time now is 13:40.