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

stop lagrangian parcels in cell zone

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 11, 2014, 16:28
Default stop lagrangian parcels in cell zone
  #1
Senior Member
 
Join Date: Jan 2010
Location: Stuttgart
Posts: 150
Rep Power: 16
Chrisi1984 is on a distinguished road
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
Chrisi1984 is offline   Reply With Quote

Old   August 1, 2014, 11:50
Default
  #2
Senior Member
 
Join Date: Jan 2010
Location: Stuttgart
Posts: 150
Rep Power: 16
Chrisi1984 is on a distinguished road
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
Chrisi1984 is offline   Reply With Quote

Old   August 3, 2014, 05:40
Default
  #3
Senior Member
 
Join Date: Jan 2010
Location: Stuttgart
Posts: 150
Rep Power: 16
Chrisi1984 is on a distinguished road
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!
Chrisi1984 is offline   Reply With Quote

Old   August 20, 2014, 15:35
Default
  #4
Senior Member
 
Join Date: Jan 2010
Location: Stuttgart
Posts: 150
Rep Power: 16
Chrisi1984 is on a distinguished road
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
Chrisi1984 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
Question about common cell zone interaction Maralady FLUENT 0 June 18, 2013 00:31
About Cell Zone Conditions Liufeng_ustb FLUENT 0 May 18, 2013 00:28
How to stop diffusion and advection in a zone for selected species. hda FLUENT 0 March 19, 2012 00:59
[Other] cgnsToFoam problems with "QUAD_4" cells lentschi OpenFOAM Meshing & Mesh Conversion 1 March 9, 2011 05:49
Change cell zone index/thread during simulation neilduffy1024 FLUENT 0 January 17, 2011 10:40


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