| const volVectorField& hogeCellCentre = mesh.C(); const volScalarField& hogeCellVolume = mesh.V(); |
| const volVectorField& hogeCellCentre = mesh.C(); const volScalarField& hogeCellVolume = mesh.V(); forAll(hogeCellCentre.internalField(), celli) { vector cellCentre = hogeCellCentre.internalField()[celli]; scalar cellVolume = hogeCellVolume.internalField()[celli]; Info << "(x, y, z)(vol) = (" << cellCentre.x() << ", " << cellCentre.y() << ", " << cellCentre.z() << ")(" << cellVolume << endl; } |