Simply the best answers.

Simulate multiple mixtures by thread id

In multiple species problems, there can only be ONE mixture. This is a problem in multiple channel flows with different fluid types, especially in cases where one of the fluids is a multiple species mixture and the other is a pure fluid.

/* UDF that simulates multiple mixtures.

by William Wangard, Ph.D. Fluent, Inc.

To use,

* Set number of liquid zones which is hardwired into the UDF (The other zones are gaseous) * Hardwire in thread IDS of liquid zones into the UDF.... * Compile UDF * hook "density" UDF * hook "init" UDF * For robustness, FIX mass fraction of liquid to 1 in liquid cell zones. FIX mass fraction of liquid to ZERO in gas cell zones.

Currently, the "chemical formula" of the liquid must be called "water." You can change this to fit your needs. The density of the liquid is defined as 1000.0 kg/m3

*/

#include "udf.h"/* zone_type is an int array that stores the thread-type for each thread-id. * */