CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   User sclar boundary condition. (https://www.cfd-online.com/Forums/fluent/39607-user-sclar-boundary-condition.html)

shuqin February 13, 2006 03:18

User sclar boundary condition.
 
Hi!Does anyone know wall boundary conditon for a UDS,thi, as:

d/dn(thi)=0 and d/dn(thi)=S;

According to the mannual you can only set:

1)thi=fixed value and

2)flux of scalar = fixed value

Since I can access grandiant of scalar through C_UDSI_G(c,t,i)[x] where x= 0,1,2;

but how should I set the gradiant of scalar as fixed value S?

or should I have to solve two scalar equations and couple them?

Does anyone know how to deal with this problem?


Ynot February 13, 2006 10:15

Re: User sclar boundary condition.
 
the flux of the scalar is d(Phi)/dn

shuqin February 14, 2006 04:14

Re: User sclar boundary condition.
 
yeah, thank you for correcting !

shuqin February 15, 2006 02:56

Re: User sclar boundary condition.
 
the UDS equation I am going to solve is a laplace equation.

the scalar thi represents Electric potential.

and convective flux is not to be computed and the equation as the UDF mannual is:

-d[(diff*(d(thi)/dxi)]/dxi=S ;

and at one wall ,I have to define the gradiant of scalar as a specified value,and how shall I resolve it?

any suggestions or comments would be welcomed!

Thanks in advance!


Ynot February 15, 2006 11:32

Re: User sclar boundary condition.
 
As i said in my previous reply, you just set d(Phi)/dn at the boundary.

For scalar equations, the boundary conditions are either specified value, specified flux, or mixed. It is confusing when u say "gradient of scalar as a specified value".

In any case, you can either specify the value of Phi or the flux of Phi at the given boundary. When you open the boundary conditions setting in Fluent, you will have the option to do that.

Hope that helps.

shuqin February 16, 2006 01:41

Re: User sclar boundary condition.
 
thank you ,Ynot!I see now!


Kharicha February 16, 2006 02:47

Re: User sclar boundary condition.
 
The flux is not simply a gradient,

The flux is always defined as FLUX =-Diff*d(phi)/dn

Be carefull : n is the direction normal to your boundary and directed INTO the flow. Do not forget the sign (-)...

Do you have a constant flux, or is it a function of something else ?

Are you modeling some MHD flow?

shuqin February 17, 2006 00:00

Re: User sclar boundary condition.
 
thank you,Kharicha !

the flux should be : FLUX =-Diff*d(phi)/dn ;

the flux is not constant ,but a function of the internal conditions of the fluid zone;

by the way,what is MHD mean?


Kharicha February 17, 2006 01:06

Re: User sclar boundary condition.
 
Magnetohydrodynamic=MHD!

So I wonder what is the purpose of your study if it is not MHD ?

Arvind Phate February 17, 2006 06:03

Re: User sclar boundary condition.
 
Can you tell me what scalar you are defining with UDS.

shuqin February 19, 2006 22:01

Re: User sclar boundary condition.
 
not MHD,but fuel cell

shuqin February 22, 2006 20:58

Re: User sclar boundary condition.
 
Electronic potential,I've mentioned.


All times are GMT -4. The time now is 09:54.