Reply To: Different Diffusion Coefficients in one Simulation
OpenLB – Open Source Lattice Boltzmann Code › Forums › on OpenLB › General Topics › Different Diffusion Coefficients in one Simulation › Reply To: Different Diffusion Coefficients in one Simulation
December 13, 2024 at 2:51 pm
#9611
Adrian
Keymaster
A basic introduction into the dynamics system is available in section 2.3 of the user guide.
What you will want to do is to wrap your collision operator in the modifier:
using LocalOmegaBGK = dynamics::Tuple<
T, DESCRIPTOR,
momenta::BulkTuple,
equilibria::SecondOrder,
collision::ParameterFromCell<descriptors::OMEGA, collision::BGK>
>;
Don’t forget to assign a value to the descriptors::OMEGA
field using e.g.
sLattice.defineField<descriptors::OMEGA>(omegaF); // some functor providing the values