Patching a Custom Field Function to Initialize a Flow Field

How to patch a custom field function to initialize a flow field?

The detailed steps for patching a custom field function for initializing a flow field has been shown in the video given below.