# stop lagrangian parcels in cell zone

 Register Blogs Members List Search Today's Posts Mark Forums Read

 July 11, 2014, 15:28 stop lagrangian parcels in cell zone #1 Senior Member   Join Date: Jan 2010 Location: Stuttgart Posts: 148 Rep Power: 9 Hello all, I would like to be able to stop lagrangian particles in a specified cell zone. In the lagrangian folder "lagrangian/intermediate/parcels/Templates/ReactingMultiphaseParcel" I can find the calculation of the particle velocity "this->U_" in the file "ReactingMultiphaseParcel.C". How to implement there anything that I gain "this->U_=0" for all particles those are in a specified cell zone? Is this the right environment to assign the velocity zero to all particles in the specified cell zone (if I will use parcels of the type ReactingMultiphaseParcel)? Kind regards, Chrisi

 August 1, 2014, 10:50 #2 Senior Member   Join Date: Jan 2010 Location: Stuttgart Posts: 148 Rep Power: 9 Hello, it seems that nobody has an idea how one can stop parcels in a specified cell zone. Due to the case that in a porous media the flow is orientated in one direction. It would also help me if I would be able to introduce an if clause that stops all parcels those are in a cell where the gas flow velocity is nearly zero in a given direction. Does anybody of you has an idea how to do so? Kind regards Chrisi

 August 3, 2014, 04:40 #3 Senior Member   Join Date: Jan 2010 Location: Stuttgart Posts: 148 Rep Power: 9 Hello all, related to the same topic I want to ask how should the code look like to make a query whether a cell belongs to a specified porous zone or not. Thanks in advance and have a nice weekend!

August 20, 2014, 14:35
#4
Senior Member

Join Date: Jan 2010
Location: Stuttgart
Posts: 148
Rep Power: 9
Hi,

regarding my probleme it would help me to know, how I can make a query wheter the cell where the parcel is belongs to a specified cellZone or not.
I tried to do it with a loop over all cells. But that is too expansive.
Quote:
 forAll(mesh.cellZones(), iZone) //loop over all cellZones { if ((mesh.cellZones()[iZone].name() == "porous")) { forAll(mesh.cellZones()[iZone], iCell) //loop over all cells in Zone { if (iCell=cellI) { Unew = vector(0, 0, 0); } else { Unew = Ures.value(); } } } else { Unew = Ures.value(); } }
Any ideas?

Kind regards
Chrisi

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Maralady FLUENT 0 June 17, 2013 23:31 Liufeng_ustb FLUENT 0 May 17, 2013 23:28 hda FLUENT 0 March 19, 2012 00:59 lentschi OpenFOAM Meshing & Mesh Conversion 1 March 9, 2011 05:49 neilduffy1024 FLUENT 0 January 17, 2011 10:40

All times are GMT -4. The time now is 06:50.