Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #pragma once 11 : 12 : #include "AuxKernel.h" 13 : 14 : // Forward Declarations 15 : 16 : /** 17 : * Computes the Q criterion as defined by the paper 18 : * 19 : * Jeong, Jinhee & Hussain, Fazle. (1995). 20 : * Hussain, F.: On the identification of a vortex. 21 : * JFM 285, 69-94. Journal of Fluid Mechanics. 285. 22 : * 69 - 94. 10.1017/S0022112095000462. 23 : * 24 : * This scalar quantity aids in the identification of vortices. 25 : * It quantifies the local balance between shear strain rate 26 : * and vorticity magnitude. It vanishes at the wall. Taking 27 : * contours of this quantity in visualization software will 28 : * show the vortices in the flow in a rather pronounced manner. 29 : */ 30 : class INSQCriterionAux : public AuxKernel 31 : { 32 : public: 33 : static InputParameters validParams(); 34 : 35 : INSQCriterionAux(const InputParameters & parameters); 36 : 37 0 : virtual ~INSQCriterionAux() {} 38 : 39 : protected: 40 : virtual Real computeValue() override; 41 : 42 : // Velocity gradients 43 : const VectorVariableGradient & _grad_velocity; 44 : };