0
getting time-average flow fields within certain time interval

Hello everyone, I have simulated flow past a cylinder and now i want to get time average pressure and skin friction co-efficient in the entire flow domain for a certain time interval. What should i do? any suggestion is highly appreciated... Thanks and regards Subhankar


OpenFOAM 09-04-17, 12:18 p.m. SUBHANKAR
0
Hi Subhankar, you can use openfoam utility to get the wall shear stress by typing "solvername" -postProcess -func wallShearStress -latestTime command in the terminal. E.g. simpleFoam -postProcess -func wallShearStress -latestTime or newTimes which will create the wallShearStress field in paraFoam, which can be used to calculate Cf.
17-09-17, 7:02 p.m. sathish
Or else you can add the following lines in the bottom of the controlDict file.
functions
{
    libs ("libfieldFunctionObjects.so");

    Ma
    {
        type            MachNo;
        executeControl  writeTime;
        writeControl    writeTime;
    }
   
    libs            ("libfieldFunctionObjects.so");
   
    tau
    {   
        type            wallShearStress;
        executeControl  writeTime;
        writeControl    writeTime;
    }
   
 
}


The above lines will create the Mach number and Wall shear Stress for each time step.



17-09-17, 7:14 p.m. sathish

Login to add comment


Log-in to answer to this question.