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

Findcell in parallel

Register Blogs Community New Posts Updated Threads Search

Like Tree11Likes
  • 1 Post By magnus
  • 3 Post By gschaider
  • 1 Post By fra76
  • 3 Post By ar215499@dal.ca
  • 3 Post By missios

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 13, 2006, 06:35
Default Findcell in parallel
  #1
New Member
 
Magnus Åberg
Join Date: Mar 2009
Posts: 11
Rep Power: 17
magnus is on a distinguished road
Hi,

I had some problems defining a momentum source. the first step was to locate the cells that should have nonzero source. If I make the call

label point=mesh.findCell(r) // r is vector located in the domain

if ( point >= 0)
{
Info << "cell found";
}

It works fine in serial, but when I decompose the domain and run in parallel the cell cannot be found. Did I miss something here? Do I need to explicit loop over the processors or what?

I guess this is trivial for most of you so remember; a short answer is infinately more appreciated than no answer

Thanks!
missios likes this.
magnus is offline   Reply With Quote

 


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
parallel cfd venkatesh FLUENT 3 November 13, 2011 05:45
On Parallel ? Kate Frack Main CFD Forum 0 February 8, 2007 09:30
FindCell evgenii OpenFOAM Pre-Processing 1 February 15, 2006 05:43
UDF in Parallel Gavin FLUENT 1 June 19, 2005 22:17
CFX-5.5 Parallel NT Kawena CFX 4 March 13, 2002 20:24


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