Using Parameters in UDF

How to use a parameter in the UDF?

A mutable input parameter can be used in the UDF. The parameter study of complex conditions using the UDF is also a possible execution. The UDF can access the input parameter by using the following macro:

Get_Input_Parameter(“Parameter name”)

Example:
#include "udf.h"
DEFINE_REPORT_DEFINITION_FN(volume_flow_rate_inlet)
{
real inlet_velocity = Get_Input_Parameter("vel_in");
real inlet_area = 0.015607214;
real volumeFlow = inlet_velocity*inlet_area;
return volumeFlow;
}

It should be noted that - if you want to change the variables in the UDF source without recompiling, you can use the parameters in the UDF. However, it cannot be changed in the Workbench.