ENH: TurbulentDFSEM - increment eddy OBJ file index to avoid over-writing

This commit is contained in:
Andrew Heather
2016-06-29 17:13:01 +01:00
parent f0375fc35c
commit 2058ae5a85

View File

@ -83,7 +83,11 @@ void Foam::turbulentDFSEMInletFvPatchVectorField::writeEddyOBJ() const
}
{
OFstream os(db().time().path()/"eddies.obj");
const Time& time = db().time();
OFstream os
(
time.path()/"eddies_" + Foam::name(time.timeIndex()) + ".obj"
);
label pointOffset = 0;
forAll(eddies_, eddyI)