fluxing function

generate fluxes