CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   FLUENT (https://www.cfd-online.com/Forums/fluent/)
-   -   error in using UDF for specifying drag coefficient (https://www.cfd-online.com/Forums/fluent/32152-error-using-udf-specifying-drag-coefficient.html)

Shekhar Jain September 17, 2003 05:53

error in using UDF for specifying drag coefficient
 
i am getting an error: Error: Set_Property: null user-defined-function name Error Object: ()

while setting the UDF(interpreted) for specifying the drag coefficient in Eulerian multiphase model using the macro DEFINE_EXCHANGE_PROPERTY.

Ale September 17, 2003 07:24

Re: error in using UDF for specifying drag coeffic
 
Have you defined a name (the first argument of the macro) for your UDF?

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

Good luck,

Ale

ap September 17, 2003 08:34

Re: error in using UDF for specifying drag coeffic
 
I had the same error using interpreted UDF. I "solved" it doing this way:

- Start FLUENT and load the mesh file, then the UDF (Define -> User Defined -> Functions -> Interpreted).

- Set up the case. When you choose your drag factor, you'll obtain the error. Ignore it.

- Save the case file and exit FLUENT.

- Open FLUENT again and load the case file. FLUENT automatically compiles the UDF.

- Set your drag factor again. Now you shouldn't see the error message.

Hi :)

ap

Shekhar Jain September 18, 2003 03:48

Re: error in using UDF for specifying drag coeffic
 
Thank you for your reply. I have defined a name for my UDF as the first argument to the DEFINE macro.

Shekhar Jain September 18, 2003 03:50

Re: error in using UDF for specifying drag coeffic
 
Hi ap, Thnak you for your reply. It indeed worked :) thanks a lot.


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