

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


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.
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