ENH: Updated location of forces/forceCoeffs output

This commit is contained in:
andy 2012-10-16 10:01:19 +01:00
parent eda58a4b69
commit a5c00e8972
2 changed files with 6 additions and 6 deletions

View File

@ -167,7 +167,7 @@ void Foam::forceCoeffs::write()
);
fileName forcesDir =
baseFileDir()/"bins"/obr_.time().timeName();
baseFileDir()/name_/obr_.time().timeName();
mkDir(forcesDir);
if (log_)
@ -175,7 +175,7 @@ void Foam::forceCoeffs::write()
Info<< " Writing bins to " << forcesDir << endl;
}
OFstream osCoeffs(forcesDir/"forceCoeffs");
OFstream osCoeffs(forcesDir/"forceCoeffs_bins");
binWriterPtr->write(axis, fieldNames, coeffs, osCoeffs);
}

View File

@ -228,7 +228,7 @@ void Foam::forces::writeBins() const
autoPtr<writer<vector> > binWriterPtr(writer<vector>::New(binFormat_));
coordSet axis("forces", "distance", binPoints_, mag(binPoints_));
fileName forcesDir = baseFileDir()/name_/"bins"/obr_.time().timeName();
fileName forcesDir = baseFileDir()/name_/obr_.time().timeName();
mkDir(forcesDir);
if (log_)
@ -238,10 +238,10 @@ void Foam::forces::writeBins() const
wordList fieldNames(IStringStream("(pressure viscous)")());
OFstream osForce(forcesDir/"force");
OFstream osForce(forcesDir/"force_bins");
binWriterPtr->write(axis, fieldNames, force_, osForce);
OFstream osMoment(forcesDir/"moment");
OFstream osMoment(forcesDir/"moment_bins");
binWriterPtr->write(axis, fieldNames, moment_, osMoment);
@ -273,7 +273,7 @@ Foam::forces::forces
const bool loadFromFiles
)
:
functionObjectFile(obr, name, typeName),
functionObjectFile(obr, name, word(dict.lookup("type"))),
name_(name),
obr_(obr),
active_(true),