CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   enstrophy (http://www.cfd-online.com/Forums/openfoam-post-processing/119300-enstrophy.html)

immortality June 13, 2013 15:41

enstrophy
 
Hi
whats the definition of enstrophy?
It gives this error when I run it:
Code:

Time = 0.000126
    Reading U
    Calculating enstrophy
--> FOAM Warning :
--> FOAM FATAL IO ERROR:
keyword curl(U) is undefined in dictionary "/home/ehsan/Desktop/Central/WR_Main_Central/system/fvSchemes.gradSchemes"

file: /home/ehsan/Desktop/Central/WR_Main_Central/system/fvSchemes.gradSchemes from line 36 to line 49.

    From function dictionary::lookupEntry(const word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 402.

Time = 0.000127
    Reading U
    Calculating enstrophy
--> FOAM Warning :
--> FOAM FATAL IO ERROR:
keyword curl(U) is undefined in dictionary "/home/ehsan/Desktop/Central/WR_Main_Central/system/fvSchemes.gradSchemes"

file: /home/ehsan/Desktop/Central/WR_Main_Central/system/fvSchemes.gradSchemes from line 36 to line 49.

    From function dictionary::lookupEntry(const word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 402.

Time = 0.000128
    Reading U
    Calculating enstrophy
--> FOAM Warning :
--> FOAM FATAL IO ERROR:
keyword curl(U) is undefined in dictionary "/home/ehsan/Desktop/Central/WR_Main_Central/system/fvSchemes.gradSchemes"

file: /home/ehsan/Desktop/Central/WR_Main_Central/system/fvSchemes.gradSchemes from line 36 to line 49.

    From function dictionary::lookupEntry(const word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 402.

Time = 0.000129
    Reading U
    Calculating enstrophy
--> FOAM Warning :
--> FOAM FATAL IO ERROR:
keyword curl(U) is undefined in dictionary "/home/ehsan/Desktop/Central/WR_Main_Central/system/fvSchemes.gradSchemes"

file: /home/ehsan/Desktop/Central/WR_Main_Central/system/fvSchemes.gradSchemes from line 36 to line 49.

    From function dictionary::lookupEntry(const word&, bool, bool) const
    in file db/dictionary/dictionary.C at line 402.


wyldckat June 15, 2013 17:21

  1. Run:
    Code:

    find $FOAM_APP -name "enstrophy.C"
  2. Open the file indicated by the previous command. In the description section it says:
    Code:

    Description
        Calculates and writes the enstrophy of the velocity field U.

  3. OK, not much information there. Looking at the the calculation made:
    Code:

    0.5*magSqr(fvc::curl(U))
    "curl" is explained in the OpenFOAM's Programmer Guide, available at "$WM_PROJECT_DIR/doc/Guides*":
    Code:

    echo $WM_PROJECT_DIR/doc/Guides*
  4. For "enstrophy" in general, check Wikipedia: http://en.wikipedia.org/wiki/Enstrophy


All times are GMT -4. The time now is 07:17.