BUG: Corrected forces function object calc and file output on change - mantis #773

This commit is contained in:
andy
2013-03-12 17:35:23 +00:00
parent 3599609cd7
commit 490bc35655
2 changed files with 17 additions and 7 deletions

View File

@ -198,10 +198,10 @@ void Foam::forces::applyBins
{
if (nBin_ == 1)
{
force_[0][0] = sum(fN);
force_[1][0] = sum(fT);
moment_[0][0] = sum(Md ^ fN);
moment_[1][0] = sum(Md ^ fT);
force_[0][0] += sum(fN);
force_[1][0] += sum(fT);
moment_[0][0] += sum(Md ^ fN);
moment_[1][0] += sum(Md ^ fT);
}
else
{
@ -471,7 +471,7 @@ void Foam::forces::read(const dictionary& dict)
// specified directly, from coordinate system, or implicitly (0 0 0)
if (!dict.readIfPresent<point>("CofR", coordSys_.origin()))
{
coordSys_ = coordinateSystem(obr_, dict);
coordSys_ = coordinateSystem(dict, obr_);
localSystem_ = true;
}