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

Deleting lagrangian particles in specific area

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2017, 09:00
Default Deleting lagrangian particles in specific area
  #1
New Member
 
F
Join Date: Jan 2017
Posts: 12
Rep Power: 9
Fschi is on a distinguished road
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; 
	    	}
    }
}
But it doesn't work. The only thing that changes is, that there is mor output about the parcels..

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
	}
...
Or is there a more elegant way for deleting particles?

thanks for help in advance!
Fschi is offline   Reply With Quote

Old   March 8, 2019, 02:51
Default
  #2
New Member
 
John
Join Date: Mar 2019
Posts: 26
Rep Power: 7
thintn222 is on a distinguished road
I know it's late but I wonder if u solved your problem . I met the same problem now with lagrangian solvers . Thank you
thintn222 is offline   Reply With Quote

Reply

Tags
deleting particle, functionobjects, lagrangian particle, particletracking


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
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


All times are GMT -4. The time now is 15:44.