Rob
Forum Moderator

Simplify the UDF, so you only set one mass fraction within the DEFINE_PROFILE.  C_YI is the mass fraction of a species in a cell, not what you want in the cell - check the definition in the manual (hint, search for C_YI).