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

how to change the sizes of particles in the DPMFoam?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 29, 2019, 00:21
Default how to change the sizes of particles in the DPMFoam?
  #1
New Member
 
xiangliu
Join Date: Sep 2019
Posts: 6
Rep Power: 7
upc_ngh is on a distinguished road
Now,I'm trying to change the sizes of particles in the DPMFOAM,but t can't find the way to find the function of sizes.In the case Goldschmidt,I find something but also don't know where it is and how to1change it,so I need help from you,please!




// Construct parcel diameters
forAll(diameters_, i)
{
diameters_[i] = sizeDistribution_->sample();
}

// Determine volume of particles to inject
this->volumeTotal_ = sum(pow3(diameters_))*pi/6.0;
}




//- Sample the distributionModel
virtual scalar sample() const = 0;
upc_ngh 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
Adding heat generation and transfer to DPMFoam inc. buoyancy of fluid dussa OpenFOAM Programming & Development 4 July 8, 2022 13:35
UDF for deleting particles in DPM imanmirzaii Fluent UDF and Scheme Programming 12 November 25, 2020 20:27
[DPM-UDF] Re-injecting escaping particles at different position CeesH Fluent UDF and Scheme Programming 7 May 13, 2020 11:34
multiphase-multiparticle gcordobaguerrero OpenFOAM Running, Solving & CFD 3 April 9, 2018 07:42
How to change turbulence model in InterFoam Gildeh OpenFOAM Running, Solving & CFD 4 March 28, 2012 13:04


All times are GMT -4. The time now is 01:42.