From d8865404c3362691ed8d33e57b82ff96c3b11ee3 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Mon, 29 Apr 2013 15:20:49 +0100 Subject: [PATCH] ENH: writeCellCentres: dump volume --- .../writeCellCentres/writeCellCentres.C | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/applications/utilities/postProcessing/miscellaneous/writeCellCentres/writeCellCentres.C b/applications/utilities/postProcessing/miscellaneous/writeCellCentres/writeCellCentres.C index ce40f502e18..6e4f009be2a 100644 --- a/applications/utilities/postProcessing/miscellaneous/writeCellCentres/writeCellCentres.C +++ b/applications/utilities/postProcessing/miscellaneous/writeCellCentres/writeCellCentres.C @@ -97,6 +97,23 @@ int main(int argc, char *argv[]) cci.write(); } + + volScalarField V + ( + IOobject + ( + "V", + runTime.timeName(), + mesh, + IOobject::NO_READ, + IOobject::AUTO_WRITE, + false + ), + mesh, + + ); + mesh.V().setInstance(runTime.timeName()); + mesh.V().write(); } Info<< "\nEnd\n" << endl; -- GitLab