|
[Sponsors] |
September 28, 2011, 13:06 |
modified code crashes in parallel
|
#1 | |
Senior Member
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17 |
Dear all!
I modified a code (chtMRF) and it runs without problems on a single CPU. At the moment I parallelize (here on 4 CPUs), it crashes in the first time step (error message see below). What I did is I introduced a source for the energy equation of region1 (last line): Code:
tmp<fvScalarMatrix> TEqn ( fvm::ddt(rho*cp, T) - fvm::laplacian(K, T) - fvc::div(fvc::interpolate(Qr)*mesh.magSf()) ); Code:
if(condition) { Qr.boundaryField()[patchID] == QrRegion0.boundaryField()[patchID]; } I greatly appreciate your comments!! Cheers, Aram ################################################# Quote:
|
||
October 12, 2011, 10:47 |
|
#2 |
Senior Member
Aram Amouzandeh
Join Date: Mar 2009
Location: Vienna, Vienna, Austria
Posts: 190
Rep Power: 17 |
Dear all!
Found the solution to my problem mentioned above. I took the BC solidWallMixedTemperatureCoupled to see how boundary patches are handled in parallel, and voil: Code:
const directMappedPatchBase& mpp = refCast<const directMappedPatchBase> ( T.boundaryField()[patchID].patch().patch() ); // Force recalculation of mapping and schedule const mapDistribute& distMap = mpp.map(); Qr.boundaryField()[patchID] == QrRegion0.boundaryField()[patchID]; // Swap to obtain full local values of neighbour Qr mapDistribute::distribute ( Pstream::defaultCommsType, distMap.schedule(), distMap.constructSize(), distMap.subMap(), // what to send distMap.constructMap(), // what to receive Qr.boundaryField()[solidPatchID] ); Cheers, Aram |
|
January 11, 2013, 06:15 |
|
#3 |
Member
Nicklas Linder
Join Date: Jul 2012
Location: Germany
Posts: 35
Rep Power: 14 |
Hi Aram,
it has been a while, but i looks as if i am facing the same problem right now. (see http://www.cfd-online.com/Forums/ope...-parallel.html) I do not really get, what you changed to get it to work, could you explain that a liitle bit more detailed? Thanks in advance. Nicklas |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Parallel Error in ANSYS FLUENT 12 | zeusxx | FLUENT | 25 | July 17, 2015 05:40 |
Own boundary condition modified simpleFoam erorr in parallel execution | sponiar | OpenFOAM Running, Solving & CFD | 1 | August 27, 2008 10:16 |
Problems with MFIX code and Parallel Processing. | Fernando Pio | Main CFD Forum | 4 | August 29, 2006 15:33 |
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 |