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

max value in parallel processing

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   September 5, 2016, 00:46
Default max value in parallel processing
  #1
Member
 
anonymous
Join Date: Mar 2016
Location: Canada
Posts: 93
Rep Power: 10
cute is on a distinguished road
Hi All,

I am running an application and the mesh was decompose for 16 processors. I submitted my job for parallel processing, but I am not receiving correct max value. I am using the following code where X and XE are defined as volScalarField and calculated before entering the given code:

Code:
const volVectorField& pF = mesh.C();
for (int i=0; i<pF.size(); i++)
{
    if (abs(X[i]-XE[i])>maxDiff)
     {
              maxDiff = fabs(X[i]-XE[i]);
              tempi=i;
      }
 }
Info<< "Diff= " << maxDiff << "  @ i = "<<tempi<<nl<<endl;
I need you help. Please suggest.

Thanks
cute 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
Cavitation around NACA hydrofoil using interPhaseChangeFoam Kozan OpenFOAM Running, Solving & CFD 28 March 11, 2023 23:30
Problem with chtMultiregionFoam radiation boundary condition baran_foam OpenFOAM Running, Solving & CFD 10 December 17, 2019 17:36
Parallel processing of OpenFOAM cases on multicore processor??? g.akbari OpenFOAM Running, Solving & CFD 31 November 1, 2017 09:25
Explicitly filtered LES saeedi Main CFD Forum 16 October 14, 2015 11:58


All times are GMT -4. The time now is 20:45.