Hi,
You can use DEFINE_UDS_UNSTEADY to customize unsteady terms in your user-defined scalar (UDS) transport equations and You can use DEFINE_UDS_FLUX to customize how the advective flux term is computed in your user-defined scalar (UDS) transport equations. Note that this macro is for fluid cell zones only, as it cannot be used to calculate convective flux in a solid zone.
You can check customization manual for more details: 2.8. User-Defined Scalar (UDS) Transport Equation DEFINE Macros (ansys.com)
Thank you.