|
[Sponsors] |
Specify number of parcels in surface particle injection |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#1 |
Member
MMatt
Join Date: May 2013
Posts: 59
Rep Power: 13 ![]() |
I know that by using the "surface" type of injection, the number of parcels will automatically be equal to the number of cells in that surface, but due to my mesh being very refined on that surface, the number of parcels injected at every time step is huge (50'000).
Is there a workaround that issue? How can I reduce somehow the number of parcels injected? Many thanks! ![]() |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
|
There are at least two options - use group injection or use FILE injection. For FILE injection, setup the injection you already have and then sample the particles at the injection boundary. Now, open this file and edit it. During editing, you have to modify following
1. Number of parcels. Each line represents a parcel 2. Each parcel has mass of particle, mass of parcel, and number of particles represented by the parcel, given as frequency. You need to modify the mass of the parcel, shown as mass-flow-rate and the frequency since you are reducing the number of parcels. 3. Keep only as many lines as many parcels you want. So, if you want 5000, then remove 45000 lines. A good text editor would be very handy here. Then, switch from surface injection to file injection and read this file.
__________________
Regards, Vinerm PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority. |
|
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Other] Can't Shake Erros: patch type 'patch' not constraint type 'empty' | BrendaEM | OpenFOAM Meshing & Mesh Conversion | 12 | April 3, 2022 18:32 |
Inconsistencies in reading .dat file during run time in new injection model | Scram_1 | OpenFOAM | 0 | March 23, 2018 22:29 |
[mesh manipulation] Importing Multiple Meshes | thomasnwalshiii | OpenFOAM Meshing & Mesh Conversion | 18 | December 19, 2015 18:57 |
Unfinished particle tracks in simpleReactingParcelFoam | Cornelia | OpenFOAM Running, Solving & CFD | 3 | June 5, 2015 03:58 |
foam-extend_3.1 decompose and pyfoam warning | shipman | OpenFOAM | 3 | July 24, 2014 08:14 |