|
[Sponsors] |
January 12, 2018, 07:47 |
Access lagrangian data from functionObject
|
#1 |
Senior Member
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10 |
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; } ); } } Is there a way to solve this issue? Any hint will be appreciated Asmaa |
|
February 8, 2018, 02:14 |
mean particle data
|
#2 |
New Member
Join Date: Jun 2017
Posts: 12
Rep Power: 8 |
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 |
|
February 8, 2018, 04:55 |
|
#3 | |
Senior Member
Asmaa
Join Date: Mar 2016
Posts: 102
Rep Power: 10 |
Quote:
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 |
||
|
|
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 |