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

Access lagrangian data from functionObject

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 1 Post By ms6918
  • 3 Post By foamiste

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2018, 07:47
Question Access lagrangian data from functionObject
  #1
Senior Member
 
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10
foamiste is on a distinguished road
Hello,

I am doing the post processing of lagrangian simulation, I want to apply available functionObjects in Openfoam which is fieldAverage to the diameter of my cloud sprayCloud (code below).

Code:
 functions
{
    fieldAverage1
    {
        type            fieldAverage;
        libs            ("libfieldFunctionObjects.so" "liblagrangianFunctionObjects.so");
        writeControl    writeTime;
        log             yes;
        writeFields     no;
        clouds          (sprayCloud);
        fields
        (
            d
            {
                mean            on;
                prime2Mean      on;
                base            time;
            }
        );
    }
}
I am not getting any errors but also no results!

Is there a way to solve this issue?

Any hint will be appreciated

Asmaa
foamiste is offline   Reply With Quote

Old   February 8, 2018, 02:14
Default mean particle data
  #2
New Member
 
Join Date: Jun 2017
Posts: 12
Rep Power: 8
ms6918 is on a distinguished road
Hello

I have been facing the same problem. Did you find a solution? We can do the averaging by creating a script and then do post-processing but is there anyway way we can do it by making some changes in controlDict like we do for eukerian particles.

Any help is highly appreciated.

Thank You

Regards
foamiste likes this.
ms6918 is offline   Reply With Quote

Old   February 8, 2018, 04:55
Default
  #3
Senior Member
 
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10
foamiste is on a distinguished road
Quote:
Originally Posted by ms6918 View Post
Hello

I have been facing the same problem. Did you find a solution? We can do the averaging by creating a script and then do post-processing but is there anyway way we can do it by making some changes in controlDict like we do for eukerian particles.

Any help is highly appreciated.

Thank You

Regards
Hello,

AFAK it's impossible to apply the available functions objects like max, min, mean... directly to the lagrangian cloud throught controlDict.The only ones that you can use in the controlDict are included in the folder src/functionObjects/lagrangian (ex.: cloudInfo, dsmcFields, icoUncoupledKinematicCloud).
Other available functions objects specific for te cloud included in folder src/lagrangian/intermediatesubmodels/cloudFunctionObjects can be used. They must be called in sprayCloudProperties (reactingCloudProperties... depending on which solver you are using) in the last dictionary called cloudFunctions. I inserted below an example of getting data from a patch.

cloudFunctions
{

patchPost1
{
type patchPostProcessing;
enabled true;
writeControl writeTime;
log yes;
clouds (sprayCloud);
maxStoredParcels 100000;
patches (name_of_your_patch);

}

}


I wish that I was clear in my explanation, feel free to ask again.

Asmaa
foamiste is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sampling lagrangian data farbfilm OpenFOAM Post-Processing 37 June 26, 2020 10:09
UDF value to large for defined data type Anna73 Fluent UDF and Scheme Programming 9 September 30, 2018 22:18
Lagrangian Data extract from sprayFoam e.g. with swak4Foam mokard OpenFOAM Post-Processing 2 January 16, 2018 03:44
time averaging lagrangian data from dsmcFoam hester OpenFOAM Post-Processing 2 June 7, 2017 07:20
Transformin Lagrangian data to Eulerian ones JamR OpenFOAM Programming & Development 0 March 27, 2013 06:39


All times are GMT -4. The time now is 20:45.