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/)
-   -   CloudInfo.C (https://www.cfd-online.com/Forums/openfoam-post-processing/191922-cloudinfo-c.html)

pappo1890 August 24, 2017 09:18

CloudInfo.C
 
Hi Foamers,

I am running a simulation using reactingParcelFoam and I have several concerns regarding the lagrangian phase post-processing. I am able to export, using paraview, the cloudProperties (hence diamter, velocity) at the saved timeStep. Anyway I need this information at every single timeStep and my idea is to do something similar as probes in controlDict using cloudInfo.

Code:

In controlDict this should be defined as
functions
{
    cloudInfo1
    {
        type            cloudInfo;
        functionObjectLibs ("libcloudFunctionObjects.so");
        enabled        true;
        outputControl  timeStep;
        outputInterval  1;

        clouds          (reactingCloud1);
}
    }

with this I save at every timeStep the information defined in the cloudInfo.C:

Code:

void Foam::functionObjects::cloudInfo::writeFileHeader(const label i)
{
    writeHeader(file(), "Cloud information");
    writeCommented(file(), "Time");
    writeTabbed(file(), "nParcels");
    writeTabbed(file(), "mass");
    file() << endl;
}

For instance, if I would like to add the diamter and velocity. How should I modify this file?


Thanks in advance for your help,

Alessandro


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