I’m using smagorinskyBGKdynamics, as the kinematic viscosity of this model is consisted of the physical kinematic viscosity and the eddy viscosity computed by smagorinsky constant and strain rate, I want to export the total viscosity to VTK files.
I tried computeKinematicViscosity(lattice), but it seems that it exported the physical kinematic viscosity which is a constant.
I also tried computeOmega(lattice), and it also seemed export the omega determined by physical kinematic viscosity excluding the eddy viscosity.
Is there any method that I can export the total viscosity or the eddy viscosity of smagorinsky.
I think you will need to create a processing functional. There is no built in function to do that (I will add it to my to-do list i guess). For a quick hack you can replace the line in the “process” method of the class BoxKinematicViscosityFunctional3D :
T omega = lattice.get(iX,iY,iZ).getDynamics().getOmega();
by
T omega = lattice.get(iX,iY,iZ).getDynamicParameter(dynamicParams::dynamicOmega, lattice.get(iX,iY,iZ));
Mr Orestis,
Thank you for your patient.
I modified the omega as you told. But the Compiler made error like below
[code=“xml”]
/home1/Application/Palabos/palabos-v2.0r0/src/dataProcessors/dataAnalysisFunctional3D.hh:2555:107: error: ‘class plb::Cell<double, plb::descriptors::D3Q19Descriptor>’ has no member named ‘getDynamicParameter’
T omega = lattice.get(iX,iY,iZ).getDynamicParameter(dynamicParams::dynamicOmega, lattice.get(iX,iY,iZ));
I'm using d3q19 scheme, seems did not work.
best wishes,
steed188
Is it right to use integrateProcessingFunctional here?
By the way, according to your modified code, the new nu that calculated is the total nu, including both the molecule and eddy viscosity right?
best wishes,
steed188