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

Post-processing: The forces on lagrangian particles in mutiphase solvers like DPMFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By atul1018
  • 1 Post By oswald

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2020, 05:42
Default Post-processing: The forces on lagrangian particles in mutiphase solvers like DPMFoam
  #1
Senior Member
 
Join Date: Jun 2020
Posts: 100
Rep Power: 5
atul1018 is on a distinguished road
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
cristobal likes this.
atul1018 is offline   Reply With Quote

Old   October 1, 2020, 05:43
Default
  #2
Member
 
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 93
Rep Power: 15
oswald is on a distinguished road
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
oswald is offline   Reply With Quote

Old   October 1, 2020, 11:43
Default
  #3
Senior Member
 
Join Date: Jun 2020
Posts: 100
Rep Power: 5
atul1018 is on a distinguished road
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
atul1018 is offline   Reply With Quote

Old   October 2, 2020, 04:29
Default
  #4
Member
 
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 93
Rep Power: 15
oswald is on a distinguished road
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.
oswald is offline   Reply With Quote

Old   October 2, 2020, 06:29
Default
  #5
Senior Member
 
Join Date: Jun 2020
Posts: 100
Rep Power: 5
atul1018 is on a distinguished road
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
atul1018 is offline   Reply With Quote

Old   November 17, 2022, 09:55
Default
  #6
Member
 
Shah Akib Sarwar
Join Date: Mar 2021
Posts: 41
Rep Power: 5
Shah Akib Sarwar is on a distinguished road
Can any one of you help me with how to output drag forces on particles at each time step?
Shah Akib Sarwar is offline   Reply With Quote

Old   November 18, 2022, 03:30
Default
  #7
Member
 
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 93
Rep Power: 15
oswald is on a distinguished road
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.
oswald is offline   Reply With Quote

Old   November 18, 2022, 09:25
Default
  #8
Member
 
Shah Akib Sarwar
Join Date: Mar 2021
Posts: 41
Rep Power: 5
Shah Akib Sarwar is on a distinguished road
Thank you for your reply. Could you provide any guidance/example on how to do these for SphereDrag?
Shah Akib Sarwar is offline   Reply With Quote

Old   November 21, 2022, 02:36
Default
  #9
Member
 
Join Date: Sep 2010
Location: Leipzig, Germany
Posts: 93
Rep Power: 15
oswald is on a distinguished road
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())));
to something like

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;
Shah Akib Sarwar likes this.
oswald 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
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


All times are GMT -4. The time now is 00:11.