Thank you for your reply.
Its not a simple expression. I have already wrote the macro and it is running. Due to multiphase physics, the define profile udf is running 3 times/timestep.
In order to correct this, I have searched for info in the udf manual and found the below statement "In multiphase cases a DEFINE_PROFILE UDF may be called more than once (particularly if the profile is used in a mixture domain thread). If this needs to be avoided, then add the prefix MP_ to the UDF name. The function will then be called only once even if it is used for more than one profile."
If I add MP_ in the udf name nothing this changing. So please suggest me, where I supposed to add MP_ in the udf.