You can limit foam emission to the volume of a polygon object using a Foam Mask. This gives you more control over which regions of liquid generate foam particles. For example, add a masking object around a boat and its wake so that foam only generates in this area of the liquid.
Use the Enable options in the bifrostFoamMaskProp node attributes to toggle the mask's effect and evaluation on and off. In addition, you can use the Conversion options to control how the mask volume is voxelized. See Bifrost Foam Mask attributes.
To soften the emission boundaries around the masking object, adjust the Mask Falloff Distance in the Behavior group of the bifrostFoamProperties node attributes. See Bifrost Foam attributes.