|
[Sponsors] |
Post-processing: The forces on lagrangian particles in mutiphase solvers like DPMFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 21, 2020, 05:42 |
Post-processing: The forces on lagrangian particles in mutiphase solvers like DPMFoam
|
#1 |
Senior Member
Join Date: Jun 2020
Posts: 100
Rep Power: 5 |
Hello All,
I am simulating the particle-laden BFS using DPMFoam. The flow conditions are turbulent. I am using RANS simulation with komegaSST model to solve the flow field. I want to extract the forces acting on each particles during each or several times steps. Any idea, how can I get it. I saw function objects, which is generally defined in controlDict to calculate the forces. But It can only be applied of continuous field (volumetric field) not on lagrangian fields. Best Regards Atul Jaiswal |
|
October 1, 2020, 05:43 |
|
#2 |
Member
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 93
Rep Power: 15 |
Dear Atul,
afaik the values of single specific forces are only available within the specific force calculation and more or less simply summed up in the particle class. Thus, when I wanted to have access to these values, I wrote some code inside each force to output the force value at the desired time steps in a single output file for each force. There is a concept similar to functionObjects for lagrangian stuff, namely cloudFunctionObjects, but I think that they can't access single force values. Best, oswald |
|
October 1, 2020, 11:43 |
|
#3 |
Senior Member
Join Date: Jun 2020
Posts: 100
Rep Power: 5 |
Dear Oswal,
Thanks again for you answer to my threads. It means that you modified the source codes of each forces and wrote there to give output of the values. For example, if I want to get output of each time step for gravity force, you modified the library intermediate/submodels/kinematic/particleForces/Drag and recompiled the solver e.g. DPMFoam with modified drag force source code? Yes, cloudFuctionObject seems not to be right tool to get individual forces acting on particles. Thanks and Best Regards Atul Jaiswal |
|
October 2, 2020, 04:29 |
|
#4 |
Member
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 93
Rep Power: 15 |
Exactly, I modified the source files for each single force I wanted to output. There might be more elegant solutions, but it was sufficient for me. I don't have access to the code I wrote, but if you are interested I can try to find it.
I don't think that it is possible to use a cloudFunctionObject for this at the moment without changing other things inside the forces' source code. |
|
October 2, 2020, 06:29 |
|
#5 |
Senior Member
Join Date: Jun 2020
Posts: 100
Rep Power: 5 |
Dear Oswald,
It would be nice if you can find the codes, I would be great help for me. I can understand that you are busy, please take your time and send me when you get it. Best Regards Atul |
|
November 17, 2022, 09:55 |
|
#6 |
Member
Shah Akib Sarwar
Join Date: Mar 2021
Posts: 41
Rep Power: 5 |
Can any one of you help me with how to output drag forces on particles at each time step?
|
|
November 18, 2022, 03:30 |
|
#7 |
Member
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 93
Rep Power: 15 |
I think you need to implement some output functionality in either the source code of the actual force(s) you are interested in or in the code of "particleForceList.C", inside the loop over all the forces.
|
|
November 18, 2022, 09:25 |
|
#8 |
Member
Shah Akib Sarwar
Join Date: Mar 2021
Posts: 41
Rep Power: 5 |
Thank you for your reply. Could you provide any guidance/example on how to do these for SphereDrag?
|
|
November 21, 2022, 02:36 |
|
#9 |
Member
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 93
Rep Power: 15 |
The easiest way in my opinion (not the best, though) would be to just add some additional output in SphereDrag.C. There is a function called "calcCoupled". Here you could change
Code:
return forceSuSp(Zero, mass*0.75*muc*CdRe(Re)/(p.rho()*sqr(p.d()))); Code:
forceSuSp drag = (Zero, mass*0.75*muc*CdRe(Re)/(p.rho()*sqr(p.d()))); Info<< "PID: " << p.origId() << " | Current force: " << drag.second() << endl; return drag; |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Implementing Partial slip condition for solid particles in Lagrangian solvers | surajkvs | OpenFOAM Pre-Processing | 0 | April 13, 2018 03:08 |
Internal heat production within lagrangian particle (DPMFoam) | dussa | OpenFOAM Programming & Development | 0 | March 12, 2018 13:41 |
Exporting particles of lagrangian solvers to Tecplot | maysmech | OpenFOAM Post-Processing | 1 | May 3, 2015 11:08 |
post processing for KIVA | dirga | Main CFD Forum | 5 | April 23, 2009 10:58 |
Post Processing in FEM | Abhijit Tilak | Main CFD Forum | 0 | April 26, 2004 11:59 |