|
[Sponsors] |
Deleting lagrangian particles in specific area |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 17, 2017, 09:00 |
Deleting lagrangian particles in specific area
|
#1 |
New Member
F
Join Date: Jan 2017
Posts: 12
Rep Power: 9 |
Hello,
is it possible to delete lagrangian particles/parcels as soon as they enter a specific cellSet/FaceZone etc? Similar questions have been asked before in this forum, but never answered... My Idea was to use the cloudFunctions in the reactingCloud1Properties. To define a FaceZone and then use postFace() function to set (the particle calling the postFace-Funktion) keepParticle = false to delete them. So something like: Code:
FoamFile { version 2.0; format ascii; class dictionary; location "constant"; object reactingCloud1Properties; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // solution { ... } ... subModels { ... } cloudFunctions { particleTracks { type particleTracks; trackInterval 5; maxSamples 100000; resetOnWrite true; postFace { parcelType reactingCloud1; facei myDefinedFaceZoneSet; keepParticle false; } } } Do I have to hardcode it in the CloudFunctionObject.C in this template instead of 'do nothing'? Code:
... template<class CloudType> void Foam::CloudFunctionObject<CloudType>::postFace ( const typename CloudType::parcelType&, const label, bool& ) { // do nothing } ... thanks for help in advance! |
|
March 8, 2019, 02:51 |
|
#2 |
New Member
John
Join Date: Mar 2019
Posts: 26
Rep Power: 7 |
I know it's late but I wonder if u solved your problem . I met the same problem now with lagrangian solvers . Thank you
|
|
Tags |
deleting particle, functionobjects, lagrangian particle, particletracking |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Injection of specific number of particles in DPM | DH | FLUENT | 12 | March 16, 2016 22:04 |
Add lagrangian particles to OpenFoam solver | luchen2408 | OpenFOAM | 0 | June 2, 2015 04:10 |
Multiphase Lagrangian Particles | moritzhoefert | OpenFOAM | 1 | December 8, 2010 09:48 |
Injection of Lagrangian particles | alberto | OpenFOAM Running, Solving & CFD | 6 | November 24, 2010 11:17 |
Two-Phase Buoyant Flow Issue | Miguel Baritto | CFX | 4 | August 31, 2006 13:02 |