CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Access to particles diameter for turbulent dispersion

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2024, 12:07
Default Access to particles diameter for turbulent dispersion
  #1
New Member
 
Charles Guaquiere
Join Date: Sep 2022
Posts: 14
Rep Power: 3
CGuaq is on a distinguished road
Dear Foamers,

I try to optimize my new model for turbulent dispersion on particles and I need to know the size of each particles to modify their turbulent fluctuating velocity depending on their size.
Until now I manually specified the particle size in my code (assuming a constant size). But in a case where I have a distribution in size it's not possible to use this method without errors for the prediction.
I tried to add the following line at the beginning of the function to calculate the turbulent fluctuating velocity:

Code:
(
    const typename CloudType::parcelType& p,

    ...
    const scalar dt,
    const label celli,
    const vector& U,
    const vector& Uc,
    vector& UTurb,
     ...
And in my code to specify the diameter:

Code:
 const scalar dp = p.d();
This method is used in the Brownian motion code (../src/lagrangian/parcelTurbulence/submodels/Thermodynamic/ParticleForces/BrownianMotion), I can compile the code with these lines but when I launch the simulation I have an error at the injection time of the particles. Did I forget something or is it just impossible to use these lines in the turbulent dispersion code ?
Thus how can I access the particle size in my code ? Do you have another method?

Thanks for your help.
CGuaq 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
Number of Particles distribution in a chamber using flow simulation - how? teleguy FloEFD, FloWorks & FloTHERM 0 January 24, 2021 11:27
Color DEM particles according to their diameter zcheng STAR-CCM+ 1 May 28, 2020 05:04
access to velocity gradient for Lagrangian particles jiejie OpenFOAM 31 December 2, 2016 04:56
Add lagrangian particles to OpenFoam solver luchen2408 OpenFOAM 0 June 2, 2015 03:10
Access precalculated k-field in lagrangian dispersion model oswald OpenFOAM Programming & Development 0 September 3, 2013 11:25


All times are GMT -4. The time now is 18:47.