CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Lambda2 in OpenFOAM utilities (https://www.cfd-online.com/Forums/openfoam-post-processing/117005-lambda2-openfoam-utilities.html)

cheng1988sjtu April 30, 2013 09:22

Lambda2 in OpenFOAM utilities
 
Hi Foamers,

I've got confused by the output of the utility "Lambda2" in openFOAM,

When I typed the command Lambda2 in OpenFOAM, the output information is like the following:

reading U 20
writing -Lambda2

My question is the values written is Lambda2 or - lambda2? Thanks very much!!

Charlie

haakon April 30, 2013 10:08

Let's have a look in applications/utilities/postProcessing/velocityField/Lambda2/Lambda2.C:
Code:

        volScalarField Lambda2
        (
            IOobject
            (
                "Lambda2",
                runTime.timeName(),
                mesh,
                IOobject::NO_READ,
                IOobject::NO_WRITE
            ),
            -eigenValues(SSplusWW)().component(vector::Y)
        );

To me it appears as if it writes -lambda2.

cheng1988sjtu April 30, 2013 10:57

Hi Haakon,

Thanks a lot, I think you are right, if we compare the Q with Lambda2, we could also confirm that the command Lambda2 is writing -Lambda2, Thanks!

Best

Charlie


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