Commit a0fc2bc0 authored by mattijs's avatar mattijs
Browse files

ENH: writeCellCentres: dump cell volume, patch face area

parent c7dbe491
......@@ -98,6 +98,7 @@ int main(int argc, char *argv[])
cci.write();
}
volScalarField V
(
IOobject
......@@ -110,10 +111,19 @@ int main(int argc, char *argv[])
false
),
mesh,
dimensionedScalar("V", mesh.V().dimensions(), 0.0),
calculatedFvPatchField<scalar>::typeName
);
mesh.V().setInstance(runTime.timeName());
mesh.V().write();
V.dimensionedInternalField() = mesh.V();
forAll(V.boundaryField(), patchI)
{
V.boundaryField()[patchI] =
V.boundaryField()[patchI].patch().magSf();
}
Info<< "Writing cellVolumes and patch faceAreas to " << V.name()
<< " in " << runTime.timeName() << endl;
V.write();
}
Info<< "\nEnd\n" << endl;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment