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

parallel turn on/off in code

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 25, 2016, 02:34
Default parallel turn on/off in code
  #1
New Member
 
Join Date: Sep 2012
Location: seoul
Posts: 3
Rep Power: 14
Jung is on a distinguished road
Hello,

I have to interact with each other using two meshes. in ver2.1.1

for example, I need some values calculated in mesh_1 (simply, average value of whole mesh_1) and it is using in mesh_2.

I use two type of mesh by reference to chtMultiRegionFoam

but , when I run parallel(mpi decompose) ,

the value of calculated in mesh_1 returned the calculated value from divide mesh_1 , not whole mesh_1


I want to calculate the value of the whole mesh_1 by turning off parallel in the middle of the code, and then parallel computing again.

because mesh_1 has many cell, but not mesh_2

Please suggest a good way or reference thread or codes in openfoam
Jung is offline   Reply With Quote

Reply

Tags
mpi parallel, parallel code


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 code samiam1000 SU2 3 March 25, 2013 05:55
modified code crashes in parallel mabinty OpenFOAM Programming & Development 2 January 11, 2013 06:15
Obtain the processor id in parallel code albcem OpenFOAM Programming & Development 4 August 7, 2009 14:35
Design Integration with CFD? John C. Chien Main CFD Forum 19 May 17, 2001 16:56
What is the Better Way to Do CFD? John C. Chien Main CFD Forum 54 April 23, 2001 09:10


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