CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   using DEFINE_ADJUST (https://www.cfd-online.com/Forums/fluent-udf/80291-using-define_adjust.html)

MASOUD September 21, 2010 23:12

using DEFINE_ADJUST
 
Hi all;

I wanna define a parameter to be increased 0.001 in each iteration:

n+=0.001

I thought the best way could be DEFINE_ADJUST macro.

I am wondering if the below code is correct:


DEFINE_ADJUST(SUR,d)
{
u+=0.001;
}

Many thanks


All times are GMT -4. The time now is 17:04.