CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Interpret three UDF for property

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 21, 2006, 12:19
Default 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
  Reply With Quote

Old   April 21, 2006, 13:41
Default 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
  Reply With Quote

Old   April 22, 2006, 05:31
Default 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
  Reply With Quote

Old   April 22, 2006, 12:12
Default 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;

}

  Reply With Quote

Old   April 22, 2006, 15:04
Default 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 */}

  Reply With Quote

Reply


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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF interpret error with "C_CENTROID" Jinfeng Fluent UDF and Scheme Programming 6 November 6, 2020 15:38
interpret several UDF eddiegolpesar FLUENT 0 November 1, 2010 08:23
interpret or compile an UDF (emergency) Lotfi FLUENT 1 August 26, 2007 12:58
Not able to interpret UDF Prasad FLUENT 1 August 15, 2007 08:44
UDF Interpret - Syntax Error Leonard FLUENT 1 October 22, 2005 10:06


All times are GMT -4. The time now is 05:58.