I am solving a scalar equation for one variable. The source term of which is having gradient term like .
'u' is obtained through algebraic equation which is again the function of x.
I need to discretize the equation through UDF. How can i do this?