Initial commit for version 2.0.x patch release
[OpenFOAM-2.0.x.git] / src / engine / ignition / ignite.H
blob30faf6aaba893fa72df90a602d005a9d4d77a815
1     forAll(ign.sites(), i)
2     {
3         const ignitionSite& ignSite = ign.sites()[i];
5         if (ignSite.igniting())
6         {
7             forAll(ignSite.cells(), icelli)
8             {
9                 label ignCell = ignSite.cells()[icelli];
10                 Info<< "Igniting cell " << ignCell;
12                 Info<< " state :"
13                     << ' ' << b[ignCell]
14                     << ' ' << Xi[ignCell]
15                     << ' ' << Su[ignCell]
16                     << ' ' << mgb[ignCell]
17                     << endl;
19                 bEqn.diag()[ignSite.cells()[icelli]] +=
20                 (
21                     ignSite.strength()*ignSite.cellVolumes()[icelli]
22                    *rhou[ignSite.cells()[icelli]]/ignSite.duration()
23                 )/(b[ignSite.cells()[icelli]] + 0.001);
24             }
25         }
26     }