CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   rms value with transientSimpleOodles (http://www.cfd-online.com/Forums/openfoam/72932-rms-value-transientsimpleoodles.html)

basneb February 22, 2010 09:29

rms value with transientSimpleOodles
 
Hello everybody,

I'm carrying out some LES calculations with the solver transientSimpleOodles on a SUV-like shaped geometry in a windtunnel and I want to evaluate the rms values of pressure at the rearview mirrors. I implemented the prime2Mean function in my controlDict and, at least, I do not get any error-messages and a file named pPrime2Mean as an output. Thus I conclude that the function works in principle. However, if I check the results in EnSight, I do not get (in my opinion) reasonable results for pPrime2Mean, whereas p and pMean look normal and I get reasonable values for them (dynamic pressure).
So, now I'm wondering, if my implementation of the prime2Mean function is wrong or so. In the following I attached the controlDict with my implementation.

Best regards,

Bastian

Code:


/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  1.5                                  |
|  \\  /    A nd          | Web:      http://www.OpenFOAM.org              |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      dictionary;
    object      controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
application transientSimpleOodles;
startFrom      startTime;
startTime      0.1;
stopAt          endTime;
endTime        0.42;
deltaT          2e-05;
writeControl    timeStep;
writeInterval  5000;
purgeWrite      0;
writeFormat    ascii;
writePrecision  6;
writeCompression uncompressed;
timeFormat      general;
timePrecision  6;
runTimeModifiable yes;
functions
(
    probes1
    {
        // Type of functionObject
        type probes;
        // Where to load it from (if not already in solver)
        functionObjectLibs ("libsampling.so");
        // Locations to be probed. runTime modifiable!
        probeLocations
        (
 (2.726753        -0.801799      1.788444)
 (2.744515        -0.778461      1.862935)
 (2.755995        -0.761528      1.908716)
 (2.796776        -0.806112      1.791699)
 (2.813934        -0.781613      1.866063)
 (2.824675        -0.764889      1.911166)
 (2.999108        -0.814479      1.802093)
 (3.015712        -0.790372      1.876570)
        );
        // Fields to be probed. runTime modifiable!
        fields
        (
            p
        );
    }
    fieldAverage1
    {
        // Type of functionObject
        type fieldAverage;
        // Where to load it from (if not already in solver)
        functionObjectLibs ("libfieldAverage.so");
        // Fields to be  averaged - runTime modifiable
        fields
        (
            U
            {
                mean            on;
                prime2Mean      on;
                base            time;
            }
            p
            {
                mean            on;
                prime2Mean      on;
                base            time;
            }
        );
    }
);
 
// ************************************************************************* //


basneb February 23, 2010 06:14

Hi everybody,

something I forgot: Is pPrime2Mean actually the RMS value squared or is it something else? I was checking the source code for it, but I am not sure that it is the same.

Best regards,

Bastian.

jiujiumin July 13, 2013 09:22

i want to what the prime2mean means ?
 
i want to what the prime2mean means ?
thanks


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