# UDFs' problem

 Register Blogs Members List Search Today's Posts Mark Forums Read

 June 3, 2005, 09:12 UDFs' problem #1 Benny Guest   Posts: n/a Hi all, If I want to get the temperature of cells which are adjacent to the wall, how could I achieve it? Best regards! Benny

 June 3, 2005, 09:51 Re: UDFs' problem #2 dirk Guest   Posts: n/a For what do you need these temperatures?

 June 3, 2005, 10:02 Re: UDFs' problem #3 Benny Guest   Posts: n/a I need the temperature for I want to calculate the htc.

 June 3, 2005, 10:10 Re: UDFs' problem #4 dirk Guest   Posts: n/a It is available under wall fluxes. You dont't have to compute them with UDF. Dirk

 June 3, 2005, 10:35 Re: UDFs' problem #5 Benny Guest   Posts: n/a I found that the result of Surface Heat Transfer Coef. is not right. It's defined by h=q/(T_wall-T_ref), where T_ref is the fluid average temperature. But I think if the T_ref is near walltemperature, the result will be better.

 June 3, 2005, 12:21 Re: UDFs' problem #6 DH Guest   Posts: n/a There is a routine which allows you to get the c0 and c1 cells for any given face. You would need to loop through all the faces on the given cell and get the c0,c1 temperature for each adjoining cell. Note, the looping order for cells interior to you domain and those at the boundarys will have different looping orders. This type of looping and calling the adjacent cells to a face is in the fluent udf manual. cheers, DH

 June 3, 2005, 14:29 Re: UDFs' problem #7 us Guest   Posts: n/a see example in , 4.3.21 section of UDF manual(F6.2)

 June 3, 2005, 22:48 Re: UDFs' problem #8 Benny Guest   Posts: n/a Hi, Thank you all for your help! could you show me what DEFINE Macros I should use to get the value? I need more info in details. Dear us, could you post the example here, for the version I use is 6.1.22. Thank you again1 Best regards! Benny

 June 4, 2005, 21:56 Re: UDFs' problem #9 forest Guest   Posts: n/a I think DEFINE_ADJUST could do that. There should be other ways as well.

 June 6, 2005, 12:04 Re: UDFs' problem #11 Benny Guest   Posts: n/a Hi us! Thank you very much! Best regards! Benny

 June 7, 2005, 07:53 Re: UDFs' problem #12 Mahesh Guest   Posts: n/a If U know the temperature of the wall, give it in Reference panel and then u can get htc. Otherwise, U can write one custom field function for the same.

 June 7, 2005, 09:47 Re: UDFs' problem #13 Benny Guest   Posts: n/a dear Mahesh, I think the most difficult thing is to get the temperature of the nodes adjacent the wall. I think the reference temperature should be the temperature of the nodes adjacent the wall, not the one of fluid.

 June 13, 2005, 07:28 Re: UDFs' problem #14 zubier Guest   Posts: n/a would you please show me how to use the user defined scalar to model electrical field inside the heating cell ontaining fluid means that how to use c language to write this subroutne program with my best regard

 June 13, 2005, 11:05 Re: UDFs' problem #15 us Guest   Posts: n/a I can give you some literature reference where electrostatic field was modelled using User defined scalar. But it was for the application of electrostatic powder coating process. However, atleast you'll get some idea. Ye, Q., Steigleder, T., Scheibe, A., and Domnick, J., 2002, Numerical simulations of the electrostatic powder coating process with a corona spray gun, J. of Electrostatics 54, 189-205. Bottner, C.U. and Sommerfeld, M., 2002, Numerical calculation of electrostatic powder painting using the Euler/Lagrange approach, Powder Technology 125, 206-216.