ENH: writeCellCentres: dump cell volume, patch face area
This commit is contained in:
parent
c7dbe491c6
commit
a0fc2bc0f2
@ -98,6 +98,7 @@ int main(int argc, char *argv[])
|
|||||||
cci.write();
|
cci.write();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
volScalarField V
|
volScalarField V
|
||||||
(
|
(
|
||||||
IOobject
|
IOobject
|
||||||
@ -110,10 +111,19 @@ int main(int argc, char *argv[])
|
|||||||
false
|
false
|
||||||
),
|
),
|
||||||
mesh,
|
mesh,
|
||||||
|
dimensionedScalar("V", mesh.V().dimensions(), 0.0),
|
||||||
|
calculatedFvPatchField<scalar>::typeName
|
||||||
);
|
);
|
||||||
mesh.V().setInstance(runTime.timeName());
|
V.dimensionedInternalField() = mesh.V();
|
||||||
mesh.V().write();
|
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;
|
Info<< "\nEnd\n" << endl;
|
||||||
|
Loading…
Reference in New Issue
Block a user