CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   FLUENT (http://www.cfd-online.com/Forums/fluent/)
-   -   UDF (http://www.cfd-online.com/Forums/fluent/31767-udf.html)

Asad July 3, 2003 07:35

UDF
 
Hi

In our problem we have 4 user scalar.We want to assign boundary condition as S0 and S1 to constant, and (ds2/dn)=0 ,(ds3/dn)=0 (that n is normal to boundary). How can we do it with fluent?

Thanks

Adam July 4, 2003 09:46

Re: UDF
 
Setting values to a constant is easy from the BC panel. Change the option "Specified Flux" to "Specified Value"

If your scalars S2 & S3 are diffusive and do not pass through the boundary in another way, then dS/dn=0 is achieved by setting flux to 0.0. Try it in your case to see if it does set gradient to zero. Alternatively, you can write a PROFILE UDF that sets the Specified Value at the face to the Cell value in the adjacent cell.

Asad July 10, 2003 04:24

Re: UDF
 
Hi dear Adam I used flux=0 at wall but I saw that it didn't mean ds/dn=0; So I wan't to know that how I can use define profile for making gradient to zero. Please write in detail.

Thanks

Asad July 13, 2003 10:50

Re: UDF
 
Dear All I wrote a UDF to change values in boundary so that the gradiant would be zero. but it did not work well. please help me about definition of UDF to change boundary values or set gradient zero. thanks in advance


All times are GMT -4. The time now is 14:53.