From 7bcd0d5bcec9be5cd7783855a4b99b8e1e37037e Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 26 Mar 2009 18:14:00 +0000 Subject: [PATCH 01/11] no calculation at startup --- .../radiation/radiationModel/radiationModel/radiationModel.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/thermophysicalModels/radiation/radiationModel/radiationModel/radiationModel.C b/src/thermophysicalModels/radiation/radiationModel/radiationModel/radiationModel.C index 92c6397fb5..2aaa7d7e67 100644 --- a/src/thermophysicalModels/radiation/radiationModel/radiationModel/radiationModel.C +++ b/src/thermophysicalModels/radiation/radiationModel/radiationModel/radiationModel.C @@ -128,7 +128,7 @@ void Foam::radiation::radiationModel::correct() return; } - if ((time_.timeIndex() == 0) || (time_.timeIndex() % solverFreq_ == 0)) + if (time_.timeIndex() % solverFreq_ == 0) { calculate(); } From fc09d219affe2ff72935005f0f93d962ea0f7509 Mon Sep 17 00:00:00 2001 From: mattijs Date: Thu, 26 Mar 2009 22:32:10 +0000 Subject: [PATCH 02/11] indentation --- applications/solvers/heatTransfer/buoyantSimpleFoam/pEqn.H | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/applications/solvers/heatTransfer/buoyantSimpleFoam/pEqn.H b/applications/solvers/heatTransfer/buoyantSimpleFoam/pEqn.H index 3c257d249d..8d97ad9048 100644 --- a/applications/solvers/heatTransfer/buoyantSimpleFoam/pEqn.H +++ b/applications/solvers/heatTransfer/buoyantSimpleFoam/pEqn.H @@ -59,7 +59,8 @@ rho = thermo->rho(); rho.relax(); - Info<< "rho max/min : " << max(rho).value() << " " << min(rho).value() << endl; + Info<< "rho max/min : " << max(rho).value() << " " << min(rho).value() + << endl; pd == p - (rho*gh + pRef); } From bf19a3c70793cc071b04590d7608518f51978688 Mon Sep 17 00:00:00 2001 From: mattijs Date: Mon, 30 Mar 2009 11:05:59 +0100 Subject: [PATCH 03/11] synchronisation at start of loop --- .../meshRefinement/meshRefinementBaffles.C | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C b/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C index c5941aeadc..e154576ad9 100644 --- a/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C +++ b/src/autoMesh/autoHexMesh/meshRefinement/meshRefinementBaffles.C @@ -1212,6 +1212,17 @@ void Foam::meshRefinement::findCellZoneTopo // by changing cell zone every time we cross a surface. while (true) { + // Synchronise regionToCellZone. + // Note: + // - region numbers are identical on all processors + // - keepRegion is identical ,, + // - cellZones are identical ,, + // This done at top of loop to account for geometric matching + // not being synchronised. + Pstream::listCombineGather(regionToCellZone, maxEqOp