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

Questions about lagrangian postprocessing

Register Blogs Community New Posts Updated Threads Search

Like Tree7Likes
  • 4 Post By kenyi89
  • 1 Post By kenyi89
  • 1 Post By kenyi89
  • 1 Post By kenyi89

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 13, 2014, 04:42
Lightbulb Questions about lagrangian postprocessing
  #1
New Member
 
Charlie
Join Date: May 2014
Posts: 9
Rep Power: 11
mechem is on a distinguished road
Hi all,
There are two output files in each time folder when running MPPICFoam tutorial:
HTML Code:
kinematicCloud:UCoeff
HTML Code:
kinematicCloud:UTrans
Dimension of scalar "UCoeff" and vector "UTrans" are kg and kg.m/s, respectively.
I think they should be relevant to momentum transfer from solid phase to gas phase for each cell. As I need to plot over line the magnitude of particle velocity or the averaged mass flux of particles in a horizontal row of cells in paraview, UTrans seems to be a good parameter to show that.
I have two questions:
1- What are and how are calculated "UCoeff" and "UTrans"?
2- Why are kinematicCloud:UCoeff and kinematicCloud:UTrans files in time folders not visible in paraview besude U.air, alph.air, p, ...?
Thanks,
mechem is offline   Reply With Quote

Old   April 26, 2015, 22:23
Default Dame doubt
  #2
New Member
 
Jesus Ramirez
Join Date: Aug 2014
Location: Colombia
Posts: 13
Rep Power: 11
jarpve is on a distinguished road
Hello, have you already figure out what are Utrans and Ucoeff? And how are they calculated?. Thanks
jarpve is offline   Reply With Quote

Old   May 20, 2015, 10:17
Default Answers
  #3
New Member
 
Jeroen Hofman
Join Date: Feb 2015
Location: The Netherlands
Posts: 15
Rep Power: 16
kenyi89 will become famous soon enough
Hi,

To answer your questions:

Utrans is the transferred momentum (the interaction term) between the fluid phase and the particle phase. The calculation of this parameter is shown in kinematicParcel.c and it basically is a field where each cell contains the sum of the drag forces and the pressure gradient force acting on all the particles in the cell. The pressure gradient force is only included when activated as a force in the case you are looking at.

Ucoeff is a field where each cell contains the sum of the drag coefficients, it's calculation can again be found in kinematicParcel.c

I have written it all out on paper, I have attempted to take a photo, it should at least clarify something .
Attached Images
File Type: jpg 20150520_161249.jpg (39.1 KB, 192 views)
kenyi89 is offline   Reply With Quote

Old   June 10, 2015, 10:29
Default
  #4
New Member
 
Jesus Ramirez
Join Date: Aug 2014
Location: Colombia
Posts: 13
Rep Power: 11
jarpve is on a distinguished road
Quote:
Originally Posted by kenyi89 View Post
Hi,

To answer your questions:

Utrans is the transferred momentum (the interaction term) between the fluid phase and the particle phase. The calculation of this parameter is shown in kinematicParcel.c and it basically is a field where each cell contains the sum of the drag forces and the pressure gradient force acting on all the particles in the cell. The pressure gradient force is only included when activated as a force in the case you are looking at.

Ucoeff is a field where each cell contains the sum of the drag coefficients, it's calculation can again be found in kinematicParcel.c

I have written it all out on paper, I have attempted to take a photo, it should at least clarify something .

Thank you, I am going to watch it.
jarpve is offline   Reply With Quote

Old   January 26, 2016, 14:24
Default
  #5
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Dear Jeroen,

Your explanation is very useful. UTrans is used in KinematicCloud.H [or .C], however, based on your explanation, it has been defined in KinematicParcel.H [or .C]. What is the relation between these class? I did not find the explicit inheritance between them. Thank you so much!

best regards,
OFFO
openfoammaofnepo is offline   Reply With Quote

Old   January 27, 2016, 12:09
Default
  #6
New Member
 
Jeroen Hofman
Join Date: Feb 2015
Location: The Netherlands
Posts: 15
Rep Power: 16
kenyi89 will become famous soon enough
Hi OFFO,

I am no longer working with these codes, but the kinematicParcel refers to the parcel (so essentially a particle representing many particles with same velocity and position) while the kinematicCloud represents a collection of kinematic parcels.

Explicit inheritance in the code is, due to the extreme amount of template programming going on, very difficult to see. For the moment I would just go with the logical relation I described above; how the actual inheritance is done in the code (it might not even by an inheritance relation) is not so interesting I think .
openfoammaofnepo likes this.
kenyi89 is offline   Reply With Quote

Old   January 27, 2016, 12:21
Default
  #7
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Dear Jeroen,

Thank you so much for your help. So based on your explanations, a cloud is a collection of parcels, and a parcel is a collection of many particles. Does it mean that the ODEs for mass , momentum and energy are solved for the parcel? or the cloud?

These terms are common in multi-phase literature, but for different codes, they may have different meanings. Thank you for your help.

best regards,
OFFO
openfoammaofnepo is offline   Reply With Quote

Old   January 27, 2016, 12:34
Default
  #8
New Member
 
Jeroen Hofman
Join Date: Feb 2015
Location: The Netherlands
Posts: 15
Rep Power: 16
kenyi89 will become famous soon enough
Dear OFFO,

The ODE for momentum for the fluid phase (so not the particles) includes momentum transfer terms which take into account (per fluid cell) what the transferred momentum between the phases is. Due to numerical tricks it appears in two places, once as UCoeff and once as UTrans, but they represent the same momentum transfer.

As far as the parcels go, there you just solve Newtons equation of motion for the parcel (= particle with adjusted radius and mass). Here momentum transfer is included by the drag formulas.
openfoammaofnepo likes this.
kenyi89 is offline   Reply With Quote

Old   January 27, 2016, 12:40
Default
  #9
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Dear Jeroen,

Thank you for your reply. So the properties for the parcels will be updated for each time step. The interaction (like momentum and heat exchange) between gas and solid or liquid phases happens between Eulerian gas framework and parcels ? Right? Do we need to do some summations of some parcels to obtain the properties of clouds? I am not very clear about the usage of cloud in terms of the phase interactions?

Thank you so much!
OFFO
openfoammaofnepo is offline   Reply With Quote

Old   January 27, 2016, 13:16
Default
  #10
New Member
 
Jeroen Hofman
Join Date: Feb 2015
Location: The Netherlands
Posts: 15
Rep Power: 16
kenyi89 will become famous soon enough
Dear OFFO,

You are correct. For the phase interaction you use the summation fluid-cell wise of the particles, so if for instance 5 parcels are in one cell you add the drag forces up to get the momentum exchange for that cell. These summations give you the UTrans and UCoeff fields needed as input for the fluid momentum equations. Instead of simple adding you can also use different weighting that distribute the momentum exchange over the cells.

As far as I know the cloud is just a collection of parcels and the corresponding class describes properties shared between the parcels.
openfoammaofnepo likes this.
kenyi89 is offline   Reply With Quote

Old   January 27, 2016, 13:59
Default
  #11
Senior Member
 
Join Date: Jan 2013
Posts: 372
Rep Power: 14
openfoammaofnepo is on a distinguished road
Thank you for youe explanations!
openfoammaofnepo is offline   Reply With Quote

Old   March 12, 2018, 03:07
Default
  #12
New Member
 
Join Date: Jun 2017
Posts: 12
Rep Power: 8
ms6918 is on a distinguished road
Hello,
Thank You so much for the thoughts on this topic. I have a small doubt.
In the fils U.Eqn.H, the source term is written as coalParcels.SU(U)
And in KinematicParcel file, 2 source terms are defined as
Su (Explicit momentum source for particle) and dUtrans (Momentum transfer from the particle to the carrier phase)
Can you kindly clarify the difference between the two.
Since it is written that dUtrans is the Momentum transfer from the particle to the carrier phase, shouldn’t this be used in as a source term in U.Eqn.H instead of Su.

Thank you again for the valuable feedback
ms6918 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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
using fieldAverage library to average postprocessing eelcovv OpenFOAM Programming & Development 32 May 17, 2022 09:55
Lagrangian Particle Tracking in Eulerian-Eulerian Multiphase Flow DarrenC CFX 5 April 7, 2016 14:50
Creating Lagrangian particles for postprocessing hjasak OpenFOAM Post-Processing 6 July 2, 2008 10:59
[Commercial meshers] Questions in mesh converstion and postprocessing BANNARI (Bannari) OpenFOAM Meshing & Mesh Conversion 0 March 3, 2005 07:23


All times are GMT -4. The time now is 02:40.