Skip to content

Re: Smagorinsky/Turbulence – Modification Code

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 Smagorinsky/Turbulence – Modification Code Re: Smagorinsky/Turbulence – Modification Code

#2729
Marc
Participant

Hey Pedro,
if you want to use a Dynamics pointer you have to adapt the arguments in the function prepareLattice.
The easiest way to run the model is to change the line:
BGKdynamics<T, DESCRIPTOR> bulkDynamics( converter.getOmega(), instances::getBulkMomenta<T, DESCRIPTOR>() );
to
SmagorinskyBGKdynamics<T, DESCRIPTOR>bulkDynamics( converter.getOmega(), instances::getBulkMomenta<T, DESCRIPTOR>(), 0.15);
Good luck with your turbulence Simulation!
Best,
Marc