Skip to content

Reply To: Implementing Surface-directed spinodal decomposition

OpenLB – Open Source Lattice Boltzmann Code Forums on OpenLB General Topics Implementing Surface-directed spinodal decomposition Reply To: Implementing Surface-directed spinodal decomposition

#7184
Adrian
Keymaster

On the dynamics: Dynamics don’t store data, they only model how the momenta are computed and the collision is performed.

You can set the population iPop of a “ghost” neighbor cell (commonly being assigned NoDynamics, meaning they don’t perform any collision) in direction c to value using e.g. cell.neighbor(c)[iPop] = value;. This will happen after the streaming step for normal post processors. If you need to execute this at a different time this is also straight forward to do as post processors are assigned to and executed at various stages in OpenLB.