Please download the word document, which contains the details on setting up the Python Calculator filter to calc lambda2, and use the advanced option of ‘Gradient’ filter to calculate vorticity, Q-Criterion.
This code is not tested, some user has already report error, please use it as a starting point in your application.
eigenvalue(strain(Velocity)**2 + (Gradients – strain(Velocity)**)2)
it should be
eigenvalue(strain(Velocity)**2 + (Gradients – strain(Velocity))**2)BSD documentation licensed Free for non-commercial usage only
Author: Qingfeng XIA
copyright (C) 2011-2017
please keep the original link in your reference.