CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

CloudInfo.C

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 24, 2017, 10:18
Unhappy CloudInfo.C
  #1
New Member
 
Alessandro
Join Date: Jul 2016
Posts: 11
Rep Power: 10
pappo1890 is on a distinguished road
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
pappo1890 is offline   Reply With Quote

Old   August 16, 2024, 03:40
Default
  #2
Member
 
Rajat soni
Join Date: Oct 2016
Posts: 32
Rep Power: 10
rsoni451 is on a distinguished road
Hi Alessandro,

did you find a solution to it?

Best regards
Rajat
rsoni451 is offline   Reply With Quote

Reply

Tags
cloudinfo1, lagrangian particles, openfoam 2.4.0, post-processing


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



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