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

Copy the data vector from a reference cell

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2016, 17:51
Default Copy the data vector from a reference cell
  #1
Member
 
hekseli
Join Date: Mar 2013
Posts: 49
Rep Power: 13
heksel8i is on a distinguished road
Hey!

I would like to create a reference cell in my domain and then would like to copy a data vector, which values change in time, from the reference cell to large number of cells elsewhere in the domain.

Now I'm just wondering how this should be implemented in parallel domain decomposed case. Can all the processors efficiently access the data if I just inquire the data vector from the reference cell when looping through cells in my solver?

So I would like to do something like this and be sure it works in parallel efficiently?

Code:
forAll(cells,i)
{
    if(condition=true)
    {
        dataVectors[i]=dataVectors[refCell];
    }
    else computeNewDataVector;
}
heksel8i is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Setting the height of the stream in the free channel kevinmccartin CFX 12 October 13, 2022 22:43
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 12:04
Constant velocity of the material Sas CFX 15 July 13, 2010 09:56
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 22:58
OpenFOAM on MinGW crosscompiler hosted on Linux allenzhao OpenFOAM Installation 127 January 30, 2009 20:08


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