CFD Online Logo CFD Online URL
Home > Forums > FLUENT


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

LinkBack Thread Tools Display Modes
Old   May 23, 2006, 05:33
Posts: n/a
Hello everyone!

I have again (and again) a question about UDF! This time, I try to modify viscosity in a region of my domain. When I interpret my function and initialise my pb, I can see (with display contour/molecular viscosity) that my initial viscosity is set correctly. But when i launch iterations (I'm in unsteady), everything goes wrong! I notice that my function is called twice per iteration! Can somebody tell me why?

P.S. In my function, i put conditions in that way the function will be called only on the first iteration of every time step. But as DEFINE_PROPERTY is called at every iteration, when we are at an other iteration than the first of a time step, there is no return statement in my function (in fact, the return is inside an "if" condition).

  Reply With Quote


Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF for Turbulent Viscosity Lourival Fluent UDF and Scheme Programming 3 October 13, 2012 03:09
writin udf for non-newtonian viscosity zolfaghari FLUENT 0 September 19, 2007 05:32
viscosity in UDF! denhan FLUENT 0 April 6, 2007 01:12
subgrid turbulent viscosity for UDF in LES David TAIEB FLUENT 0 April 2, 2007 08:27
Help - UDF for solid shear viscosity nbh2801 FLUENT 0 April 21, 2006 07:49

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