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/)
-   -   Question on the sequence of grad(U) components (https://www.cfd-online.com/Forums/openfoam-post-processing/130680-question-sequence-grad-u-components.html)

ripperjack March 2, 2014 17:34

Question on the sequence of grad(U) components
 
Hi guys,

I have a question on the sequence of the components of grad(U). I defined an new variable "gradU" in my solver, and I also monitored the time-series of gradU, see below
in solver:
Code:

    volTensorField gradU
    (
        IOobject
        (
            "gradU",
            runTime.timeName(),
            mesh,
            IOobject::NO_READ,
            IOobject::NO_WRITE
        ),
        fvc::grad(U)
    );

in controlDict:
Code:

    outputForAnimation
    {
        type            writeRegisteredObject;
        functionObjectLibs ("libIOFunctionObjects.so");
        outputControl  timeStep;
        outputInterval  1;
        objectNames
        (
          gradU
        );
    }

, gradU is a 9 components tensor, and I assumed that gradU should arrange in this sequence: dudx, dudy, dudz, dvdx, dvdy, dvdz, dwdx, dwdy, dwdz.

However, here is the question. When I check the output gradU components, the sequence is definitely not what was shown above. I have to identify which component is dudy or dudz, etc. for my post-processing, but I was really confused. Could you guys tell me what is the components of gradU for my case? Many thanks!

Regards,

sibo September 18, 2018 13:19

Hi Jack,

I'm wondering did you find the solution? I am also facing this problem!

Thanks a lot!


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