CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   UDF for drag law - Eulerian Model (

fevi84 July 16, 2012 13:41

UDF for drag law - Eulerian Model
I want to write a udf for drag law that included the interaction between the primary phase and second phase secundary, I have three phases. How I can identify the second phase secundary in the macro???:

DEFINE_EXCHANGE_PROPERTY (name, c, mixture_thread, second_column_phase_index, first_column_phase_index)

I tried with:

DEFINE_EXCHANGE_PROPERTY(drag_law,cell,mix_thread, 0, 2)

where 0 is the index for the primary phase and 2 is the index for the second phase secundary. But this did not work.

If anyone knows, please help me.

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