CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   udf for acoustic caculation (https://www.cfd-online.com/Forums/fluent/38057-udf-acoustic-caculation.html)

kevin September 29, 2005 22:32

udf for acoustic caculation
 
hi:

I want to caculate the outer fluid noise of vehicle in a high-speed. But the manual says that data of sound must be save and caculate by using UDF--DEFINE_ADJUST and DEFINE_ON_DEMAND seperately. What I want to know is that what should I write in these UDF. For the first one of saving pressure function, I think it likes this

#include "udf.h"

DEFINE_ADJUST(sp, d ) {

Thread *t;

cell_t c;

thread_loop_c(t,d)

{

begin_c_loop(c,t)

C_UDMI(c,t,0 )=C_P(c,t);

end_c_loop(c,t)

}

}

but the questions is where the thread(t) should point? Is the sound generation wall? How to realize it?

For the second UDF, should I programm the formula to caculate the corresponding data or use the existing module to do this. THanks in advance.

kevin



All times are GMT -4. The time now is 23:43.