Hi guys,
I want to simulate triplecomponent flow, and now i’m using the showcases/multiComponent2d(c++). I have some questions hope anyone can help me make it clear. THANKS.

should i add another lattice like “middleLattice” besides the “heavyLattice” and “lightLattice” to represent triple components? or should I just add another rho in the class TwoLayerInitializer. like this:
T rho1 = (T)1; T rho2 = (T)2; T rho = (T)0; if ( (topLayer && (iY>0.2*ny) )  (!topLayer && (iY <= 0.1*ny) ) ) { rho = rho2; } else if ( (topLayer && (iY <= 0.1*ny) )  (!topLayer && (iY > 0.2*ny) ) ) { rho = almostNoFluid; } else { rho = rho1; }

Does the variable “omega” means the viscosity of fluid? 'cause I found the two components have the same omega(omega=1) in the case given.

How do you differ several different kinds of fluid? using rho and omega?

Another question about the gravity. Is the gravity given to every cell? In my opionion, each cell has a external force—gravity. But why there is a comment “// The setup is: The upper half is initially filled with fluid 1 + random noise, and the lower half with fluid 2. Only fluid 1 experiences a forces, directed downwards.” only the upper half experiences the force?
I have been confused by these problems for weeks… THANKS FOR YOU HELP IN ADVANCED!