Changed format to be spreadsheet-friendly:

#           x         0.05         0.03
#           y         0.05         0.04
#           z        0.001        0.001
#        Time
        0.005     0.130842   7.7749e-05
         0.01    0.0554095   -0.0100031
        0.015    0.0388121   -0.0115969
This commit is contained in:
henry
2008-06-05 20:19:41 +01:00
parent 6794ff5ad6
commit 935d7a8131

View File

@ -231,14 +231,22 @@ bool Foam::probes::checkFieldTypes()
probeFilePtrs_.insert(fldName, sPtr); probeFilePtrs_.insert(fldName, sPtr);
*sPtr<< '#' << setw(IOstream::defaultPrecision() + 6) unsigned int w = IOstream::defaultPrecision() + 7;
<< "Time";
forAll(probeLocations_, probeI) for (direction cmpt=0; cmpt<vector::nComponents; cmpt++)
{ {
*sPtr << token::SPACE << probeLocations_[probeI]; *sPtr<< '#' << setw(IOstream::defaultPrecision() + 6)
<< vector::componentNames[cmpt];
forAll(probeLocations_, probeI)
{
*sPtr<< setw(w) << probeLocations_[probeI][cmpt];
}
*sPtr << endl;
} }
*sPtr << endl;
*sPtr<< '#' << setw(IOstream::defaultPrecision() + 6)
<< "Time" << endl;
} }
} }