Reply To: Different Diffusion Coefficients in one Simulation
Due to recent bot attacks we have changed the sign-up process. If you want to participate in our forum, first register on this website and then send a message via our contact form.
› Forums › 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
