CFD Online Discussion Forums

CFD Online Discussion Forums (
-   Fluent UDF and Scheme Programming (
-   -   UDF lookup table or similar... (

bobo August 12, 2009 11:15

UDF lookup table or similar...

i have points (x,y) of temperature measured along a surface. i want to use these points as a wall temperatures. i have a UDF where i can assign temperatures to a face via functions, but i want to input the real temperature points.

can anyone help me please?


DEFINE_PROFILE(temperature_profile, thread, position)
  real r[ND_ND];        /* this will hold the position vector */
  real x;
  real y;
  face_t f;

  begin_f_loop(f, thread)
      x = r[0];
      F_PROFILE(f, thread, position) = some temperature function;
  end_f_loop(f, thread)

All times are GMT -4. The time now is 12:15.