Possible bug in solve_species_eq.f for usr_sources

Hello,

I think I have found a small bug in solve_species_eq.f for the use of usr_sources.f. The commented lines of usr_src_mod.f indicate the number of the equation (to be set to .TRUE.) to apply the corresponding sources:

However, when checking solve_species_eq.f, the call_usr_sources the call is related to equation 8 rather than 7, which is the same than in solve_granular_energy.f. Am I right? I was going crazy activating equation 7 aiming for a species source and nothing was happening :sweat_smile:

Thank you,
Eduardo

I think you are correct. You can copy solve_species_eq.f to the project directory, edit it, and build a custom solver. Let us know if this works. We will fix this code in the next MFiX release.

Yes, I modified the code and it works. Thank you for your answer!

1 Like