mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated location of forces/forceCoeffs output
This commit is contained in:
@ -167,7 +167,7 @@ void Foam::forceCoeffs::write()
|
|||||||
);
|
);
|
||||||
|
|
||||||
fileName forcesDir =
|
fileName forcesDir =
|
||||||
baseFileDir()/"bins"/obr_.time().timeName();
|
baseFileDir()/name_/obr_.time().timeName();
|
||||||
mkDir(forcesDir);
|
mkDir(forcesDir);
|
||||||
|
|
||||||
if (log_)
|
if (log_)
|
||||||
@ -175,7 +175,7 @@ void Foam::forceCoeffs::write()
|
|||||||
Info<< " Writing bins to " << forcesDir << endl;
|
Info<< " Writing bins to " << forcesDir << endl;
|
||||||
}
|
}
|
||||||
|
|
||||||
OFstream osCoeffs(forcesDir/"forceCoeffs");
|
OFstream osCoeffs(forcesDir/"forceCoeffs_bins");
|
||||||
binWriterPtr->write(axis, fieldNames, coeffs, osCoeffs);
|
binWriterPtr->write(axis, fieldNames, coeffs, osCoeffs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -228,7 +228,7 @@ void Foam::forces::writeBins() const
|
|||||||
autoPtr<writer<vector> > binWriterPtr(writer<vector>::New(binFormat_));
|
autoPtr<writer<vector> > binWriterPtr(writer<vector>::New(binFormat_));
|
||||||
coordSet axis("forces", "distance", binPoints_, mag(binPoints_));
|
coordSet axis("forces", "distance", binPoints_, mag(binPoints_));
|
||||||
|
|
||||||
fileName forcesDir = baseFileDir()/name_/"bins"/obr_.time().timeName();
|
fileName forcesDir = baseFileDir()/name_/obr_.time().timeName();
|
||||||
mkDir(forcesDir);
|
mkDir(forcesDir);
|
||||||
|
|
||||||
if (log_)
|
if (log_)
|
||||||
@ -238,10 +238,10 @@ void Foam::forces::writeBins() const
|
|||||||
|
|
||||||
wordList fieldNames(IStringStream("(pressure viscous)")());
|
wordList fieldNames(IStringStream("(pressure viscous)")());
|
||||||
|
|
||||||
OFstream osForce(forcesDir/"force");
|
OFstream osForce(forcesDir/"force_bins");
|
||||||
binWriterPtr->write(axis, fieldNames, force_, osForce);
|
binWriterPtr->write(axis, fieldNames, force_, osForce);
|
||||||
|
|
||||||
OFstream osMoment(forcesDir/"moment");
|
OFstream osMoment(forcesDir/"moment_bins");
|
||||||
binWriterPtr->write(axis, fieldNames, moment_, osMoment);
|
binWriterPtr->write(axis, fieldNames, moment_, osMoment);
|
||||||
|
|
||||||
|
|
||||||
@ -273,7 +273,7 @@ Foam::forces::forces
|
|||||||
const bool loadFromFiles
|
const bool loadFromFiles
|
||||||
)
|
)
|
||||||
:
|
:
|
||||||
functionObjectFile(obr, name, typeName),
|
functionObjectFile(obr, name, word(dict.lookup("type"))),
|
||||||
name_(name),
|
name_(name),
|
||||||
obr_(obr),
|
obr_(obr),
|
||||||
active_(true),
|
active_(true),
|
||||||
|
|||||||
Reference in New Issue
Block a user