Initial condition using concentration gradient

,

Hi,

I would like to know how can i set a concentration distribution as initial condition?

Thank you!

I think you could approximate this by using multiple IC regions with different concentrations. Of course that’s a bit rough and will be tedious to set up, especially with a large number of regions.

Otherwise you’d have to change the MFiX code to make the IC_X_S an array instead of a scalar, and devise some way to initialize it the way you want. This would be a non-trivial amount of code to change, but it should be possible.