3 for (label regI = 0; regI < mesh.regions().nRegions(); regI++)
7 UEqn.source()[refCells[regI]] +=
8 UEqn.diag()[refCells[regI]]*vector::zero;
10 UEqn.diag()[refCells[regI]] +=
11 UEqn.diag()[refCells[regI]];
15 // Set value for dead cells (small particles or regions)
16 // label size = mesh.nCells() - label(sum(gamma.internalField()));
20 labelList curRefCell(deadCells.size(), -1);
22 forAll(deadCells, cellI)
24 curRefCell[index++] = deadCells[cellI];
26 // if (gamma.internalField()[cellI] < 1 - SMALL)
28 // curRefCell[index++] = cellI;
32 vectorField curRefValue(curRefCell.size(), vector::zero);
34 UEqn.setValues(curRefCell, curRefValue);