Interpret three UDF for property

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

 April 21, 2006, 12:19 Interpret three UDF for property #1 Atsu Guest   Posts: n/a Hi all, I am trying to use UDF for three properties, which are density, thermal conductivity and viscosity. When I compile the UDF I get only one UDF. The last one compiled overlaps the previous one, so I cannot define three different properties using the UDF. I compiled them by the "Interpreted UDF". How can I use the three UDFs at a same time? I would appreciate any help and suggestions thank you Atsu

 April 21, 2006, 13:41 Help: Interpret three UDF for property #2 Atsu Guest   Posts: n/a Hi again, I tryed to set each UDFs at a time in another way; 1. interpret density.c -> set density on Mat. prop. 2. interpret viscosity.c -> set viscosity on it 3. interpret thermcond.c -> set therm. cond. on it and then tryed to calculate, but not run. How can I use the three UDFs at a same time? Please help, Atsu

 April 22, 2006, 05:31 Re: Help: Interpret three UDF for property #3 Markus Guest   Posts: n/a Hi Atsu, You don't have to use different c-files for each UDF. Just put all DEFINE_PROPERTY macros in one single c-file, compile this file and all the UDF's will be available. Cheers Markus

 April 22, 2006, 12:12 Re: Help: Interpret three UDF for property #4 Atsu Guest   Posts: n/a Hi Markus, Thank you for your favor. Could you show me more about how I should make one single c-file for some properties? Should I make c-file for three properties as follows?; #include "udf.h" DEFINE_PROPERTY(prop_name, cell, thread) { real temp, press, density, thermalcond, visco; temp = C_T(cell, thread); press = C_P(cell, thread); {/* equation for density */} {/* equation for thermalcond */} {/* equation for visco */} C_MU_L(cell, thread) = visco; C_R(cell, thread) = density; C_K_L(cell, thread) = thermalcond; }

 April 22, 2006, 15:04 Re: Help: Interpret three UDF for property #5 Atsu Guest   Posts: n/a Hi Markus, I can run!! Thank you very much for your advice. I had to make it listed bellow; #include "udf.h" DEFINE_PROPERTY(density, cell, thread) {/* equation for density */} DEFINE_PROPERTY(thermalcond, cell, thread) {/* equation for thermalcond */} DEFINE_PROPERTY(viscosity, cell, thread) {/* equation for visco */}

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post eddiegolpesar FLUENT 0 November 1, 2010 09:23 Jinfeng Fluent UDF and Scheme Programming 3 September 26, 2009 17:40 Lotfi FLUENT 1 August 26, 2007 12:58 Prasad FLUENT 1 August 15, 2007 08:44 Leonard FLUENT 1 October 22, 2005 10:06

All times are GMT -4. The time now is 13:19.